SWDEV-333471 - Add GPU_FORCE_QUEUE_PROFILING

To support both hip and ocl. HIP_FORCE_QUEUE_PROFILING will be replaced with this later on.

Change-Id: I6d3514b1568ff049584ed9fd74bbdb3e4f4bf0c3
이 커밋은 다음에 포함됨:
Jason Tang
2022-08-12 16:02:29 -04:00
커밋한 사람 Jason Tang
부모 cf8f947f2f
커밋 d92b3a2d90
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
+6 -2
파일 보기
@@ -33,9 +33,9 @@
namespace amd {
HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properties properties,
HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properties props,
uint queueRTCUs, Priority priority, const std::vector<uint32_t>& cuMask)
: CommandQueue(context, device, properties, device.info().queueProperties_, queueRTCUs,
: CommandQueue(context, device, props, device.info().queueProperties_, queueRTCUs,
priority, cuMask),
lastEnqueueCommand_(nullptr),
head_(nullptr),
@@ -52,6 +52,10 @@ HostQueue::HostQueue(Context& context, Device& device, cl_command_queue_properti
queueLock_.wait();
}
}
if (GPU_FORCE_QUEUE_PROFILING) {
properties().set(CL_QUEUE_PROFILING_ENABLE);
}
}
bool HostQueue::terminate() {
+2
파일 보기
@@ -249,6 +249,8 @@ release(bool, ROC_ENABLE_PRE_VEGA, false, \
"Enable support of pre-vega ASICs in ROCm path") \
release(bool, HIP_FORCE_QUEUE_PROFILING, false, \
"Force command queue profiling by default") \
release(bool, GPU_FORCE_QUEUE_PROFILING, false, \
"Force command queue profiling by default") \
release(bool, HIP_MEM_POOL_SUPPORT, false, \
"Enables memory pool support in HIP") \
release(uint, PAL_FORCE_ASIC_REVISION, 0, \