Is there a specification document anywhere for the new clGetDeviceInfo flags:
CL_DEVICE_TOPOLOGY_AMD
CL_DEVICE_BOARD_NAME_AMD
that were introduced in APP SDK 2.5?
There is no spec in the Khronos API registry at the time of writing.
Steve.
See section 1.8.2.2 and 1.8.2.3 in Appendix A.8 of Programming guide.
CL_DEVICE_BOARD_NAME_AMD will work for both linux and windows.
ex : Board name for Caicos is AMD RADEON HD 6450
is there error in guide? it state that when is param_name set to CL_DEVICE_TOPOLOGY_AMD it return struct or 128-character value. shouldn't it be a CL_DEVICE_BOARD_NAME_AMD in second case?
also i cant find declared CL_DEVICE_BOARD_NAME_AMD in headers file.
device topology is numbers which you can get with lspci command under linux.
Originally posted by: nou is there error in guide? it state that when is param_name set to CL_DEVICE_TOPOLOGY_AMD it return struct or 128-character value. shouldn't it be a CL_DEVICE_BOARD_NAME_AMD in second case?
Yes, you are right. I have reported already. Fix will be available in near future.
also i cant find declared CL_DEVICE_BOARD_NAME_AMD in headers file.
see cl_ext.h
device topology is numbers which you can get with lspci command under linux.
Not sure about this. I will let you know.
Originally posted by: genaganna
device topology is numbers which you can get with lspci command under linux.
Not sure about this. I will let you know.
The numbers returned by the device topology are the BDF (bus, device, function), which can also be found with lspci.
From clinfo:
Device Topology: PCI[ B#1, D#0, F#0 ]
From lspci:
01:00.0 VGA compatible controller: ATI Technologies Inc Cypress [Radeon HD 5800 Series]
Thanks, found it. I didn't think to look in the programming guide.