cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

eklund_n
Journeyman III

Concurrent Platforms on one system?

Interference in libOpenCL.so and API function overloading.

Hi.

The ICD Loader is for choosing the right API function implementation, pointing to libatiocl[32|64].so or libcuda.so etc. But what about libOpenCL.so supplied by different vendors? Are they only used when ICD don't know vendor?

Is libOpenCL.so from ATI compatible with nVidia platforms?

When compiling, how should the linking to libOpenCL.so be done if using multiple platforms?

Kind Regards,
Niklas 

0 Likes
3 Replies
nou
Exemplar

yes they are compatible. and libOpenCL.so from both vendors should be identical. libOpenCL.so is just small wraper which point address into proper platform function.

0 Likes

ok, thanks.

but if they're identical, how does the wrapper know which platform to chose the function implementation from?

or maybe clGetPlatformIDs is the only function that when called is not connected to a predetermined platform?

0 Likes

each cl_* object contain table to platform specific functions. look into cl_khr_icd specification for more information.

0 Likes