From ae165c195ecd4a9d1d2573ecfcc4a1ed39ed022f 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
[ROCm/clr commit: bd27e2330c080840b29b426385ba3fc3cdfab05e]
---
projects/clr/rocclr/runtime/device/device.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/device.cpp b/projects/clr/rocclr/runtime/device/device.cpp
index 62322d9af7..b201b9b759 100644
--- a/projects/clr/rocclr/runtime/device/device.cpp
+++ b/projects/clr/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();