Merge system heap info.
Workaround pending thunk spec clarification.
Change-Id: I9d96227efde3a551157733cf4050d474d1e658f2
[ROCm/ROCR-Runtime commit: fe1763848a]
This commit is contained in:
@@ -77,6 +77,11 @@ void CpuAgent::InitRegionList() {
|
||||
});
|
||||
|
||||
if (system_prop != mem_props.end()) {
|
||||
// CRAT/KFD workaround
|
||||
for (auto idx = system_prop + 1; idx != mem_props.end(); idx++) {
|
||||
if (idx->HeapType == HSA_HEAPTYPE_SYSTEM) system_prop->SizeInBytes += idx->SizeInBytes;
|
||||
}
|
||||
|
||||
MemoryRegion* system_region_fine =
|
||||
new MemoryRegion(true, is_apu_node, this, *system_prop);
|
||||
|
||||
|
||||
@@ -136,9 +136,7 @@ MemoryRegion::MemoryRegion(bool fine_grain, bool full_profile, core::Agent* owne
|
||||
(full_profile) ? os::GetUserModeVirtualMemorySize() : kGpuVmSize;
|
||||
}
|
||||
|
||||
// Temporary workaround for CRAT issue.
|
||||
max_single_alloc_size_ = AlignDown(size_t(-1), kPageSize_);
|
||||
// max_single_alloc_size_ = AlignDown(static_cast<size_t>(GetPhysicalSize()), kPageSize_);
|
||||
max_single_alloc_size_ = AlignDown(static_cast<size_t>(GetPhysicalSize()), kPageSize_);
|
||||
|
||||
mem_flag_.ui32.CoarseGrain = (fine_grain) ? 0 : 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user