From 6b33e1c577e57bb32ab93a91c78f0521a9fe4766 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 5 Jan 2017 15:16:37 -0500
Subject: [PATCH] P4 to Git Change 1358907 by
skudchad@skudchad_test_win_opencl2 on 2017/01/05 15:04:39
SWDEV-107966 - PCMark10 OpenCL Performance Regression with SVM
- Remove optimization for pinned memory. This causes performance drops now what we can use SUA model. This can be inserted in the future if the IOMMUv2 HW gets faster
ReviewBoardURL = http://ocltc.amd.com/reviews/r/12125/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#237 edit
[ROCm/clr commit: 46b882045448596c9e4712d347196ce995d1ee13]
---
projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
index a8fb50bf6d..6cf59df440 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpuresource.cpp
@@ -457,7 +457,7 @@ Resource::create(MemoryType memType, CreateParams* params)
desc.mipLevels = cal()->mipLevels_;
desc.systemMemory = NULL;
- uint allocAttempt = 0;
+ uint allocAttempt = 0;
do {
// Find a type for allocation
if (memoryType() == Persistent) {
@@ -608,11 +608,6 @@ Resource::create(MemoryType memType, CreateParams* params)
return false;
}
- if(dev().settings().svmFineGrainSystem_) {
- cal_.isAllocExecute_ = desc.isAllocExecute = true;
- cal_.isAllocSVM_ = desc.isAllocSVM = true;
- }
-
gslResource = dev().resAlloc(&desc);
if (gslResource != 0) {
calRes = true;