@@ -33,19 +33,17 @@ static void PrintCommandBufferCapabilities(
3333 if (caps & CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR ) printf (" \t\t CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR\n " );
3434 if (caps & CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR ) printf (" \t\t CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR\n " );
3535 if (caps & CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR ) printf (" \t\t CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR\n " );
36- if (caps & CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR ) printf (" \t\t CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR\n " );
3736
3837 cl_device_command_buffer_capabilities_khr extra = caps & ~(
3938 CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR |
4039 CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR |
41- CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR |
42- CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR );
40+ CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR );
4341 if (extra) {
4442 printf (" \t\t (Unknown capability: %016" PRIx64 " )\n " , extra);
4543 }
4644}
4745
48- static void PrintCommandBufferRequiredQueueProperties (
46+ static void PrintCommandBufferQueueProperties (
4947 cl_command_queue_properties props )
5048{
5149 if (props & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE ) printf (" \t\t CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE\n " );
@@ -137,7 +135,17 @@ int main(
137135 &requiredProps,
138136 NULL );
139137 printf (" \t Command Buffer Required Queue Properties:\n " );
140- PrintCommandBufferRequiredQueueProperties (requiredProps);
138+ PrintCommandBufferQueueProperties (requiredProps);
139+
140+ cl_command_queue_properties supportedProps = 0 ;
141+ clGetDeviceInfo (
142+ devices[deviceIndex](),
143+ CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR,
144+ sizeof (supportedProps),
145+ &supportedProps,
146+ NULL );
147+ printf (" \t Command Buffer Supported Queue Properties:\n " );
148+ PrintCommandBufferQueueProperties (supportedProps);
141149
142150 cl::Context context{devices[deviceIndex]};
143151 cl::CommandQueue commandQueue{context, devices[deviceIndex]};
0 commit comments