Name Date Size

..25-Oct-20244 KiB

BUILD.gnH A D25-Oct-20244 KiB

CMakeLists.txtH A D25-Oct-20241.6 KiB

conan/H25-Oct-20244 KiB

lang_c/H25-Oct-20244 KiB

lang_cpp/H25-Oct-20244 KiB

pkgconfig/H25-Oct-20244 KiB

README.mdH A D25-Oct-20241.2 KiB

test_cl.h.cH A D25-Oct-2024726

test_cl_d3d10.h.cH A D25-Oct-2024765

test_cl_d3d11.h.cH A D25-Oct-2024765

test_cl_dx9_media_sharing.h.cH A D25-Oct-2024789

test_cl_dx9_media_sharing_intel.h.cH A D25-Oct-2024801

test_cl_egl.h.cH A D25-Oct-2024734

test_cl_ext.h.cH A D25-Oct-2024734

test_cl_ext_intel.h.cH A D25-Oct-2024746

test_cl_gl.h.cH A D25-Oct-2024732

test_cl_gl_ext.h.cH A D25-Oct-2024740

test_cl_half.h.cH A D25-Oct-20244 KiB

test_cl_icd.h.cH A D25-Oct-2024986

test_cl_layer.h.cH A D25-Oct-2024994

test_cl_platform.h.cH A D25-Oct-2024744

test_cl_version.h.cH A D25-Oct-2024742

test_headers.cH A D25-Oct-202428.5 KiB

test_opencl.h.cH A D25-Oct-2024734

README.md

1OpenCL-Headers/tests README
2===========================
3
4The test_headers.c test is designed to make sure that the various cl_typen types
5work and conform to expectation for recent versions of cl_platform.h. Conforming
6to these expectations make use of these types practical for developers writing
7portable code.
8
9The various tests ending in .h.c are there to verify that the various OpenCL
10headers can compile stand alone. That is to ensure that they may be used a la
11carte. This provides developers a lifeline in the case that some unneeded part
12of OpenCL (e.g. cl/gl sharing) brings in a pile of symbols (e.g. all of OpenGL)
13that collides with other headers needed by the application. It is also poor form
14to require headers to be included in a particular order, especially if multiple
15systems require they be included in mutually incompatible order. So, here we
16require that each header can be used standalone so that the order is irrelevant.
17
18We also check to make sure that the headers don't cause spurious warnings. These
19tests are intended to be compiled using the most stringent compiler flags
20available for the platform, within reason. All warnings should be errors and
21extra warnings that it is expected developers are likely to use should be turned
22on.
23