From bd27e2330c080840b29b426385ba3fc3cdfab05e Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 4 Jul 2017 14:59:40 -0400 Subject: [PATCH] P4 to Git Change 1429832 by gandryey@gera-w8 on 2017/07/04 14:30:21 SWDEV-122734 - [OCL]Carrizo crashes test on OCLperf in Windows 10 - Attempt to fix CZ crash on TC Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#210 edit --- rocclr/runtime/device/device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();