SWDEV-309286 - save the max system mem size in device info

Change-Id: I9955625aca6ceda059aef6354d909de636b610ba
This commit is contained in:
Satyanvesh Dittakavi
2021-11-24 18:56:53 +00:00
orang tua 1df0ddefe4
melakukan 9dabdcdc3e
3 mengubah file dengan 9 tambahan dan 0 penghapusan
+3
Melihat File
@@ -1227,6 +1227,9 @@ bool Device::populateOCLDeviceConstants() {
info_.maxMemAllocSize_ = std::min(info_.maxMemAllocSize_, info_.globalMemSize_);
info_.maxMemAllocSize_ = amd::alignDown(info_.maxMemAllocSize_, sizeof(uint64_t));
// Maximum system memory allocation size allowed
info_.maxPhysicalMemAllocSize_ = amd::Os::getPhysicalMemSize();
// make sure we don't run anything over 8 params for now
info_.maxParameterSize_ = 1024;