From 5d4efbda5050f89c3f7aad13de279826f3448b21 Mon Sep 17 00:00:00 2001 From: Ewan Crawford Date: Wed, 2 Oct 2024 14:20:54 +0100 Subject: [PATCH] Command-buffer supported queue properties query Add `CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR` from https://github.com/KhronosGroup/OpenCL-Docs/pull/850 --- include/CL/opencl.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index 970e67b1..039fffdc 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -1843,6 +1843,11 @@ CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_INTEGRATED_MEMORY_NV, cl_ #if defined(cl_khr_command_buffer) CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_COMMAND_BUFFER_CAPABILITIES_KHR, cl_device_command_buffer_capabilities_khr) +#if CL_KHR_COMMAND_BUFFER_VERSION > CL_MAKE_VERSION(0, 9, 5) +CL_HPP_DECLARE_PARAM_TRAITS_( + cl_device_info, CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR, + cl_command_queue_properties) +#endif CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR, cl_command_queue_properties) CL_HPP_DECLARE_PARAM_TRAITS_(cl_command_buffer_info_khr, CL_COMMAND_BUFFER_QUEUES_KHR, cl::vector) CL_HPP_DECLARE_PARAM_TRAITS_(cl_command_buffer_info_khr, CL_COMMAND_BUFFER_NUM_QUEUES_KHR, cl_uint)