[GPU] minor improvements (#8113)

* Show bucket/batch id in case of build failure
* Support OV_GPU_DisableOnednn properly.
This commit is contained in:
Mingyu Kim 2021-10-22 13:01:14 +09:00 committed by GitHub
parent dfefb92164
commit f15fcabfeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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");
}
}

View File

@ -4,6 +4,7 @@
#include "ocl_device.hpp"
#include "ocl_common.hpp"
#include "cldnn/runtime/debug_configuration.hpp"
#include <map>
#include <string>
@ -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();