Skip to content

Commit 1edcfa3

Browse files
authored
minor updates for the OpenCL C++ bindings (#119)
* minor updates for the OpenCL C++ bindings Completely removes CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR Fixes an ifdef comment * add queries for cl_intel_required_subgroup_size
1 parent 8605458 commit 1edcfa3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

include/CL/opencl.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,6 @@ inline cl_int getInfoHelper(Func f, cl_uint name, T* param, int, typename T::cl_
14901490
F(cl_device_info, CL_DEVICE_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR, cl::vector<cl_external_semaphore_handle_type_khr>) \
14911491
F(cl_semaphore_info_khr, CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR, cl::vector<cl_external_semaphore_handle_type_khr>) \
14921492

1493-
#define CL_HPP_PARAM_NAME_CL_KHR_EXTERNAL_SEMAPHORE_DX_FENCE_EXT(F) \
1494-
F(cl_external_semaphore_handle_type_khr, CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR, void*) \
1495-
14961493
#define CL_HPP_PARAM_NAME_CL_KHR_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXT(F) \
14971494
F(cl_external_semaphore_handle_type_khr, CL_SEMAPHORE_HANDLE_OPAQUE_FD_KHR, int) \
14981495

@@ -1816,9 +1813,14 @@ CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_NUM_THREADS_PER_EU_INTEL,
18161813
CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_FEATURE_CAPABILITIES_INTEL, cl_device_feature_capabilities_intel)
18171814
#endif // cl_intel_device_attribute_query
18181815

1816+
#if defined(cl_intel_required_subgroup_size)
1817+
CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, cl::vector<size_type>)
1818+
CL_HPP_DECLARE_PARAM_TRAITS_(cl_kernel_work_group_info, CL_KERNEL_SPILL_MEM_SIZE_INTEL, cl_ulong)
1819+
#endif // cl_intel_required_subgroup_size
1820+
18191821
#if defined(cl_intel_unified_shared_memory)
18201822
CL_HPP_PARAM_NAME_CL_INTEL_UNIFIED_SHARED_MEMORY_(CL_HPP_DECLARE_PARAM_TRAITS_)
1821-
#endif // cl_intel_command_queue_families
1823+
#endif // cl_intel_unified_shared_memory
18221824

18231825
// Convenience functions
18241826

0 commit comments

Comments
 (0)