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

Function testEnqueueMapSVM

tests/test_openclhpp.cpp:3605–3612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3603}
3604
3605void testEnqueueMapSVM(void)
3606{
3607#if CL_HPP_TARGET_OPENCL_VERSION >= 200
3608 std::vector<int> vec(7);
3609 clEnqueueSVMMap_ExpectAndReturn(commandQueuePool[0].get(), CL_TRUE, CL_MAP_READ|CL_MAP_WRITE, static_cast<void*>(vec.data()), vec.size()*sizeof(int), 0, nullptr, nullptr, CL_SUCCESS);
3610 TEST_ASSERT_EQUAL(commandQueuePool[0].enqueueMapSVM(vec, CL_TRUE, CL_MAP_READ|CL_MAP_WRITE), CL_SUCCESS);
3611#endif
3612}
3613
3614void testMapSVM(void)
3615{

Callers

nothing calls this directly

Calls 3

enqueueMapSVMMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected