From ca83b79cff51b3c41e1746e07ca486643c6c41be Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 20 Oct 2015 18:31:32 -0400
Subject: [PATCH] P4 to Git Change 1201765 by rili@rili_opencl_stg on
2015/10/20 17:48:08
SWDEV-79077 - Disable >4GB large single allocation for SI because SI is using AMDIL path which doesn't not support 64bits NDRange yet.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#332 edit
[ROCm/clr commit: b817bb5898454dcc052878ad6d9feec60fae5a06]
---
projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
index b7eedc8e52..6182f358e1 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
@@ -268,7 +268,8 @@ Settings::create(
supportDepthsRGB_ = true;
}
if (use64BitPtr_) {
- if ((GPU_ENABLE_LARGE_ALLOCATION) && (calAttr.isWorkstation)) {
+ if ((GPU_ENABLE_LARGE_ALLOCATION) && (calAttr.isWorkstation)
+ && (oclVersion_ == OpenCL20)) {
maxAllocSize_ = 64ULL * Gi;
}
else {