diff --git a/rocclr/runtime/device/device.cpp b/rocclr/runtime/device/device.cpp index 62322d9af7..b201b9b759 100644 --- a/rocclr/runtime/device/device.cpp +++ b/rocclr/runtime/device/device.cpp @@ -1026,7 +1026,10 @@ cl_int Program::build(const std::string& sourceCode, const char* origOptions, } if (!buildLog_.empty()) { - LogError(buildLog_.c_str()); + // LogError() has the size limit for the message + if (buildLog_.size() < 768) { + LogError(buildLog_.c_str()); + } } return buildError();