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: aa99feb153]
This commit is contained in:
foreman
2018-08-06 17:32:00 -04:00
parent 76e0512872
commit d4ff3dee52
@@ -1169,6 +1169,11 @@ bool Device::init() {
#endif
info.pSettingsPath = "OCL";
info.maxSvmSize = static_cast<Pal::gpusize>(OCL_SET_SVM_SIZE * Mi);
#if defined(BUILD_HIP)
if (flagIsDefault(OCL_SET_SVM_SIZE)) {
info.maxSvmSize = static_cast<Pal::gpusize>(16384 * Mi);
}
#endif
// PAL init
if (Pal::Result::Success != Pal::CreatePlatform(info, platformObj_, &platform_)) {