From 1d5baa6862ae3ffc7406db3de91146aa4ef682d0 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 15 May 2017 13:48:39 -0400
Subject: [PATCH] P4 to Git Change 1409664 by
skudchad@skudchad_test_win_opencl2 on 2017/05/15 13:43:01
SWDEV-121337 - [Gfx10][SW Emulation] - Support for SW emulation path for Compute
- Makefile changes for passing DTIF build flag
- Disable SVM support when emulating.
ReviewBoardURL = http://ocltc.amd.com/reviews/r/12755/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#46 edit
---
rocclr/runtime/device/pal/paldevice.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rocclr/runtime/device/pal/paldevice.cpp b/rocclr/runtime/device/pal/paldevice.cpp
index cda913ac90..05a2c9ad98 100644
--- a/rocclr/runtime/device/pal/paldevice.cpp
+++ b/rocclr/runtime/device/pal/paldevice.cpp
@@ -1019,11 +1019,13 @@ bool Device::init() {
platformObj = new char[size];
Pal::PlatformCreateInfo info = {};
info.flags.disableGpuTimeout = true;
+#if !defined(PAL_BUILD_DTIF)
#ifdef ATI_BITS_32
info.flags.force32BitVaSpace = true;
info.flags.enableSvmMode = false;
#else
info.flags.enableSvmMode = true;
+#endif
#endif
info.pSettingsPath = "OCL";
info.maxSvmSize = static_cast(OCL_SET_SVM_SIZE * Mi);