From 78c56650cef1d67077589c4305b4aca48709c787 Mon Sep 17 00:00:00 2001 From: Binyang Li Date: Mon, 8 Apr 2024 03:45:53 +0000 Subject: [PATCH] fix --- src/include/execution_kernel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/execution_kernel.hpp b/src/include/execution_kernel.hpp index a026905aa..ae0c40e26 100644 --- a/src/include/execution_kernel.hpp +++ b/src/include/execution_kernel.hpp @@ -223,7 +223,7 @@ MSCCLPP_DEVICE_INLINE void handleReduceSendPacket(T* dst, uint32_t dstOffsetByBy uint32_t* outputOffsets, int nDstChannels, size_t size, uint32_t flag) { size_t nPackets = size * 2 / sizeof(PacketType); - const uint32_t srcOffset = dstOffsetByBytes / sizeof(PacketValType); + const uint32_t srcOffset = srcOffsetByBytes / sizeof(PacketValType); const uint32_t dstOffset = dstOffsetByBytes / sizeof(PacketValType); PacketValType* srcPacketValue = (PacketValType*)src + srcOffset; PacketValType* dstPacketValue = (PacketValType*)dst + dstOffset;