From e5733339c395272b555a3a80bfd6ecefe39f8d38 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 15 Oct 2024 16:06:14 -0700 Subject: [PATCH] add device queries for cl_ext_float_atomics (#311) --- include/CL/opencl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index 77873440..5ded36a2 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -1878,6 +1878,12 @@ CL_HPP_DECLARE_PARAM_TRAITS_(cl_mutable_command_info_khr, CL_MUTABLE_DISPATCH_LO CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_KERNEL_CLOCK_CAPABILITIES_KHR, cl_device_kernel_clock_capabilities_khr) #endif /* cl_khr_kernel_clock */ +#if defined(cl_ext_float_atomics) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SINGLE_FP_ATOMIC_CAPABILITIES_EXT, cl_device_fp_atomic_capabilities_ext) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_DOUBLE_FP_ATOMIC_CAPABILITIES_EXT, cl_device_fp_atomic_capabilities_ext) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_HALF_FP_ATOMIC_CAPABILITIES_EXT, cl_device_fp_atomic_capabilities_ext) +#endif /* cl_ext_float_atomics */ + #if defined(cl_intel_command_queue_families) CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_(CL_HPP_DECLARE_PARAM_TRAITS_) #endif // cl_intel_command_queue_families