Fixes libclc compilation.
Taken from clinfo on one nVidia system.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Basic/Targets.cpp | ||
---|---|---|
1849 ↗ | (On Diff #57693) | Do you really intend to enable subgroup support? |
remove subgroups support.
better tests.
note: I had to add OPENCL_VERSION defines manually, these can be removed once clang correctly reports the version
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.
even better tests
use existing OPENCL_C_VERSION
use -cl-std=CL for explicit OpenCL1.0
test/Misc/nvptx.languageOptsOpenCL.cl | ||
---|---|---|
1 ↗ | (On Diff #58849) | Should we check for errors on unsupported extensions for this target too? |
test/Misc/nvptx.languageOptsOpenCL.cl | ||
---|---|---|
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. |