• Home
Name Date Size #Lines LOC

..--

conan/12-May-2024-3928

pkgconfig/12-May-2024-5642

BUILD.gnD12-May-20243 KiB147132

CMakeLists.txtD12-May-20241.2 KiB3331

README.mdD12-May-20241.2 KiB2319

test_cl.h.cD12-May-2024726 267

test_cl_egl.h.cD12-May-2024734 267

test_cl_ext.h.cD12-May-2024734 267

test_cl_ext_intel.h.cD12-May-2024746 267

test_cl_gl.h.cD12-May-2024732 267

test_cl_gl_ext.h.cD12-May-2024740 267

test_cl_half.h.cD12-May-20244 KiB12787

test_cl_icd.h.cD12-May-2024986 3213

test_cl_platform.h.cD12-May-2024744 267

test_cl_version.h.cD12-May-2024742 267

test_headers.cD12-May-202428.5 KiB639498

test_opencl.h.cD12-May-2024734 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