From ef171b016d5ecb511ad80208f57f969859f13d90 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 5 Aug 2019 14:58:43 -0400
Subject: [PATCH] P4 to Git Change 1978478 by cpaquot@cpaquot-ocl-lc-lnx on
2019/08/05 14:49:19
SWDEV-197464 - [HIP] Set GPU_SINGLE_ALLOC_PERCENT to 100 for hip.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#245 edit
---
rocclr/runtime/device/device.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rocclr/runtime/device/device.cpp b/rocclr/runtime/device/device.cpp
index 951d944605..5bd20a07e4 100644
--- a/rocclr/runtime/device/device.cpp
+++ b/rocclr/runtime/device/device.cpp
@@ -607,6 +607,10 @@ Settings::Settings() : value_(0) {
overrideLclSet |= (!flagIsDefault(GPU_MAX_WORKGROUP_SIZE_3D_X) ||
!flagIsDefault(GPU_MAX_WORKGROUP_SIZE_3D_Y) ||
!flagIsDefault(GPU_MAX_WORKGROUP_SIZE_3D_Z)) ? 4 : 0;
+
+ if (amd::IS_HIP) {
+ GPU_SINGLE_ALLOC_PERCENT = 100;
+ }
}
void Memory::saveMapInfo(const void* mapAddress, const amd::Coord3D origin,