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
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Gerrit Code Review
γονέας
31861c838e
υποβολή
82b3fad320
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user