Detecting OpenCL in linux

Discussion created by bubu on Nov 16, 2011
Latest reply on Nov 16, 2011 by gapon



I have a small problem under linux.... how could I detect the presence of OpenCL without calling a dynamic library? If I call any clXXXXX function but the libOpenCL.so is not present on the system then my app will fail to execute.

Parsing the ld.conf or the LD path sounds very complicated.


Does Khronos incllude some kind on inlined function ( without any .so dependency ) for this, pls?