From 14e6355cd0e9613ea036e63423654e308916b563 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 8 Jan 2019 12:13:48 -0500
Subject: [PATCH] P4 to Git Change 1727393 by gandryey@gera-w8 on 2019/01/08
11:35:08
SWDEV-79445 - OCL generic changes and code clean-up
- Allow LC to execute 64bit GPU binaries with 32 bit OCL runtime.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#122 edit
[ROCm/clr commit: 697a5c68caa17e05daa48145ca721ee60182f399]
---
projects/clr/rocclr/runtime/device/pal/paldevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/pal/paldevice.cpp b/projects/clr/rocclr/runtime/device/pal/paldevice.cpp
index cd246ae6c2..82e292cc5b 100644
--- a/projects/clr/rocclr/runtime/device/pal/paldevice.cpp
+++ b/projects/clr/rocclr/runtime/device/pal/paldevice.cpp
@@ -469,7 +469,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
if (settings().use64BitPtr_) {
info_.addressBits_ = 64;
} else {
- info_.addressBits_ = 32;
+ info_.addressBits_ = (settings().useLightning_) ? 64 : 32;
// Limit total size with 3GB for 32 bit
info_.globalMemSize_ = std::min(info_.globalMemSize_, cl_ulong(3 * Gi));
}