MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / checkDeviceForQueueSupport

Function checkDeviceForQueueSupport

test_common/harness/kernelHelpers.cpp:1534–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1532}
1533
1534int checkDeviceForQueueSupport(cl_device_id device,
1535 cl_command_queue_properties prop)
1536{
1537 cl_command_queue_properties realProps;
1538 cl_int error = clGetDeviceInfo(device, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
1539 sizeof(realProps), &realProps, NULL);
1540 test_error_ret(error, "FAILURE: Unable to get device queue properties", 0);
1541
1542 return (realProps & prop) ? 1 : 0;
1543}
1544
1545int printDeviceHeader(cl_device_id device)
1546{

Callers 3

REGISTER_TESTFunction · 0.85
run_testFunction · 0.85

Calls

no outgoing calls

Tested by 3

REGISTER_TESTFunction · 0.68
run_testFunction · 0.68