Skip to content

Commit

Permalink
fix(rdma): avoid enum/integral comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
  • Loading branch information
Nicholas Sielicki committed Sep 11, 2024
1 parent a33a9a4 commit cfe30ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nccl_ofi_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ static inline int handle_bounce_recv(nccl_net_ofi_rdma_device_t *device, int rai
* header type. So cast to a control message and lookup the
* type from there. */
nccl_ofi_rdma_msg_type_t msg_type =
eager ? NCCL_OFI_RDMA_MSG_EAGER : ((nccl_net_ofi_rdma_ctrl_msg_t *)&bounce_fl_item->bounce_msg)->type;
eager ? (nccl_ofi_rdma_msg_type_t)NCCL_OFI_RDMA_MSG_EAGER : ((nccl_net_ofi_rdma_ctrl_msg_t *)&bounce_fl_item->bounce_msg)->type;

switch (msg_type) {
case NCCL_OFI_RDMA_MSG_CONN:
Expand Down

0 comments on commit cfe30ca

Please sign in to comment.