Skip to content

Commit

Permalink
ch4/ofi: fix NIC selection under striping
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sagarth authored and raffenet committed Apr 12, 2024
1 parent ca68844 commit 8509881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpid/ch4/netmod/ofi/ofi_huge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 8509881

Please sign in to comment.