OpenCL¶
Description¶
OpenCL™ SDK and Runtimes for Intel® Processors
Environment Modules¶
Run module spider opencl
to find out what environment modules are available for this application.
Environment Variables¶
- HPC_OPENCL_DIR - installation directory
- HPC_OPENCL_BIN - executable directory
- HPC_OPENCL_LIB - library directory
- HPC_OPENCL_INC - include directory
Additional Usage Information¶
The following example shows how to build a sample code with OpenCL.
[albert@r11a-s17 ~]$ mkdir opencl
[albert@r11a-s17 ~]$ cd opencl
[albert@r11a-s17 opencl]$ module load opencl
[albert@r11a-s17 opencl]$ wget -q https://raw.github.com/smistad/OpenCL-Getting-Started/master/main.c
[albert@r11a-s17 opencl]$ wget -q https://raw.github.com/smistad/OpenCL-Getting-Started/master/vector_add_kernel.cl
[albert@r11a-s17 opencl]$ gcc -c -I$HPC_OPENCL_INC main.c -o main.o
[albert@r11a-s17 opencl]$ gcc main.o -o myopenclprog -l OpenCL
Usage Policy¶
OpenCL is a trademark of Apple Inc. used under license by Khronos.
Installation¶
The OpenCL implementation installed on the cluster is the one included with the NVIDIA CUDA Toolkit.
Categories¶
phylogenetics