[IE CLDNN] Clarify ocl build error message (#4748)
As current short_msg is usually irrelevant actual error, do not print it. Instead, suggest to use srcdump.
This commit is contained in:
parent
96933c5598
commit
e6757dbd00
@ -412,9 +412,7 @@ kernels_cache::kernels_map kernels_cache::build_program(const program_code& prog
|
||||
}
|
||||
|
||||
if (!err_log.empty()) {
|
||||
static const size_t max_msg_length = 128;
|
||||
std::string short_err_log(err_log, 0, std::min(err_log.length(), max_msg_length));
|
||||
throw std::runtime_error("Program build failed:\n" + std::move(short_err_log));
|
||||
throw std::runtime_error("Program build failed. You may enable OCL source dump to see the error log.\n");
|
||||
}
|
||||
|
||||
return kmap;
|
||||
|
Loading…
Reference in New Issue
Block a user