-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpi/coll: add TSP-based scatter/ring-based-allgather algo for Ibcast
- Loading branch information
Showing
7 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) by Argonne National Laboratory | ||
* See COPYRIGHT in top-level directory | ||
*/ | ||
|
||
#include "mpiimpl.h" | ||
#include "algo_common.h" | ||
|
||
/* Routine to schedule a scatter followed by ring based broadcast */ | ||
int MPIR_TSP_Ibcast_sched_intra_scatterv_ring_allgatherv(void *buffer, MPI_Aint count, | ||
MPI_Datatype datatype, int root, | ||
MPIR_Comm * comm, int scatterv_k, | ||
MPIR_TSP_sched_t sched) | ||
{ | ||
int mpi_errno = MPI_SUCCESS; | ||
|
||
MPIR_FUNC_ENTER; | ||
|
||
mpi_errno = MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(buffer, count, datatype, root, | ||
comm, | ||
MPIR_CVAR_IALLGATHERV_INTRA_ALGORITHM_tsp_ring, | ||
scatterv_k, 0, sched); | ||
MPIR_ERR_CHECK(mpi_errno); | ||
|
||
fn_exit: | ||
MPIR_FUNC_EXIT; | ||
return mpi_errno; | ||
fn_fail: | ||
goto fn_exit; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters