[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:
Mingyu Kim 2021-03-12 22:33:18 +09:00 committed by GitHub
parent 96933c5598
commit e6757dbd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;