Skip to content

Commit b59f6da

Browse files
authored
rocr: Fix ext-fine-grain flag on host memory (#411)
Fix for extended-fine-grain flag not set in thunk when allocating host memory.
1 parent d8c1c5b commit b59f6da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libhsakmt/src/fmm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,9 @@ static void *fmm_allocate_host_gpu(uint32_t gpu_id, uint32_t node_id, void *addr
18791879
if (mflags.ui32.Uncached || svm.disable_cache)
18801880
ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED;
18811881

1882+
if (mflags.ui32.ExtendedCoherent)
1883+
ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_EXT_COHERENT;
1884+
18821885
ioc_flags |= fmm_translate_hsa_to_ioc_flags(mflags);
18831886

18841887
if (mflags.ui32.AQLQueueMemory)

0 commit comments

Comments
 (0)