From 11bdf0005fc2fce01c1b8547418f07640317ef70 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Fri, 2 Oct 2020 12:11:53 -0400 Subject: [PATCH] [PAL] Detect if resizable bar is enabled Change-Id: I54b2e878d1cf7235a848a4b243f878538e226702 --- rocclr/device/pal/paldevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rocclr/device/pal/paldevice.cpp b/rocclr/device/pal/paldevice.cpp index c2b247760f..5e27d72105 100755 --- a/rocclr/device/pal/paldevice.cpp +++ b/rocclr/device/pal/paldevice.cpp @@ -702,6 +702,11 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp, info_.cooperativeGroups_ = settings().enableCoopGroups_; info_.cooperativeMultiDeviceGroups_ = settings().enableCoopMultiDeviceGroups_; + + if (heaps[Pal::GpuHeapInvisible].heapSize == 0) { + info_.largeBar_ = true; + ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Resizable bar enabled"); + } } }