Installing OpenCL SDK in non-default directory

Installing OpenCL SDK in non-default directory

Bild des Benutzers swienke

Hello,

to distribute the OpenCL SDK to our compute cluster, we want to create a module for it. However, we have some trouble to establish a correct environment: We relocated the installation to another directory. For compilation we set explicitly the include path to the include folder in INTELOCLSDKROOT (intel/OpenCL/1.5-15293/include) and the link path to the lib64 folder in INTELOCLSDKROOT (..intel/OpenCL/1.5-15293/lib64). Additionally, we added LD_LIBRARY_PATH by ..intel/OpenCL/1.5-15293/lib64.

Now, compilation and linkage works. However, the program does not find an appropriate Intel platform (clgetplatformids returns with error code 1001), although the hardware is supported for the Intel OpenCL SDK.

Did we miss some environment variables? We appriciate any hints!

Thanks,

Sandra

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Yuri Kulakov (Intel)

Hi,

Please look at /etc/OpenCL/vendors/intelocl64.icd file. The only string in this file is the location of libintelocl.so library. Modify it to point to the correct location, something like /full/path/intel/OpenCL/1.5-15293/lib64/libintelocl.so.

Thanks,
Yuri

Melden Sie sich an, um einen Kommentar zu hinterlassen.