OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] Set CL_TARGET_OPENCL_VERSION=300 as default (#29640)
Henry Linjamäkia1ab37952c46
diff --git a/src/plugins/intel_gpu/CMakeLists.txt b/src/plugins/intel_gpu/CMakeLists.txtindex 3322f2f3f1a..3b1f5fac656 100644--- a/src/plugins/intel_gpu/CMakeLists.txt+++ b/src/plugins/intel_gpu/CMakeLists.txt@@ -54,7 +54,8 @@ if(ENABLE_GPU_DEBUG_CAPS)add_definitions(-DENABLE_DEBUG_CAPS=1)endif()-set(INTEL_GPU_TARGET_OCL_VERSION "200" CACHE STRING "Target version of OpenCL which should be used by GPU plugin")+set(INTEL_GPU_TARGET_OCL_VERSION "300"+ CACHE STRING "Target version of OpenCL which should be used by GPU plugin")add_definitions(-DCL_TARGET_OPENCL_VERSION=${INTEL_GPU_TARGET_OCL_VERSION})diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernel_base_opencl.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernel_base_opencl.cppindex dceee0edc73..e8a0dfdc3b1 100644--- a/src/plugins/intel_gpu/src/kernel_selector/kernel_base_opencl.cpp+++ b/src/plugins/intel_gpu/src/kernel_selector/kernel_base_opencl.cpp@@ -177,7 +177,9 @@ std::shared_ptr<KernelString> KernelBaseOpenCL::GetKernelString(const std::strinkernel_string->options += " -DOPT_HINTS_SUPPORTED=1";}-#if CL_TARGET_OPENCL_VERSION >= 200+#if CL_TARGET_OPENCL_VERSION >= 300+ kernel_string->options += " -cl-std=CL3.0";+#elif CL_TARGET_OPENCL_VERSION >= 200kernel_string->options += " -cl-std=CL2.0";#endif