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:
@@ -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());
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren