From e2dcf99456ae3402e67b9ed4f995bc41f8d1eefd 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: 6de67d5d7c270d9867bafed3897f0d771fd08cd9 Signed-off-by: Allen Hubbe --- src/gda/context_gda_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gda/context_gda_device.cpp b/src/gda/context_gda_device.cpp index 5cba9c9588..e0488b2c95 100644 --- a/src/gda/context_gda_device.cpp +++ b/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); } }