| 3356 | #endif |
| 3357 | |
| 3358 | void testCreateDeviceCommandQueue(void) |
| 3359 | { |
| 3360 | #if CL_HPP_TARGET_OPENCL_VERSION >= 200 |
| 3361 | clRetainContext_ExpectAndReturn(make_context(1), CL_SUCCESS); |
| 3362 | clGetDeviceInfo_StubWithCallback(clGetDeviceInfo_platform); |
| 3363 | clGetPlatformInfo_StubWithCallback(clGetPlatformInfo_version_2_0); |
| 3364 | clCreateCommandQueueWithProperties_StubWithCallback(clCreateCommandQueueWithProperties_testCommandQueueDevice); |
| 3365 | clReleaseCommandQueue_ExpectAndReturn(make_command_queue(4), CL_SUCCESS); |
| 3366 | clReleaseCommandQueue_ExpectAndReturn(make_command_queue(4), CL_SUCCESS); |
| 3367 | clReleaseCommandQueue_ExpectAndReturn(make_command_queue(2), CL_SUCCESS); |
| 3368 | clReleaseCommandQueue_ExpectAndReturn(make_command_queue(3), CL_SUCCESS); |
| 3369 | clReleaseDevice_ExpectAndReturn(make_device_id(1), CL_SUCCESS); |
| 3370 | clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS); |
| 3371 | clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS); |
| 3372 | |
| 3373 | cl::Context c(make_context(1)); |
| 3374 | cl::Context c2 = cl::Context::setDefault(c); |
| 3375 | cl::Device d(make_device_id(1)); |
| 3376 | |
| 3377 | cl::DeviceCommandQueue dq(c, d); |
| 3378 | cl::DeviceCommandQueue dq2(c, d, 256); |
| 3379 | |
| 3380 | cl::DeviceCommandQueue dqd = cl::DeviceCommandQueue::makeDefault(c, d); |
| 3381 | cl::DeviceCommandQueue dqd2 = cl::DeviceCommandQueue::makeDefault(c, d); |
| 3382 | |
| 3383 | TEST_ASSERT_EQUAL(dqd(), dqd2()); |
| 3384 | #endif |
| 3385 | } |
| 3386 | |
| 3387 | #if CL_HPP_TARGET_OPENCL_VERSION >= 200 |
| 3388 | static cl_mem clCreatePipe_testCreatePipe( |
nothing calls this directly
no test coverage detected