Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions projects/clr/hipamd/src/hip_event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class EventMarker : public amd::Marker {
profilingInfo_.marker_ts_ = markerTs;
profilingInfo_.batch_flush_ = batch_flush;
profilingInfo_.clear();
// Command::enqueue() assigns the correlation id only to batch-flush markers. The
// non-batch-flush ones are created and enqueued inside the recording API call, so the
// thread's current correlation id is the one that call owns.
if (!batch_flush) {
profilingInfo_.correlation_id_ = amd::activity_prof::correlation_id;
}
setCommandEntryScope(scope);
}
};
Expand Down
Loading