eyalroz / gpu-kernel-runner

Runs a single CUDA/OpenCL kernel, taking its source from a file and arguments from the command-line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid warning about CL_TARGET_OPENCL_VERSION when compiling with CUDA 12

eyalroz opened this issue · comments

When compiling kernel-runner.cpp with CUDA 12, we get:

/usr/local/cuda-12.1/include/CL/cl.h:26:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")

we should probably define that ourselves somewhere.

Duplicated by #89 ... :-( - which was just fixed :-)