OpenCL: Get PCIe Bus for Intel GPUs

Question: Is there any (Vendor-Specific) way to get the PCIe bus on the Intel graphics card (or get any other unique identifier for the Intel GPU (uniqueness for each vendor)).

I know that I can’t get such information without using Vendor-Specific-Extensions. I know for AMD that with cl_amd_device_topology, I can get this information. And for NVIDIA, I can get it with cl_nv_device_attribute_query and CL_DEVICE_PCI_BUS_ID_NV.

+6
source share
1 answer

I’m not sure if this is the answer you are looking for, but if you work with Intel GPUs on Linux using the Beigenet platform, then for most (not all, I think Cherryview is an exception), CL_DEVICE_VENDOR_ID returned using clGetDeviceInfo cards for PCIID GPU. See here for implementation and here for comparison.

Using Intel standard drivers on other platforms will require that you match CL_DEVICE_NAME with exiting sysfs or pciutils on Linux, and Win32_DisplayControllerConfiguration.Caption and Win32_Bus.DeviceID on Windows.

+1
source

Source: https://habr.com/ru/post/987556/


All Articles