Skip to content

Commit

Permalink
Migrate to OpenCL v2024.10.24 (#28275)
Browse files Browse the repository at this point in the history
### Details:
 - Migrate to OpenCL v2024.10.24
 - Required for integration with open source package managers
- Replacement for #27698
  • Loading branch information
ilya-lavrenov authored Jan 6, 2025
1 parent dd6a128 commit 120ad76
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion src/plugins/intel_gpu/src/runtime/ocl/ocl_ext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include <CL/cl2.hpp>
#endif

#ifndef CL_HPP_PARAM_NAME_CL_INTEL_UNIFIED_SHARED_MEMORY_
#define OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24
#endif

#include <CL/cl_ext.h>

#ifdef _WIN32
Expand Down Expand Up @@ -45,12 +49,16 @@ typedef cl_va_api_device_set_intel cl_device_set_intel;

#endif // cl_intel_required_subgroup_size

#ifdef OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24

namespace cl {
namespace detail {
CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, vector<size_type>)
CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, cl::vector<size_type>)
} // namespace detail
} // namespace cl

#endif // OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24

/***************************************************************
* cl_intel_command_queue_families
***************************************************************/
Expand Down Expand Up @@ -260,11 +268,15 @@ typedef cl_bitfield cl_device_feature_capabilities_intel;

#endif // cl_intel_device_attribute_query

#ifndef CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_
#define CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_(F) \
F(cl_device_info, CL_DEVICE_QUEUE_FAMILY_PROPERTIES_INTEL, cl::vector<cl_queue_family_properties_intel>) \
\
F(cl_command_queue_info, CL_QUEUE_FAMILY_INTEL, cl_uint) \
F(cl_command_queue_info, CL_QUEUE_INDEX_INTEL, cl_uint)
#endif // CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_

#ifdef OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24

namespace cl {
namespace detail {
Expand All @@ -279,6 +291,8 @@ CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_(CL_HPP_DECLARE_PARAM_TRAITS_)
} // namespace detail
} // namespace cl

#endif // OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24

#include <memory>

namespace {
Expand Down

0 comments on commit 120ad76

Please sign in to comment.