From 3e6aee2c9313c4fc0657000a879deebaf642a7fb Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 16 Jan 2018 16:22:43 -0500
Subject: [PATCH] P4 to Git Change 1504202 by gandryey@gera-w8 on 2018/01/16
16:11:56
SWDEV-116219 - Allocating memory on GPU is 2x slower on win10 RS than on win7
- Fix failures on Win7 32 bit after extending resource cache size. Disable SVM region reservation for 32 bits, since OCL2.0 is disabled for 32bit.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#581 edit
---
rocclr/runtime/device/gpu/gpudevice.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp
index 3843fbf5c0..686d4a714b 100644
--- a/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -838,9 +838,13 @@ bool Device::create(CALuint ordinal, CALuint numOfDevices) {
smallMemSystem = true;
}
+ bool noSVM = LP64_SWITCH(true, false) && !GPU_FORCE_OCL20_32BIT;
// Open GSL device
if (!open(ordinal, appProfile_.enableHighPerformanceState(),
- smallMemSystem || appProfile_.reportAsOCL12Device() || (OPENCL_VERSION < 200))) {
+ (smallMemSystem ||
+ appProfile_.reportAsOCL12Device() ||
+ (OPENCL_VERSION < 200) ||
+ noSVM))) {
return false;
}