From cf248d940296c55e494a4b7735acf9b92a5c035f Mon Sep 17 00:00:00 2001 From: Bertan Dogancay <111835151+BertanDogancay@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:59:40 -0700 Subject: [PATCH] Addressing the compiler warning (#988) --- src/collectives/device/prims_simple.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/collectives/device/prims_simple.h b/src/collectives/device/prims_simple.h index 66ea682dc1..53083752ff 100644 --- a/src/collectives/device/prims_simple.h +++ b/src/collectives/device/prims_simple.h @@ -175,8 +175,8 @@ private: __device__ __forceinline__ void genericOp( intptr_t srcIx, intptr_t dstIx, int nelem, bool postOp ) { - constexpr int DirectRecv = 1 && Direct && DirectRecv1; - constexpr int DirectSend = 1 && Direct && DirectSend1; + constexpr int DirectRecv = /*1 &&*/ Direct && DirectRecv1; + constexpr int DirectSend = /*1 &&*/ Direct && DirectSend1; constexpr int Src = SrcBuf != -1; constexpr int Dst = DstBuf != -1; @@ -409,8 +409,8 @@ private: template __device__ __forceinline__ void ScatterGatherOp(intptr_t inpIx, intptr_t outIx, int totalElem, int peerElem, int peerOffset, int skip, int shift, bool postOp) { - constexpr int DirectRecv = 1 && Direct && DirectRecv1; - constexpr int DirectSend = 1 && Direct && DirectSend1; + constexpr int DirectRecv = /*1 &&*/ Direct && DirectRecv1; + constexpr int DirectSend = /*1 &&*/ Direct && DirectSend1; int offset = 0; // slice offset int sliceSize = stepSize*StepPerSlice; int dataSize = max(DIVUP(peerElem, 16*SlicePerChunk)*16, sliceSize/32); // per-peer slice size