I have downloaded AMDAPP SDK for OpenCL on Debian Squeeze. I would like to know if it is possible to build statically the OpenCL librairies. Currently, I have got in the “/opt/AMDAPP/lib/x86_64/” directory :
In order for the OpenCL ICD (Installable Client Driver) mechanism to work (and support whichever hardware and drivers you have installed), you need to use OpenCL.DLL (e.g., under Windows) which is a dispatch layer to the driver. You can’t statically link against it. However, you can statically link against the LIB file provided with your SDK which dynamically loads the DLL.