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

Function testCommandQueueGetDevice1_1

tests/test_openclhpp.cpp:900–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900void testCommandQueueGetDevice1_1(void)
901{
902 cl_device_id expected = make_device_id(0);
903
904 clGetDeviceInfo_StubWithCallback(clGetDeviceInfo_platform);
905 clGetPlatformInfo_StubWithCallback(clGetPlatformInfo_version_1_1);
906 clGetCommandQueueInfo_StubWithCallback(clGetCommandQueueInfo_testCommandQueueGetDevice);
907
908 cl::Device device = commandQueuePool[0].getInfo<CL_QUEUE_DEVICE>();
909 TEST_ASSERT_EQUAL_PTR(expected, device());
910
911 device() = nullptr;
912}
913
914void testCommandQueueGetDevice1_2(void)
915{

Callers

nothing calls this directly

Calls 1

make_device_idFunction · 0.85

Tested by

no test coverage detected