From 9cd6136461fe152d245b89c90e029b8a3da0f387 Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 12 Sep 2018 17:55:29 -0400
Subject: [PATCH] P4 to Git Change 1605085 by
skudchad@skudchad_test2_win_opencl on 2018/09/12 17:44:09
SWDEV-145570 - [HIP] - Enable largest possible allocation on HIP
ReviewBoardURL = http://ocltc.amd.com/reviews/r/15803/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#56 edit
[ROCm/clr commit: c35c82f394a88a8b703383c820495a6f9769d565]
---
projects/clr/rocclr/runtime/device/pal/palsettings.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp
index 34077b2864..5f035c77a6 100644
--- a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp
+++ b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp
@@ -285,7 +285,7 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
supportDepthsRGB_ = true;
}
if (use64BitPtr_) {
- if (GPU_ENABLE_LARGE_ALLOCATION && wscaps.workStationBoard) {
+ if (IS_HIP || (GPU_ENABLE_LARGE_ALLOCATION && wscaps.workStationBoard)) {
maxAllocSize_ = 64ULL * Gi;
} else {
maxAllocSize_ = 4048 * Mi;