2
0

Use svm aperture for device memory allocate for gfx902 and after APU

Change-Id: Ib1d822adde30138a016e010bf581220465a087b9
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Este cometimento está contido em:
Oak Zeng
2018-05-03 12:03:22 -04:00
ascendente aa28484583
cometimento dc1bbccc39
+1 -1
Ver ficheiro
@@ -1021,7 +1021,7 @@ void *fmm_allocate_device(uint32_t gpu_id, uint64_t MemorySizeInBytes, HsaMemFla
ioc_flags |= fmm_translate_hsa_to_ioc_flags(flags);
if (topology_is_dgpu(get_device_id_by_gpu_id(gpu_id))) {
if (topology_is_svm_needed(get_device_id_by_gpu_id(gpu_id))) {
aperture = &svm.dgpu_aperture;
offset = 0;
if (flags.ui32.AQLQueueMemory)