From f15fcabfebedc9bc2c968db4d604707812067c79 Mon Sep 17 00:00:00 2001 From: Mingyu Kim Date: Fri, 22 Oct 2021 13:01:14 +0900 Subject: [PATCH] [GPU] minor improvements (#8113) * Show bucket/batch id in case of build failure * Support OV_GPU_DisableOnednn properly. --- inference-engine/thirdparty/clDNN/runtime/kernels_cache.cpp | 4 +++- inference-engine/thirdparty/clDNN/runtime/ocl/ocl_device.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/inference-engine/thirdparty/clDNN/runtime/kernels_cache.cpp b/inference-engine/thirdparty/clDNN/runtime/kernels_cache.cpp index 89224a91b3b..77e2aed6222 100644 --- a/inference-engine/thirdparty/clDNN/runtime/kernels_cache.cpp +++ b/inference-engine/thirdparty/clDNN/runtime/kernels_cache.cpp @@ -395,7 +395,9 @@ void kernels_cache::build_batch(const engine& build_engine, const batch_program& std::cout << "...." << std::endl; } - throw std::runtime_error("Program build failed. You may enable OCL source dump to see the error log.\n"); + throw std::runtime_error("Program build failed(" + std::to_string(batch.bucket_id) + + "_part_" + + std::to_string(batch.batch_id) + + "): You may enable OCL source dump to see the error log.\n"); } } diff --git a/inference-engine/thirdparty/clDNN/runtime/ocl/ocl_device.cpp b/inference-engine/thirdparty/clDNN/runtime/ocl/ocl_device.cpp index 85e6c4a5258..e864877cc3e 100644 --- a/inference-engine/thirdparty/clDNN/runtime/ocl/ocl_device.cpp +++ b/inference-engine/thirdparty/clDNN/runtime/ocl/ocl_device.cpp @@ -4,6 +4,7 @@ #include "ocl_device.hpp" #include "ocl_common.hpp" +#include "cldnn/runtime/debug_configuration.hpp" #include #include @@ -250,6 +251,9 @@ device_info init_device_info(const cl::Device& device) { info.supports_imad = info.supports_imad || (features & CL_DEVICE_FEATURE_FLAG_DP4A_INTEL); info.supports_immad = info.supports_immad || (features & CL_DEVICE_FEATURE_FLAG_DPAS_INTEL); + GPU_DEBUG_GET_INSTANCE(debug_config); + GPU_DEBUG_IF(debug_config->disable_onednn) + info.supports_immad = false; } else { info.gfx_ver = {0, 0, 0}; info.device_id = driver_dev_id();