We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e1ed32 + 2e02475 commit 3f12346Copy full SHA for 3f12346
ompi/mca/coll/han/coll_han_alltoall.c
@@ -1,6 +1,8 @@
1
/*
2
* Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
*
4
+ * Copyright (c) 2025 Barcelona Supercomputing Center (BSC-CNS). All Rights Reserved.
5
+ *
6
* Additional copyrights may follow
7
8
* $HEADER$
@@ -369,6 +371,13 @@ int mca_coll_han_alltoall_using_smsc(
369
371
ompi_request_wait_all(inter_recv_count, inter_recv_reqs, MPI_STATUS_IGNORE);
370
372
373
cleanup:
374
+
375
+ /* we may still have neighbors reading directly from our buffer, so we must ensure it is not modified */
376
+ if (!ii_push_data)
377
+ {
378
+ low_comm->c_coll->coll_barrier(low_comm, low_comm->c_coll->coll_barrier_module);
379
+ }
380
381
for (int jlow=0; jlow<low_size; jlow++) {
382
if (jlow != low_rank ) {
383
mca_smsc->unmap_peer_region(sbuf_map_ctx[jlow]);
0 commit comments