SWDEV-309286 - save the max system mem size in device info
Change-Id: I9955625aca6ceda059aef6354d909de636b610ba
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user