From 5e82060ba0475a2cf5c2d62ab0151163373b4642 Mon Sep 17 00:00:00 2001 From: Allen Hubbe Date: Thu, 6 Nov 2025 17:21:20 -0500 Subject: [PATCH] gda: fix getmem_nbi_wg source and dest (#311) A copy paste mistake in a previous commit caused source and dest to be reversed. Correct the source and dest params. Fixes: e8a737100789cf6817cba549ff2b205172251e53 Signed-off-by: Allen Hubbe [ROCm/rocshmem commit: e2dcf99456ae3402e67b9ed4f995bc41f8d1eefd] --- projects/rocshmem/src/gda/context_gda_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocshmem/src/gda/context_gda_device.cpp b/projects/rocshmem/src/gda/context_gda_device.cpp index 5cba9c9588..e0488b2c95 100644 --- a/projects/rocshmem/src/gda/context_gda_device.cpp +++ b/projects/rocshmem/src/gda/context_gda_device.cpp @@ -214,7 +214,7 @@ __device__ void GDAContext::getmem_nbi_wg(void *dest, const void *source, } uint64_t L_offset = const_cast(src_typed) - base_heap[my_pe]; if (is_wave_zero_in_block()) { - qps[pe].get_nbi(base_heap[pe] + L_offset, source, nelems, pe, QueuePair::WAVE); + qps[pe].get_nbi(dest, base_heap[pe] + L_offset, nelems, pe, QueuePair::WAVE); } }