SWDEV-301667 - Separate scope from marker_ts_

Change-Id: I19f4d394e898bfb8c9d9a2c2edf9d5bf5def3b08
This commit is contained in:
Saleel Kudchadker
2022-04-16 16:16:42 -07:00
parent 5d9063147c
commit b6cbfaf499
3 changed files with 20 additions and 10 deletions
+6 -4
View File
@@ -50,7 +50,8 @@ Event::Event(HostQueue& queue)
notify_event_(nullptr),
device_(&queue.device()),
profilingInfo_(IS_PROFILER_ON || queue.properties().test(CL_QUEUE_PROFILING_ENABLE) ||
Agent::shouldPostEventEvents()) {
Agent::shouldPostEventEvents()),
event_scope_(Device::kCacheStateInvalid) {
notified_.clear();
}
@@ -60,7 +61,8 @@ Event::Event()
status_(CL_SUBMITTED),
hw_event_(nullptr),
notify_event_(nullptr),
device_(nullptr) {
device_(nullptr),
event_scope_(Device::kCacheStateInvalid) {
notified_.clear();
}
@@ -366,7 +368,7 @@ void Command::enqueue() {
EnableProfiling();
}
if (isMarker && (profilingInfo().marker_ts_ == 0)) {
if (isMarker && (!profilingInfo().marker_ts_)) {
// Update batch head for the current marker. Hence the status of all commands can be
// updated upon the marker completion
SetBatchHead(queue_->GetSubmittionBatch());
@@ -420,7 +422,7 @@ NDRangeKernelCommand::NDRangeKernelCommand(HostQueue& queue, const EventWaitList
profilingInfo_.enabled_ = true;
profilingInfo_.clear();
profilingInfo_.callback_ = nullptr;
profilingInfo_.marker_ts_ = 1;
profilingInfo_.marker_ts_ = true;
}
kernel_.retain();
}