Skip to content

Commit

Permalink
Fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-paramuzov committed Oct 2, 2024
1 parent aaf71a2 commit b716bf5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmake/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ else()
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT ON)
endif()

ov_dependent_option (GPU_RT_TYPE "Type of GPU runtime. Should be either `OCL` or `L0`" "L0" "ENABLE_INTEL_GPU" OFF)
if (GPU_RT_TYPE STREQUAL L0)
# There's no interop with native L0 in onednn API. Temporary disable onednn when L0 runtime is selected
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT OFF)
set(OV_GPU_DEFAULT_RT "L0")
if (ENABLE_INTEL_GPU)
ov_option_enum (GPU_RT_TYPE "Type of GPU runtime. Supported value: OCL and L0" ${OV_GPU_DEFAULT_RT} ALLOWED_VALUES L0 OCL)
if (GPU_RT_TYPE STREQUAL L0)
# There's no interop with native L0 in onednn API. Temporary disable onednn when L0 runtime is selected
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT OFF)
endif()
endif()

ov_dependent_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT} "ENABLE_INTEL_GPU" OFF)
Expand Down

0 comments on commit b716bf5

Please sign in to comment.