P4 to Git Change 1077336 by emankov@em-hsa-amd on 2014/09/16 11:13:20

ECR #333753 - Compiler Lib/RT: Fix RT_DEVICE_ENQUEUE & RT_KERNEL_INDEX querying

	tests: pre check-in, compiler ocl conformance tests

	Reviewer: German Andryeyev, Vinay Madhusudan

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#48 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#263 edit


[ROCm/clr commit: 09fb6c961b]
This commit is contained in:
foreman
2014-09-16 11:54:47 -04:00
parent 2fe29882fa
commit 8c5bc4a9ca
2 changed files with 10 additions and 9 deletions
@@ -3612,20 +3612,21 @@ HSAILKernel::init()
delete [] aclPrintfList;
}
size_t sizeOfDevice;
bool hasKernelEnqueue = false;
size_t sizeOfDeviceEnqueue = sizeof(hasKernelEnqueue);
error = aclQueryInfo(dev().hsaCompiler(), prog().binaryElf(),
RT_DEVICE_ENQUEUE, openClKernelName.c_str(),
&hasKernelEnqueue, &sizeOfDevice);
&hasKernelEnqueue, &sizeOfDeviceEnqueue);
if (error != ACL_SUCCESS) {
return false;
}
flags_.dynamicParallelism_ = hasKernelEnqueue;
int index = -1;
size_t sizeOfIndex = sizeof(index);
error = aclQueryInfo(dev().hsaCompiler(), prog().binaryElf(),
RT_KERNEL_INDEX, openClKernelName.c_str(),
&index, &sizeOfDevice);
&index, &sizeOfIndex);
if (error != ACL_SUCCESS) {
return false;
}