Name Date Size #Lines LOC

..--

conan/H25-Apr-2025-3928

lang_c/H25-Apr-2025-1918

lang_cpp/H25-Apr-2025-1918

pkgconfig/H25-Apr-2025-5642

CMakeLists.txtH A D25-Apr-20251.9 KiB5753

README.mdH A D25-Apr-20251.2 KiB2319

test_cl.h.cH A D25-Apr-2025726 267

test_cl_d3d10.h.cH A D25-Apr-2025765 289

test_cl_d3d11.h.cH A D25-Apr-2025765 289

test_cl_dx9_media_sharing.h.cH A D25-Apr-2025789 289

test_cl_dx9_media_sharing_intel.h.cH A D25-Apr-2025801 289

test_cl_egl.h.cH A D25-Apr-2025734 267

test_cl_ext.h.cH A D25-Apr-2025734 267

test_cl_ext_intel.h.cH A D25-Apr-2025746 267

test_cl_gl.h.cH A D25-Apr-2025732 267

test_cl_gl_ext.h.cH A D25-Apr-2025740 267

test_cl_half.h.cH A D25-Apr-20254 KiB12787

test_cl_icd.h.cH A D25-Apr-2025986 3213

test_cl_layer.h.cH A D25-Apr-2025994 3213

test_cl_platform.h.cH A D25-Apr-2025744 267

test_cl_version.h.cH A D25-Apr-2025742 267

test_headers.cH A D25-Apr-202528.8 KiB649502

test_opencl.h.cH A D25-Apr-2025734 267

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