Fix 4GB and larger system memory allocations

Intermediate size was stored in a 32-bit variable. This resulted in
4GB allocations to fail in KFD due to 0 size. Larger allocations
would allocate the wrong amount of memory.

Change-Id: If19dedf64952f1d2edd813793241e12c0362d220


[ROCm/ROCR-Runtime commit: 82b3fad320]
This commit is contained in:
Felix Kuehling
2016-04-08 19:58:32 -04:00
gecommit door Gerrit Code Review
bovenliggende e4f1d95ef2
commit f0af6eceed
+1 -1
Bestand weergeven
@@ -811,7 +811,7 @@ static void* fmm_allocate_host_gpu(uint64_t MemorySizeInBytes,
manageble_aperture_t *aperture;
uint64_t mmap_offset;
uint32_t ioc_flags;
uint32_t size;
uint64_t size;
int32_t i;
uint32_t gpu_id;