api: Allow vendor flags (#957)

Mask off vendor extensions when querying host command queue properties.
This commit is contained in:
Sreelakshmi Haridas Maruthur
2020-09-15 04:19:20 -06:00
committed by GitHub
parent 7fd87c704a
commit 90b57a2d7a

View File

@@ -119,6 +119,11 @@ int test_get_command_queue_info_compatibility(cl_device_id deviceID, cl_context
clGetDeviceInfo(deviceID, CL_DEVICE_QUEUE_PROPERTIES, sizeof(device_props), &device_props, NULL);
log_info("CL_DEVICE_QUEUE_PROPERTIES is %d\n", (int)device_props);
// Mask off vendor extension properties. Only test standard OpenCL
// properties
device_props &=
CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE;
clCommandQueueWrapper queue = clCreateCommandQueue( context, deviceID, device_props, &error );
test_error( error, "Unable to create command queue to test with" );