Fixes libclc compilation.
Taken from clinfo on one nVidia system.
note: I had to add OPENCL_VERSION defines manually, these can be removed once clang correctly reports the version
clang correctly generates OPENCL_C_VERSION and OPENCL_VERSION_x_y macros. You can use them instead. For CL 1.1/1.2/2.0, you need to use -cl-std=CLx.y to specify OpenCL version.
|1 ↗||(On Diff #58849)|
I didn't want to do that. Including unsupported extensions in these tests would imply that every OCL extension needs test in 4 places (nvptx, amdgcn, r600, extension-version.cl), possibly more if more targets are added, which seemed excessive.