From 780324296ca2dc406d4299f99b9b2eed67db42e1 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 29 Jul 2024 11:10:38 -0400 Subject: [PATCH] Remove unused but set variable from prims_ll.h (#1256) Allows `-Wunused-but-set-variable` to pass [ROCm/rccl commit: 7ad432ee2344a416a631c3ff3b72ebf0dadfd7b6] --- projects/rccl/src/device/prims_ll.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/rccl/src/device/prims_ll.h b/projects/rccl/src/device/prims_ll.h index fd6dc01053..5738003b5c 100644 --- a/projects/rccl/src/device/prims_ll.h +++ b/projects/rccl/src/device/prims_ll.h @@ -529,7 +529,6 @@ private: dsts[i] += tid*EltPerLine; } } - int offset = tid; int eltPerTrip = nthreads*EltPerLine; while (nelem > 0) { int eltInLine = EltPerLine < nelem ? EltPerLine : nelem; @@ -569,7 +568,6 @@ private: } } nelem -= eltPerTrip; - offset += nthreads; } #if defined(ENABLE_NPKIT) && defined(ENABLE_NPKIT_EVENT_MSCCL_GENERIC_OP_EXIT) @@ -790,4 +788,4 @@ private: __device__ void localCopy(T* srcs, T* dsts, int eltN) { return mscclGenericOp<0,1,0,0>(&srcs, 1, &dsts, 1, eltN); } -}; \ No newline at end of file +};