From d4ff3dee52a7f6c7f2e9ebbd311d1fb65e4e17c7 Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 6 Aug 2018 17:32:00 -0400 Subject: [PATCH] P4 to Git Change 1589968 by skudchad@skudchad_test2_win_opencl on 2018/08/06 17:25:53 SWDEV-145570 - [HIP] Increase the default size for SVM to 16GB for HIP ReviewBoardURL = http://ocltc.amd.com/reviews/r/15578/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#100 edit [ROCm/clr commit: aa99feb153f20c88f8411b9ac9b33d8610d30968] --- projects/clr/rocclr/runtime/device/pal/paldevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/rocclr/runtime/device/pal/paldevice.cpp b/projects/clr/rocclr/runtime/device/pal/paldevice.cpp index d98a76c0b4..19ce2c1844 100644 --- a/projects/clr/rocclr/runtime/device/pal/paldevice.cpp +++ b/projects/clr/rocclr/runtime/device/pal/paldevice.cpp @@ -1169,6 +1169,11 @@ bool Device::init() { #endif info.pSettingsPath = "OCL"; info.maxSvmSize = static_cast(OCL_SET_SVM_SIZE * Mi); +#if defined(BUILD_HIP) + if (flagIsDefault(OCL_SET_SVM_SIZE)) { + info.maxSvmSize = static_cast(16384 * Mi); + } +#endif // PAL init if (Pal::Result::Success != Pal::CreatePlatform(info, platformObj_, &platform_)) {