Missing coverage for CL_PROGRAM_*
queries whose value can change after a rebuild
#2163
Labels
CL_PROGRAM_*
queries whose value can change after a rebuild
#2163
The following queries to
clGetProgramInfo
require a built program and their value can change when the program is rebuilt. We do not test these cases adequately.CL_PROGRAM_NUM_KERNELS
CL_PROGRAM_KERNEL_NAMES
CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT
(Added in 2.2, deprecated in 3.0)CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT
(Added in 2.2, deprecated in 3.0)We should extend/replace the
test_get_program_info_kernel_names
test to cover the following:CL_PROGRAM_NUM_KERNELS
and check that it fails withCL_INVALID_PROGRAM_EXECUTABLE
CL_PROGRAM_KERNEL_NAMES
and check that it fails withCL_INVALID_PROGRAM_EXECUTABLE
CL_PROGRAM_NUM_KERNELS
and check that the correct number is returnedCL_PROGRAM_KERNEL_NAMES
and check that the right kernel names are returnedCL_PROGRAM_NUM_KERNELS
and check that the correct number is returnedCL_PROGRAM_KERNEL_NAMES
and check that the right kernel names are returnedI suggest we do not cover
CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT
andCL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT
under this issue given OpenCL support for program scope constructors and destructors is only required on 2.2, which nobody really supports.Also consider adding a variant using clCompileProgram/clLinkProgram.
The text was updated successfully, but these errors were encountered: