From 642f540a0b3f4ff5afec537c8b588251b24522da Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 22 Oct 2024 09:31:51 -0700 Subject: [PATCH] add device queries for cl_intel_unified_shared_memory (#302) --- include/CL/opencl.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index 72c658fb..600d5f7c 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -1614,6 +1614,13 @@ inline cl_int getInfoHelper(Func f, cl_uint name, T* param, int, typename T::cl_ F(cl_command_queue_info, CL_QUEUE_FAMILY_INTEL, cl_uint) \ F(cl_command_queue_info, CL_QUEUE_INDEX_INTEL, cl_uint) +#define CL_HPP_PARAM_NAME_CL_INTEL_UNIFIED_SHARED_MEMORY_(F) \ + F(cl_device_info, CL_DEVICE_HOST_MEM_CAPABILITIES_INTEL, cl_device_unified_shared_memory_capabilities_intel ) \ + F(cl_device_info, CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL, cl_device_unified_shared_memory_capabilities_intel ) \ + F(cl_device_info, CL_DEVICE_SINGLE_DEVICE_SHARED_MEM_CAPABILITIES_INTEL, cl_device_unified_shared_memory_capabilities_intel ) \ + F(cl_device_info, CL_DEVICE_CROSS_DEVICE_SHARED_MEM_CAPABILITIES_INTEL, cl_device_unified_shared_memory_capabilities_intel ) \ + F(cl_device_info, CL_DEVICE_SHARED_SYSTEM_MEM_CAPABILITIES_INTEL, cl_device_unified_shared_memory_capabilities_intel ) + template struct param_traits {}; @@ -1903,6 +1910,10 @@ CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, cl CL_HPP_DECLARE_PARAM_TRAITS_(cl_kernel_work_group_info, CL_KERNEL_SPILL_MEM_SIZE_INTEL, cl_ulong) #endif // cl_intel_required_subgroup_size +#if defined(cl_intel_unified_shared_memory) +CL_HPP_PARAM_NAME_CL_INTEL_UNIFIED_SHARED_MEMORY_(CL_HPP_DECLARE_PARAM_TRAITS_) +#endif // cl_intel_unified_shared_memory + // Convenience functions template