P4 to Git Change 1783658 by cpaquot@cpaquot-ocl-lc-lnx on 2019/05/15 22:55:22

SWDEV-189541 - [HIP] Make sure maxSvmSize is power of two.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#136 edit


[ROCm/clr commit: 0ac6dcbd24]
This commit is contained in:
foreman
2019-05-15 23:14:28 -04:00
parent 0e4baf14ed
commit 775ae4f1f5
@@ -1302,6 +1302,7 @@ bool Device::init() {
info.maxSvmSize = maxVirtualReserve;
}
}
info.maxSvmSize = amd::nextPowerOfTwo(info.maxSvmSize - 1);
// PAL init
if (Pal::Result::Success != Pal::CreatePlatform(info, platformObj_, &platform_)) {