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

Function testKernelSetSVMPointersEmptyArray

tests/test_openclhpp.cpp:2215–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2213}
2214
2215void testKernelSetSVMPointersEmptyArray(void)
2216{
2217#if CL_HPP_TARGET_OPENCL_VERSION >= 200
2218 clSetKernelExecInfo_ExpectAndReturn(make_kernel(0),
2219 CL_KERNEL_EXEC_INFO_SVM_PTRS,
2220 0, nullptr, CL_SUCCESS);
2221
2222 std::array<void*, 0> arr;
2223 cl_int ret = kernelPool[0].setSVMPointers<0>(arr);
2224
2225 TEST_ASSERT_EQUAL_HEX(CL_SUCCESS, ret);
2226#endif
2227}
2228
2229cl_int clSetKernelExecInfo_EnableFineGrainedSystemSVM(cl_kernel kernel,
2230 cl_kernel_exec_info param_name,

Callers

nothing calls this directly

Calls 1

make_kernelFunction · 0.70

Tested by

no test coverage detected