SWDEV-283726 - Indicate profiler attached
Set profiler attached flag in VirtualGPU to inform ROCclr of it Change-Id: I776c9fcd762cf02f3ce0f3c386d02384a224126c
This commit is contained in:
@@ -77,8 +77,8 @@ bool Stream::Create() {
|
|||||||
// Enable queue profiling if a profiler is attached which sets the callback_table flag
|
// Enable queue profiling if a profiler is attached which sets the callback_table flag
|
||||||
// or if we force it with env var. This would enable time stamp collection for every
|
// or if we force it with env var. This would enable time stamp collection for every
|
||||||
// command submitted to the stream(queue).
|
// command submitted to the stream(queue).
|
||||||
cl_command_queue_properties properties = (callbacks_table.is_enabled() ||
|
bool isProfilerAttached = callbacks_table.is_enabled();
|
||||||
HIP_FORCE_QUEUE_PROFILING) ?
|
cl_command_queue_properties properties = (isProfilerAttached || HIP_FORCE_QUEUE_PROFILING) ?
|
||||||
CL_QUEUE_PROFILING_ENABLE : 0;
|
CL_QUEUE_PROFILING_ENABLE : 0;
|
||||||
amd::CommandQueue::Priority p;
|
amd::CommandQueue::Priority p;
|
||||||
switch (priority_) {
|
switch (priority_) {
|
||||||
@@ -104,6 +104,7 @@ bool Stream::Create() {
|
|||||||
amd::ScopedLock lock(streamSetLock);
|
amd::ScopedLock lock(streamSetLock);
|
||||||
streamSet.insert(this);
|
streamSet.insert(this);
|
||||||
queue_ = queue;
|
queue_ = queue;
|
||||||
|
queue->vdev()->profilerAttach(isProfilerAttached);
|
||||||
} else if (queue != nullptr) {
|
} else if (queue != nullptr) {
|
||||||
queue->release();
|
queue->release();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user