| 2148 | } |
| 2149 | |
| 2150 | void 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 | |
| 2170 | cl_int clSetKernelExecInfo_setSVMPointers(cl_kernel kernel, |
nothing calls this directly
no test coverage detected