Installing OpenCL in a Linux cluster

Installing OpenCL in a Linux cluster

Hello,

We have OpenCL working on a single system in a cluster, after installing the intel-openclrt-18.1.0.013-18.1.0-013.x86_64 rpm.

But the standard practice for clusters is to install such packages on a network share, so they're accessible to all cluster systems without resorting to installing packages on each system.

Is there a guide available on installing OpenCL in such a network share?  We've determined that simply making the library files available and referring to their directory in LD_LIBRARY_PATH is not sufficient.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Never mind - we determined the necessary step after examining ocl-icd library file /lib64/libOpenCL.so

 

In short, set the environment variable OPENCL_VENDOR_PATH to point to the directory containing vendor files.  Edit the files in the directory to point to the new library location.  In this case, that's intel64.icd, which now contains "/software/opencl/intel/18.1/compiler/lib/intel64_lin/libintelocl.so"

Hi CalvinD,

 

Thanks for the interest and the consideration.

ocl-icd as it's named in some package managers is one implementation of the OpenCL™ ICD Loader library... the current implementation has some more flexibility about where implementation references can live.

The current khronos reference OpenCL™ ICD Loader Library doesn't have the same environment variable features.

This is main feature difference I'm aware of... I hope others share any relevant feature differences in this thread. Both projects are currently posted on GitHub.

Thanks for sharing your use case. Current licensing and design for deployment of some OpenCL™ components from Intel (i.e. the CPU RT) isn't targeted for multiuser environment deployments. When customers experience gaps it's useful to hear about it on the forums and it is taken into consideration for the product.

References:

CPU RT

Release notes

SDK

Release Notes

GFX RT

System Admins who are really stuck with deployment may benefit from seeing a build and runtime deployment in video context. techdecoded.intel.io shows building/installing Intel® Graphics Compute Runtime for OpenCL™ Driver for CentOS*. Keep in mind lots of work/changes are constantly going into this implementation... The basics should be more or less the same. This deployment leverages ocl-icd.

https://techdecoded.intel.io/ .... See OpenCL™ Runtime Deployment on Linux* OS.

Altering the .icd file content as indicated could be useful for certain system administrators... Note that references in Windows* OS are in the registry.

 

-MichaelC

Leave a Comment

Please sign in to add a comment. Not a member? Join today