SWDEV-301667 - Selectively queue handler

- Queue handler for hipEventRecord(aka marker_ts_) only if there is a
callback associated with it.

Change-Id: I8a9877ae0e342556053abbaacc9510744a8e772a
Dieser Commit ist enthalten in:
Saleel Kudchadker
2022-03-08 14:15:37 -08:00
Ursprung 9292abb2d8
Commit 3c3c0ca4c5
6 geänderte Dateien mit 52 neuen und 15 gelöschten Zeilen
+6 -1
Datei anzeigen
@@ -353,9 +353,14 @@ void Command::enqueue() {
// when multiple threads submit/flush/update the batch at the same time
ScopedLock sl(queue_->vdev()->execution());
queue_->FormSubmissionBatch(this);
if ((type() == CL_COMMAND_MARKER || type() == 0)) {
bool isMarker = (type() == CL_COMMAND_MARKER || type() == 0);
if (isMarker) {
// The current HSA signal tracking logic requires profiling enabled for the markers
EnableProfiling();
}
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());