From 058d5ee39fbf4d958dfe1f91458339ae18454ed7 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 15 Oct 2024 13:02:09 -0700 Subject: [PATCH] add queries for cl_intel_device_attribute_query (#300) --- include/CL/opencl.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index 52a2d532..b2fd68bb 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -1872,6 +1872,16 @@ 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_intel_device_attribute_query) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_IP_VERSION_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_ID_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_NUM_SLICES_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_NUM_SUB_SLICES_PER_SLICE_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_NUM_EUS_PER_SUB_SLICE_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_NUM_THREADS_PER_EU_INTEL, cl_uint) +CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_FEATURE_CAPABILITIES_INTEL, cl_device_feature_capabilities_intel) +#endif // cl_intel_device_attribute_query + // Convenience functions template