OpenCL device info vs CUDA compute capability

790 Views Asked by At

nVIDIA's CUDA has the concept of Compute Capability, under which it bunches together a host of important feature flags and numeric parameters. On the OpenCL side, I know about clGetDeviceInfo, but the set difference between what CUDA CC definitions cover and what clGetDeviceInfo provides seems to be quite significant. Also, I don't really tables published by Intel or AMD with the clGetDeviceInfo values for their successive discrete or integrated GPUs.

Is there some other mechanism OpenCL devices publish information about themselves (perhaps not standardized)? And where can I find the equivalent of the Compute Capability table for non-nVIDIA GPUs?

1

There are 1 best solutions below

2
On

NVIDIA provides the cl_nv_device_attribute extension that lets you query the compute capability. PyOpenCL has a nice list of device properties, including AMD and NVIDIA extensions, here.