Index of /examples/gpu/opencl/examples
OpenCL examples
This directory contains an OpenCL example
- hello.cpp - Main function printing hello world.
- hello.cl - OpenCL kernel function.
- Makefile - Path to the OpenCL library and header directory.
- submit.sub - The submit script for batch job.
Program Compilation:
To compile using the provided Makefile:
qrsh -l gpus=1 -l gpu_c=3.5
module load cuda/9.2
#Change directory to this code folder.
make
Program Execution:
./hello
Program Execution through batch job:
qsub submit.sub
Contact Information
Shuai Wei: shwei@bu.edu