diff --git a/cmake/features.cmake b/cmake/features.cmake index d223d6b2e21864..b74d768ce95694 100644 --- a/cmake/features.cmake +++ b/cmake/features.cmake @@ -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)