[GPU] minor improvements (#8113)
* Show bucket/batch id in case of build failure * Support OV_GPU_DisableOnednn properly.
This commit is contained in:
parent
dfefb92164
commit
f15fcabfeb
@ -395,7 +395,9 @@ void kernels_cache::build_batch(const engine& build_engine, const batch_program&
|
|||||||
std::cout << "...." << std::endl;
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "ocl_device.hpp"
|
#include "ocl_device.hpp"
|
||||||
#include "ocl_common.hpp"
|
#include "ocl_common.hpp"
|
||||||
|
#include "cldnn/runtime/debug_configuration.hpp"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#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_imad = info.supports_imad || (features & CL_DEVICE_FEATURE_FLAG_DP4A_INTEL);
|
||||||
info.supports_immad = info.supports_immad || (features & CL_DEVICE_FEATURE_FLAG_DPAS_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 {
|
} else {
|
||||||
info.gfx_ver = {0, 0, 0};
|
info.gfx_ver = {0, 0, 0};
|
||||||
info.device_id = driver_dev_id();
|
info.device_id = driver_dev_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user