SWDEV-248499 Fix a crash when printf is used with cooperative kernels

root cause - cooperative queue is not inserted into queuePool_ (HSA queues) of ROC device calss causing a crash when creating hostcall buffers for printf

Change-Id: I3f9aceb4e5fe6a7c7a2a549a4bb0a3511fe02799


[ROCm/clr commit: d2b9d267b2]
This commit is contained in:
Aryan Salmanpour
2020-08-20 13:33:56 -04:00
کامیت شده توسط Aryan Salmanpour
والد 3b2e5f76cd
کامیت 771a8abb90
3فایلهای تغییر یافته به همراه31 افزوده شده و 13 حذف شده
@@ -2226,7 +2226,7 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, const
}
case amd::KernelParameterDescriptor::HiddenHostcallBuffer: {
if (amd::IS_HIP) {
auto buffer = roc_device_.getOrCreateHostcallBuffer(gpu_queue_);
auto buffer = roc_device_.getOrCreateHostcallBuffer(gpu_queue_, coopGroups);
if (!buffer) {
ClPrint(amd::LOG_ERROR, amd::LOG_KERN,
"Kernel expects a hostcall buffer, but none found");