From dc1bbccc39742e888197c08b48e27ce00e5cf397 Mon Sep 17 00:00:00 2001 From: Oak Zeng Date: Thu, 3 May 2018 12:03:22 -0400 Subject: [PATCH] Use svm aperture for device memory allocate for gfx902 and after APU Change-Id: Ib1d822adde30138a016e010bf581220465a087b9 Signed-off-by: Oak Zeng --- src/fmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmm.c b/src/fmm.c index 41e99f98cb..f3398ac245 100644 --- a/src/fmm.c +++ b/src/fmm.c @@ -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)