Enforce uncached memory on AllocatePCIeRW request

Change-Id: Ib5a624ab979220d50205448ef37b4550672fb97d


[ROCm/ROCR-Runtime commit: ed0a1be2c3]
Этот коммит содержится в:
Shweta Khatri authored and David Yat Sin committed 2023-01-11 16:52:15 -05:00
1 родитель 829d6536f8
Коммит 36da397f96
1 file changed
+1
+1
Просмотреть файл
@@ -190,6 +190,7 @@ hsa_status_t MemoryRegion::AllocateImpl(size_t& size, AllocateFlags alloc_flags,
// Allocate pseudo fine grain memory
kmt_alloc_flags.ui32.CoarseGrain = (alloc_flags & AllocatePCIeRW ? 0 : kmt_alloc_flags.ui32.CoarseGrain);
kmt_alloc_flags.ui32.Uncached = (alloc_flags & AllocatePCIeRW ? 1 : kmt_alloc_flags.ui32.Uncached);
// Only allow using the suballocator for ordinary VRAM.
if (IsLocalMemory()) {