MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CLHPP / testKernelSetExecInfo

Function testKernelSetExecInfo

tests/test_openclhpp.cpp:2150–2167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148}
2149
2150void testKernelSetExecInfo(void)
2151{
2152#if CL_HPP_TARGET_OPENCL_VERSION >= 200
2153 cl_bool val = CL_TRUE;
2154 // Using CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM in the tests since it's
2155 // defined by the core spec but this function is particularly useful for
2156 // vendor extensions.
2157 clSetKernelExecInfo_ExpectAndReturn(make_kernel(0),
2158 CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM,
2159 sizeof(cl_bool), &val, CL_SUCCESS);
2160 kernelPool[0].setExecInfo(CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM, val);
2161 // Also test the typesafe version
2162 clSetKernelExecInfo_ExpectAndReturn(make_kernel(0),
2163 CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM,
2164 sizeof(cl_bool), &val, CL_SUCCESS);
2165 kernelPool[0].setExecInfo<CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM>(val);
2166#endif
2167}
2168
2169
2170cl_int clSetKernelExecInfo_setSVMPointers(cl_kernel kernel,

Callers

nothing calls this directly

Calls 2

setExecInfoMethod · 0.80
make_kernelFunction · 0.70

Tested by

no test coverage detected