FangQ

OpenCL CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD returns 0 in amdgpu-pro 17.70

Discussion created by FangQ on Nov 19, 2017
Latest reply on Dec 7, 2017 by dipak

my opencl code needs to use the stream processor number to estimate a default workgroup/workitem configurations. Using CL_DEVICE_MAX_COMPUTE_UNITS and CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD, I was able to estimate the core counts in AMD GPUs, but I found the CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD call returns 0 in the latest Linux driver (amdgpu-pro 17.70), here is the code

 

mcxcl/mcx_host.cpp at master · fangq/mcxcl · GitHub

 

I am wondering if this is expected behavior. If CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD is no longer valid, what other approach I can use to estimate core numbers?

Outcomes