Here's a sketch of how to perform a βcustomβ or βlocalβ installation of the AMD OpenCL SDK without administrator privileges. Step 9 also provides a method for using the AMD OpenCL platform along with the selected platforms installed on the system.
The installation directory /local/install/path
and the current version of the SDK just need to be changed to match.
Download the 64-bit AMD OpenCL SDK.
$ tar -xvzf AMD-APP-SDK-v2.8-RC-lnx64.tgz
$ tar -xvzf icd-registration.tgz
$ cd AMD-APP-SDK-v2.8-RC-lnx64
$ mkdir /local/install/path
$ cp -r lib /local/install/path
$ cp -r include /local/install/path
$ cp -r ../etc /local/install/path
Optional: create symbolic links for the desired system platforms: $ ln -s /etc/OpenCL/vendors/nvidia.icd /local/install/path/etc/vendors/nvidia.icd
$ export OPENCL_VENDOR_PATH=/local/install/path/etc/vendors
$ export LD_LIBRARY_PATH=/local/install/path/lib/x86_64:$LD_LIBRARY_PATH
$ cc -I/local/install/path/include -L/local/install/path/lib/x86_64 -lOpenCL demo.c
$ ./a.out
source share