Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU][Level Zero] Names unification L0->ZE (#36067)

Mikolaj Roszczyk16207e3b6413
diff --git a/cmake/features.cmake b/cmake/features.cmake
index d007660c764..f3e2e89562d 100644
--- a/cmake/features.cmake
+++ b/cmake/features.cmake
@@ -44,7 +44,10 @@ endif()
# Set default GPU runtime to OCL
set(OV_GPU_DEFAULT_RT "OCL")
if (ENABLE_INTEL_GPU)
- ov_option_enum (GPU_RT_TYPE "Type of GPU runtime. Supported value: OCL, L0 and SYCL" ${OV_GPU_DEFAULT_RT} ALLOWED_VALUES L0 OCL SYCL)
+ ov_option_enum (GPU_RT_TYPE "Type of GPU runtime. Supported value: OCL, SYCL and ZE (L0 is accepted as ZE alias)" ${OV_GPU_DEFAULT_RT} ALLOWED_VALUES ZE OCL L0 SYCL)
+ if(GPU_RT_TYPE STREQUAL "L0")
+ set(GPU_RT_TYPE "ZE" CACHE STRING "Type of GPU runtime" FORCE)
+ endif()
endif()
ov_dependent_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT} "ENABLE_INTEL_GPU" OFF)
@@ -220,7 +223,7 @@ else()
set(FORCE_FRONTENDS_USE_PROTOBUF OFF)
endif()
-if(ENABLE_INTEL_NPU OR (ENABLE_INTEL_GPU AND GPU_RT_TYPE STREQUAL "L0"))
+if(ENABLE_INTEL_NPU OR (ENABLE_INTEL_GPU AND GPU_RT_TYPE STREQUAL "ZE"))
set(ENABLE_OV_ZERO_LOADER ON)
else()
set(ENABLE_OV_ZERO_LOADER OFF)
diff --git a/src/plugins/intel_gpu/cmake/utils.cmake b/src/plugins/intel_gpu/cmake/utils.cmake
index ce412d8a13c..5fbeae0c769 100644
--- a/src/plugins/intel_gpu/cmake/utils.cmake
+++ b/src/plugins/intel_gpu/cmake/utils.cmake
@@ -3,7 +3,7 @@
#
function(ov_gpu_set_runtime_interface_for TARGET_NAME)
- if(GPU_RT_TYPE STREQUAL "L0")
+ if(GPU_RT_TYPE STREQUAL "ZE")
target_compile_definitions(${TARGET_NAME} PRIVATE OV_GPU_WITH_ZE_RT=1)
target_link_libraries(${TARGET_NAME} PRIVATE openvino::zero_loader)
elseif(GPU_RT_TYPE STREQUAL "OCL")
@@ -12,6 +12,6 @@ function(ov_gpu_set_runtime_interface_for TARGET_NAME)
elseif(GPU_RT_TYPE STREQUAL "SYCL")
target_compile_definitions(${TARGET_NAME} PRIVATE OV_GPU_WITH_SYCL_RT=1)
else()
- message(FATAL_ERROR "Invalid GPU runtime type: `${GPU_RT_TYPE}` Only `L0`, `OCL` and `SYCL` are supported")
+ message(FATAL_ERROR "Invalid GPU runtime type: `${GPU_RT_TYPE}` Only `ZE`, `OCL` and `SYCL` are supported")
endif()
endfunction()
diff --git a/src/plugins/intel_gpu/docs/gpu_plugin_with_level_zero.md b/src/plugins/intel_gpu/docs/gpu_plugin_with_level_zero.md
index 4af3c58965b..d0616cb2c67 100644
--- a/src/plugins/intel_gpu/docs/gpu_plugin_with_level_zero.md
+++ b/src/plugins/intel_gpu/docs/gpu_plugin_with_level_zero.md
@@ -5,7 +5,7 @@ OpenVINO GPU plugin can be compiled with **experimental** Level Zero support. Wh
## How to build with Level Zero support
1. Configure cmake with the following additional option:
- - `-DGPU_RT_TYPE=L0`
+ - `-DGPU_RT_TYPE=ZE`
2. Build OpenVINO
- `cmake --build . --config Release`
@@ -15,7 +15,7 @@ OpenVINO GPU plugin can be compiled with **experimental** Level Zero support. Wh
1. Set `OV_VERBOSE=1` environment variable.
2. Run workload
3. Find what variant of stream is reported in the logs (`ze_stream` or `ocl_stream`)
- - Example output for Level Zero runtime: `ze_stream: [GPU] Created L0 stream`
+ - Example output for Level Zero runtime: `ze_stream: [GPU] Created Level Zero stream`
### Without DEBUG_CAPS
* You can check by which library is loaded.
* In Linux, use strace to check which so is loaded
diff --git a/src/plugins/intel_gpu/include/intel_gpu/plugin/remote_tensor.hpp b/src/plugins/intel_gpu/include/intel_gpu/plugin/remote_tensor.hpp
index 79a85e0d373..aff2d1159fc 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/plugin/remote_tensor.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/plugin/remote_tensor.hpp
@@ -9,7 +9,7 @@
#endif
-// Do not include DirectX / VA wrappers when running with L0 runtime as they depend on OCL
+// Do not include DirectX / VA wrappers when running with ZE runtime as they depend on OCL
#ifndef OV_GPU_WITH_ZE_RT
#ifdef _WIN32
# include <openvino/runtime/intel_gpu/ocl/dx.hpp>
diff --git a/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp b/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp
index 1598dfda03e..bef507037b0 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp
@@ -117,13 +117,13 @@ struct device_info {
bool supports_imad; ///< Does engine support int8 mad.
bool supports_immad; ///< Does engine support int8 multi mad.
- bool supports_mutable_command_list; ///< [L0] Does the target runtime/device support mutable command list feature
+ bool supports_mutable_command_list; ///< [ZE] Does the target runtime/device support mutable command list feature
bool supports_usm; ///< Does engine support unified shared memory.
bool has_separate_cache; ///< Does the target hardware has separate cache for usm_device and usm_host
- bool supports_cp_offload; ///< [L0] Does the command queue support copy offload
- bool supports_counter_based_events; ///< [L0] Does the target runtime support counter based events
+ bool supports_cp_offload; ///< [ZE] Does the command queue support copy offload
+ bool supports_counter_based_events; ///< [ZE] Does the target runtime support counter based events
std::vector<size_t> supported_simd_sizes; ///< List of SIMD sizes supported by current device and compiler
@@ -146,10 +146,10 @@ struct device_info {
pci_bus_info pci_info; ///< PCI bus information for the device
- uint64_t timer_resolution; ///< [L0] Resolution of device timer used for profiling in cycles/sec
- uint32_t kernel_timestamp_valid_bits; ///< [L0] Number of valid bits in the kernel timestamp values
- uint32_t compute_queue_group_ordinal; ///< [L0] Ordinal of the command queue group to use for compute
- uint32_t device_memory_ordinal; ///< [L0] Ordinal of the selected global device memory
+ uint64_t timer_resolution; ///< [ZE] Resolution of device timer used for profiling in cycles/sec
+ uint32_t kernel_timestamp_valid_bits; ///< [ZE] Number of valid bits in the kernel timestamp values
+ uint32_t compute_queue_group_ordinal; ///< [ZE] Ordinal of the command queue group to use for compute
+ uint32_t device_memory_ordinal; ///< [ZE] Ordinal of the selected global device memory
ov::device::UUID uuid; ///< UUID of the gpu device
ov::device::LUID luid; ///< LUID of the gpu device
diff --git a/src/plugins/intel_gpu/src/graph/CMakeLists.txt b/src/plugins/intel_gpu/src/graph/CMakeLists.txt
index 0af5cdc6402..9b85631ff07 100644
--- a/src/plugins/intel_gpu/src/graph/CMakeLists.txt
+++ b/src/plugins/intel_gpu/src/graph/CMakeLists.txt
@@ -34,11 +34,11 @@ set(COMMON_LINK_LIBRARIES openvino::shape_inference # for tensor accessor
openvino::itt
openvino::runtime::dev
openvino::runtime
- OpenCL::OpenCL # Onednn needs OCL headers even when running L0
+ OpenCL::OpenCL # Onednn needs OCL headers even when running Level Zero
)
-if(GPU_RT_TYPE STREQUAL "L0")
- # Onednn needs L0 headers
+if(GPU_RT_TYPE STREQUAL "ZE")
+ # Onednn needs ZE headers
list(APPEND COMMON_LINK_LIBRARIES openvino::zero_loader)
endif()
diff --git a/src/plugins/intel_gpu/src/graph/common_utils/parallel_mem_streambuf.hpp b/src/plugins/intel_gpu/src/graph/common_utils/parallel_mem_streambuf.hpp
index 70768287ace..09b57e1ed90 100644
--- a/src/plugins/intel_gpu/src/graph/common_utils/parallel_mem_streambuf.hpp
+++ b/src/plugins/intel_gpu/src/graph/common_utils/parallel_mem_streambuf.hpp
@@ -13,7 +13,7 @@
namespace ov::intel_gpu {
// A temporary solution to improve SSD reading bandwidth and avoid the 2x-RAM cost of mmap+memcpy for mmap files.
-// Once L0 handle SSD reading bandwidth issue, this can be removed and the original mmap+memcpy path can be restored.
+// Once Level Zero handles SSD reading bandwidth issue, this can be removed and the original mmap+memcpy path can be restored.
//
// A std::streambuf that reads from an in-memory buffer using parallel
// memcpy for large reads. When the source is a file-backed mmap, the
diff --git a/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp b/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp
index c3e7468d054..a9656d73399 100644
--- a/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp
+++ b/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp
@@ -317,7 +317,7 @@ void RemoteTensorImpl::allocate() {
switch (m_mem_type) {
case TensorType::BT_BUF_INTERNAL: {
- // BT_BUF_INTERNAL should map to cl_mem however L0 engine can not allocate cl_mem
+ // BT_BUF_INTERNAL should map to cl_mem however ZE engine can not allocate cl_mem
if (engine.supports_allocation(cldnn::allocation_type::cl_mem)) {
m_memory_object = engine.allocate_memory(m_layout, cldnn::allocation_type::cl_mem, reset);
} else if (engine.supports_allocation(cldnn::allocation_type::sycl_buffer)) {
diff --git a/src/plugins/intel_gpu/src/runtime/CMakeLists.txt b/src/plugins/intel_gpu/src/runtime/CMakeLists.txt
index 4221d1bd0e6..1cc116e8ecb 100644
--- a/src/plugins/intel_gpu/src/runtime/CMakeLists.txt
+++ b/src/plugins/intel_gpu/src/runtime/CMakeLists.txt
@@ -42,7 +42,7 @@ if(GPU_RT_TYPE STREQUAL "OCL")
set(SYCL_SOURCES ${OCL_SYCL_SOURCES})
endif()
-if(GPU_RT_TYPE STREQUAL "L0")
+if(GPU_RT_TYPE STREQUAL "ZE")
list(APPEND LIBRARY_SOURCES_ALL ${LIBRARY_SOURCES_OCL})
list(APPEND LIBRARY_SOURCES_ALL ${LIBRARY_SOURCES_ZE})
endif()
@@ -85,7 +85,7 @@ endif()
ov_set_threading_interface_for(${TARGET_NAME})
ov_gpu_set_runtime_interface_for(${TARGET_NAME})
-# Requires OpenCL even for L0 builds because of kernel builder and OneDNN
+# Requires OpenCL even for Level Zero builds because of kernel builder and OneDNN
target_link_libraries(${TARGET_NAME} PRIVATE
OpenCL::OpenCL
openvino::itt
diff --git a/src/plugins/intel_gpu/src/runtime/execution_config.cpp b/src/plugins/intel_gpu/src/runtime/execution_config.cpp
index dc8ee6ae3e0..a93788e3419 100644
--- a/src/plugins/intel_gpu/src/runtime/execution_config.cpp
+++ b/src/plugins/intel_gpu/src/runtime/execution_config.cpp
@@ -372,7 +372,7 @@ void ExecutionConfig::finalize_impl(const IRemoteContext* context) {
apply_config_options(context->get_device_name(), get_debug_config());
// Auto-enable queue-level profiling when a per-primitive timing dump is requested.
- // Without this, OCL/L0 streams are created without CL_QUEUE_PROFILING_ENABLE and
+ // Without this, OCL/ZE streams are created without CL_QUEUE_PROFILING_ENABLE and
// event::get_profiling_info() yields no data, leaving average_counters with zero times.
// Mirrors CPU plugin's Config::applyDebugCapsProperties().
if (!get_dump_profiling_data_path().empty() || !get_average_counters().empty()) {
diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_engine.cpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_engine.cpp
index 141c3fc2ccc..24b2f0bbaa0 100644
--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_engine.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_engine.cpp
@@ -65,7 +65,7 @@ void ocl_engine::create_onednn_engine(const ExecutionConfig& config) {
auto casted = std::dynamic_pointer_cast<ocl_device>(_device);
OPENVINO_ASSERT(casted, "[GPU] Invalid device type stored in ocl_engine");
#ifdef OV_GPU_WITH_ZE_RT
- OPENVINO_THROW("[GPU] Using OCL OneDNN API with L0 runtime");
+ OPENVINO_THROW("[GPU] Using OCL OneDNN API with Level Zero runtime");
#else
_onednn_engine = std::make_shared<dnnl::engine>(dnnl::ocl_interop::make_engine(casted->get_device().get(), casted->get_context().get()));
#endif
diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_memory.cpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_memory.cpp
index 57eedf9bb04..e168a076c32 100644
--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_memory.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_memory.cpp
@@ -207,7 +207,7 @@ dnnl::memory gpu_buffer::get_onednn_memory(dnnl::memory::desc desc, int64_t offs
auto onednn_engine = _engine->get_onednn_engine();
dnnl::memory dnnl_mem(desc, onednn_engine, DNNL_MEMORY_NONE);
#ifdef OV_GPU_WITH_ZE_RT
- OPENVINO_THROW("[GPU] Using OCL OneDNN API with L0 runtime");
+ OPENVINO_THROW("[GPU] Using OCL OneDNN API with Level Zero runtime");
#else
dnnl::ocl_interop::set_mem_object(dnnl_mem, _buffer.get());
#endif
@@ -660,7 +660,7 @@ event::ptr gpu_usm::copy_to(stream& stream, void* data_ptr, size_t src_offset, s
dnnl::memory gpu_usm::get_onednn_memory(dnnl::memory::desc desc, int64_t offset) const {
auto onednn_engine = _engine->get_onednn_engine();
#ifdef OV_GPU_WITH_ZE_RT
- OPENVINO_THROW("[GPU] Using OCL OneDNN API with L0 runtime");
+ OPENVINO_THROW("[GPU] Using OCL OneDNN API with Level Zero runtime");
#else
dnnl::memory dnnl_mem = dnnl::ocl_interop::make_memory(desc, onednn_engine, dnnl::ocl_interop::memory_kind::usm,
reinterpret_cast<uint8_t*>(_buffer.get()) + offset);
@@ -671,7 +671,7 @@ dnnl::memory gpu_usm::get_onednn_memory(dnnl::memory::desc desc, int64_t offset)
dnnl::memory gpu_usm::get_onednn_grouped_memory(dnnl::memory::desc desc, const memory& offsets) const {
auto onednn_engine = _engine->get_onednn_engine();
#ifdef OV_GPU_WITH_ZE_RT
- OPENVINO_THROW("[GPU] Using OCL OneDNN API with L0 runtime");
+ OPENVINO_THROW("[GPU] Using OCL OneDNN API with Level Zero runtime");
#else
OPENVINO_ASSERT(memory_capabilities::is_usm_type(offsets.get_allocation_type()));
OPENVINO_ASSERT(offsets.get_engine() == this->_engine);
diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_stream.cpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_stream.cpp
index ff492979f00..999012a5b4b 100644
--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_stream.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_stream.cpp
@@ -241,7 +241,7 @@ dnnl::stream& ocl_stream::get_onednn_stream() {
OPENVINO_ASSERT(_engine.get_device_info().vendor_id == INTEL_VENDOR_ID, "[GPU] Can't create onednn stream handle as for non-Intel devices");
if (!_onednn_stream) {
#ifdef OV_GPU_WITH_ZE_RT
- OPENVINO_THROW("[GPU] Using OCL OneDNN API with L0 runtime");
+ OPENVINO_THROW("[GPU] Using OCL OneDNN API with Level Zero runtime");
#else
_onednn_stream = std::make_shared<dnnl::stream>(dnnl::ocl_interop::make_stream(_engine.get_onednn_engine(), _command_queue.get()));
#endif
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event.hpp
index ca1c0328d48..241a8f6dad6 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event.hpp
@@ -10,7 +10,7 @@ namespace cldnn {
namespace ze {
-// L0 counter based event.
+// ze counter based event.
// Signaled state is inferred from the number of tasks completed on device.
// Resetting counter based event is not allowed.
// Start in signaled state and signaling from host is not allowed.
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event_factory.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event_factory.hpp
index f8730d8e42c..4b080e422a3 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event_factory.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_counter_based_event_factory.hpp
@@ -11,7 +11,7 @@
namespace cldnn {
namespace ze {
-// Interface for creating l0 counter based events
+// Interface for creating ze counter based events
// Should only be used with in-order queue
struct ze_counter_based_event_factory : public ze_base_event_factory {
public:
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp b/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
index a2c4185d8d9..0802032675b 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
@@ -170,7 +170,7 @@ device_info init_device_info(ze_driver_handle_t driver, ze_device_handle_t devic
info.vendor_id = device_properties.vendorId;
info.dev_name = device_properties.name;
- // L0 returns drivers version in different format than OCL
+ // ZE returns drivers version in different format than OCL
info.driver_version = std::to_string(driver_properties.driverVersion);
info.dev_type = (device_properties.flags & ZE_DEVICE_PROPERTY_FLAG_INTEGRATED) ? device_type::integrated_gpu : device_type::discrete_gpu;
@@ -220,7 +220,7 @@ device_info init_device_info(ze_driver_handle_t driver, ze_device_handle_t devic
info.supports_usm = device_memory_access_properties.hostAllocCapabilities && device_memory_access_properties.deviceAllocCapabilities;
- // FIXME: Could not find how to retrieve those from L0
+ // FIXME: Could not find how to retrieve those from ZE
info.supports_work_group_collective_functions = false;
info.supports_intel_planar_yuv = false;
info.supports_khr_subgroups = true;
@@ -228,7 +228,7 @@ device_info init_device_info(ze_driver_handle_t driver, ze_device_handle_t devic
info.supports_intel_subgroups_short = true;
info.supports_intel_subgroups_char = true;
info.supports_intel_required_subgroup_size = true;
- // queue families correspond to L0 cmd queue ordinal and index
+ // queue families correspond to ZE cmd queue ordinal and index
info.supports_queue_families = true;
if (supports_ip_version) {
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_engine_factory.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_engine_factory.hpp
index 5d4a5f8726c..a4265484b1c 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_engine_factory.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_engine_factory.hpp
@@ -10,7 +10,7 @@
namespace cldnn {
namespace ze {
-// Factory for ze_engine creation. It's moved outside of ze_engine class to avoid possible L0 includes conflict
+// Factory for ze_engine creation. It's moved outside of ze_engine class to avoid possible ZE includes conflict
// between different engines in engine.cpp file
std::shared_ptr<cldnn::engine> create_ze_engine(const device::ptr device, runtime_types runtime_type);
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_event.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_event.hpp
index 834d3d572a3..7b94d84e52b 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_event.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_event.hpp
@@ -10,7 +10,7 @@
namespace cldnn {
namespace ze {
-// L0 event. Can be either in signaled state or not signaled state.
+// ZE event. Can be either in signaled state or not signaled state.
struct ze_event : public ze_base_event {
public:
// Take ownership of event handle
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_event_factory.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_event_factory.hpp
index 35227de8e3d..bf57db27858 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_event_factory.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_event_factory.hpp
@@ -12,7 +12,7 @@
namespace cldnn {
namespace ze {
-// Interface for creating l0 events using event pools
+// Interface for creating ze events using event pools
struct ze_event_factory : public ze_base_event_factory {
public:
ze_event_factory(const ze_engine &engine, bool enable_profiling, uint32_t capacity = 255);
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel.hpp
index d2e27413570..ea8de8d275f 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel.hpp
@@ -30,7 +30,7 @@ public:
ZE_STRUCTURE_TYPE_KERNEL_DESC, nullptr, flags, nullptr};
for (auto name_cstr : kernel_names) {
auto name = std::string(name_cstr);
- // L0 returns Intel_Symbol_Table_Void_Program that does not correspond to actual kernel
+ // ZE returns Intel_Symbol_Table_Void_Program that does not correspond to actual kernel
if (name == "Intel_Symbol_Table_Void_Program") {
continue;
}
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.cpp b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.cpp
index 369bebad405..9e339a0a29f 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.cpp
@@ -26,13 +26,13 @@ void ze_kernel_builder::init_ocl_builder() const {
m_ocl_device = ocl_dev;
}
}
- OPENVINO_ASSERT(m_ocl_device != nullptr, "[GPU] L0 kernel builder was not able to find matching OCL device");
+ OPENVINO_ASSERT(m_ocl_device != nullptr, "[GPU] Level Zero kernel builder was not able to find matching OCL device");
if (!m_ocl_device->is_initialized())
m_ocl_device->initialize();
m_ocl_builder = std::make_shared<ocl_kernel_builder>(*m_ocl_device);
}
-bool ze_kernel_builder::check_l0_build_support() const {
+bool ze_kernel_builder::check_ze_build_support() const {
static std::unordered_map<ze_device_handle_t, bool> cache;
static std::mutex m;
// Prevent multiple threads from checking support at the same time
@@ -44,16 +44,16 @@ bool ze_kernel_builder::check_l0_build_support() const {
return cache.at(dev_handle);
}
try {
- build_module_l0(src, src_bytes, KernelFormat::SOURCE, "");
+ build_module_ze(src, src_bytes, KernelFormat::SOURCE, "");
cache[dev_handle] = true;
} catch (std::exception&) {
- GPU_DEBUG_INFO << "[GPU] Device(" << dev_handle << ") does not support kernel compilation from source through L0" << std::endl;
+ GPU_DEBUG_INFO << "[GPU] Device(" << dev_handle << ") does not support kernel compilation from source through Level Zero" << std::endl;
cache[dev_handle] = false;
}
return cache.at(dev_handle);
}
-std::shared_ptr<ze_module_holder> ze_kernel_builder::build_module_l0(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const {
+std::shared_ptr<ze_module_holder> ze_kernel_builder::build_module_ze(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const {
ze_module_desc_t module_desc = {
ZE_STRUCTURE_TYPE_MODULE_DESC,
nullptr,
@@ -96,18 +96,18 @@ std::shared_ptr<ze_module_holder> ze_kernel_builder::build_module_l0(const void
}
std::shared_ptr<ze_module_holder> ze_kernel_builder::build_module_ocl(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const {
- OPENVINO_ASSERT(src_format == KernelFormat::SOURCE, "[GPU] L0 kernel builder should only fallback to OCL when building kernels from source");
- OPENVINO_ASSERT(m_ocl_builder != nullptr, "[GPU] L0 kernel builder expected initialized OCL builder");
+ OPENVINO_ASSERT(src_format == KernelFormat::SOURCE, "[GPU] Level Zero kernel builder should only fallback to OCL when building kernels from source");
+ OPENVINO_ASSERT(m_ocl_builder != nullptr, "[GPU] Level Zero kernel builder expected initialized OCL builder");
std::vector<kernel::ptr> tmp;
m_ocl_builder->build_kernels(src, src_bytes, src_format, options, tmp);
- OPENVINO_ASSERT(tmp.size() > 0, "[GPU] L0 kernel builder expected non-empty module");
+ OPENVINO_ASSERT(tmp.size() > 0, "[GPU] Level Zero kernel builder expected non-empty module");
auto binary = tmp[0]->get_binary();
- return build_module_l0(binary.data(), binary.size(), KernelFormat::NATIVE_BIN, options);
+ return build_module_ze(binary.data(), binary.size(), KernelFormat::NATIVE_BIN, options);
}
void ze_kernel_builder::build_kernels(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options, std::vector<kernel::ptr> &out) const {
std::shared_ptr<ze_module_holder> module_holder;
- if (src_format == KernelFormat::SOURCE && !check_l0_build_support()) {
+ if (src_format == KernelFormat::SOURCE && !check_ze_build_support()) {
{
std::lock_guard lock(this->m_mutex);
// Prevent ocl builder init call from multiple threads
@@ -117,7 +117,7 @@ void ze_kernel_builder::build_kernels(const void *src, size_t src_bytes, KernelF
}
module_holder = build_module_ocl(src, src_bytes, src_format, options);
} else {
- module_holder = build_module_l0(src, src_bytes, src_format, options);
+ module_holder = build_module_ze(src, src_bytes, src_format, options);
}
ze_kernel::create_kernels_from_module(module_holder, out);
}
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.hpp
index 4d128ec5e07..435e5b15173 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_kernel_builder.hpp
@@ -25,15 +25,15 @@ public:
void build_kernels(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options, std::vector<kernel::ptr> &out) const override;
private:
- /// @brief Check if L0 can build kernels from source
- bool check_l0_build_support() const;
- /// @brief Build module through L0 API
- std::shared_ptr<ze_module_holder> build_module_l0(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const;
- /// @brief Build module through OCL API and repackage to L0 module
+ /// @brief Check if ZE can build kernels from source
+ bool check_ze_build_support() const;
+ /// @brief Build module through ZE API
+ std::shared_ptr<ze_module_holder> build_module_ze(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const;
+ /// @brief Build module through OCL API and repackage to ZE module
std::shared_ptr<ze_module_holder> build_module_ocl(const void *src, size_t src_bytes, KernelFormat src_format, const std::string &options) const;
void init_ocl_builder() const;
const ze_device &m_device;
- // OCL workaround for legacy devices that does not support l0 compilation
+ // OCL workaround for legacy devices that does not support ZE compilation
mutable std::shared_ptr<::cldnn::ocl::ocl_kernel_builder> m_ocl_builder;
mutable std::shared_ptr<::cldnn::ocl::ocl_device> m_ocl_device;
mutable std::mutex m_mutex;
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
index 1a4379fa2fc..bdc2253ea32 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_stream.cpp
@@ -229,7 +229,7 @@ ze_stream::ze_stream(const ze_engine &engine, const ExecutionConfig& config)
// If counter based events are not supported or not used, use the same factory for both user and base events
m_ev_factory = m_user_ev_factory;
}
- GPU_DEBUG_INFO << "[GPU] Created L0 stream ("
+ GPU_DEBUG_INFO << "[GPU] Created Level Zero stream ("
<< "index=" << index
<< ", use_cp_offload=" << use_cp_offload
<< ", use_counter_based_events=" << use_counter_based_events
diff --git a/src/plugins/intel_gpu/tests/unit/CMakeLists.txt b/src/plugins/intel_gpu/tests/unit/CMakeLists.txt
index 42e570cf4f1..baf5d8a1c6e 100644
--- a/src/plugins/intel_gpu/tests/unit/CMakeLists.txt
+++ b/src/plugins/intel_gpu/tests/unit/CMakeLists.txt
@@ -56,7 +56,7 @@ file(GLOB_RECURSE SOURCES_WITH_ZE_RT
"${CMAKE_CURRENT_SOURCE_DIR}/module_tests/ze/*.cpp"
)
-if (NOT GPU_RT_TYPE STREQUAL "L0")
+if (NOT GPU_RT_TYPE STREQUAL "ZE")
foreach (SOURCE_FILE IN LISTS SOURCES_WITH_ZE_RT)
list (REMOVE_ITEM SOURCES_MAIN ${SOURCE_FILE})
endforeach()
diff --git a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
index dd2a853fcaa..a614a5d8639 100644
--- a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
+++ b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
@@ -116,7 +116,7 @@ if(ENABLE_ONEDNN_FOR_GPU)
set(onednn_gpu_lib "${CMAKE_STATIC_LIBRARY_PREFIX}${DNNL_GPU_LIBRARY_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}")
set(ONEDNN_GPU_LIB_PATH ${ONEDNN_INSTALL_DIR}/lib/${onednn_gpu_lib} CACHE FILEPATH "Path to oneDNN GPU library")
set(ONEDNN_GPU_DIR ${CMAKE_CURRENT_SOURCE_DIR}/onednn_gpu CACHE FILEPATH "Path to oneDNN GPU repository")
- if(GPU_RUNTIME STREQUAL "L0")
+ if(GPU_RUNTIME STREQUAL "ZE")
set(ONEDNN_GPU_RT "ZE")
# OneDNN is using different version of L0 headers
# Disable LTO to avoid build issues