cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Raistmer
Adept II

Enumeration order for Brook & OpenCL devices

What if HD3xxx installed with 4/5xxx GPUs ?

My app uses both Brook device and OpenCL device.
What if some older ATI GPUs are installed together with OpenCL-compatible ones?
How Brook-reported device number will related with OpenCL-reported device number for the same GPU ?
What the correct way in this case to chose same device for OpenCL and Brook parts of program ?
0 Likes
2 Replies
omkaranathan
Adept I

In OpenCL, you need to provide the device id instead of the device number as in Brook. And you are deciding which device to use at context creation. 

0 Likes
Raistmer
Adept II

Well, device IDs are ordered in list when returned for use. My question was - how order of reported devices for OpenCL enumeration call relates to order of reported devices for Brook enumeration call.
In other words: Let say I have 2 different GPU cards, card A and card B. How can I ensure that application uses same card (card B for example) for both OpenCL and Brook+ parts ?
0 Likes