mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
performance: flush markers only when cross queue dependencies
Related-To: HSD-16028654072 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bb742a88a4
commit
c54cdf65ed
@@ -1218,7 +1218,9 @@ bool CommandQueue::isBlockedCommandStreamRequired(uint32_t commandType, const Ev
|
||||
|
||||
bool CommandQueue::isDependenciesFlushForMarkerRequired(const EventsRequest &eventsRequest) const {
|
||||
return this->getGpgpuCommandStreamReceiver().peekTimestampPacketWriteEnabled() && !this->isOOQEnabled() &&
|
||||
(eventsRequest.outEvent || eventsRequest.numEventsInWaitList > 0);
|
||||
std::any_of(eventsRequest.eventWaitList, eventsRequest.eventWaitList + eventsRequest.numEventsInWaitList, [this](const auto event) {
|
||||
return castToObjectOrAbort<Event>(event)->getCommandQueue() != this;
|
||||
});
|
||||
}
|
||||
|
||||
void CommandQueue::storeProperties(const cl_queue_properties *properties) {
|
||||
|
||||
Reference in New Issue
Block a user