From 85098816cd090ca0c7d74ca968e568515636895b Mon Sep 17 00:00:00 2001 From: Sagar Thapaliya Date: Fri, 5 Apr 2024 10:44:10 -0700 Subject: [PATCH] ch4/ofi: fix NIC selection under striping When striping in enabled, different available NICs should be used for huge message chunks. NIC IDs were correctly calculated for the different chunks but ctx_id was never re-calculated based on the updated NIC IDs. --- src/mpid/ch4/netmod/ofi/ofi_huge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpid/ch4/netmod/ofi/ofi_huge.c b/src/mpid/ch4/netmod/ofi/ofi_huge.c index 60f7efe7e93..d38d5c2b543 100644 --- a/src/mpid/ch4/netmod/ofi/ofi_huge.c +++ b/src/mpid/ch4/netmod/ofi/ofi_huge.c @@ -98,8 +98,8 @@ static int get_huge_issue_read(MPIR_Request * rreq) int issued_chunks = 0; int nic = 0; - int ctx_idx = MPIDI_OFI_get_ctx_index(vci_local, nic); while (bytesLeft > 0) { + int ctx_idx = MPIDI_OFI_get_ctx_index(vci_local, nic); fi_addr_t addr = MPIDI_OFI_comm_to_phys(comm, info->origin_rank, nic, vci_remote); uint64_t remote_key = info->rma_keys[nic];