A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix most of spelling mistakes in src/
[simgrid.git]
/
src
/
smpi
/
colls
/
allreduce
/
allreduce-mvapich-two-level.cpp
diff --git
a/src/smpi/colls/allreduce/allreduce-mvapich-two-level.cpp
b/src/smpi/colls/allreduce/allreduce-mvapich-two-level.cpp
index
3250168
..
23d0267
100644
(file)
--- a/
src/smpi/colls/allreduce/allreduce-mvapich-two-level.cpp
+++ b/
src/smpi/colls/allreduce/allreduce-mvapich-two-level.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-20
19
. The SimGrid Team.
+/* Copyright (c) 2013-20
20
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-37,8
+37,8
@@
#include "../colls_private.hpp"
#include "../colls_private.hpp"
-#define MPIR_Allreduce_pt2pt_rd_MV2
Coll_allreduce_rdb::allreduce
-#define MPIR_Allreduce_pt2pt_rs_MV2
Coll_allreduce_mvapich2_rs::allreduce
+#define MPIR_Allreduce_pt2pt_rd_MV2
allreduce__rdb
+#define MPIR_Allreduce_pt2pt_rs_MV2
allreduce__mvapich2_rs
extern int (*MV2_Allreducection)(const void *sendbuf,
void *recvbuf,
extern int (*MV2_Allreducection)(const void *sendbuf,
void *recvbuf,
@@
-62,7
+62,7
@@
static int MPIR_Allreduce_reduce_p2p_MV2(const void *sendbuf,
MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
{
MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
{
-
Colls::reduce(sendbuf,recvbuf,count,datatype,op,0,
comm);
+
colls::reduce(sendbuf, recvbuf, count, datatype, op, 0,
comm);
return MPI_SUCCESS;
}
return MPI_SUCCESS;
}
@@
-72,13
+72,13
@@
static int MPIR_Allreduce_reduce_shmem_MV2(const void *sendbuf,
MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
{
MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
{
-
Colls::reduce(sendbuf,recvbuf,count,datatype,op,0,
comm);
+
colls::reduce(sendbuf, recvbuf, count, datatype, op, 0,
comm);
return MPI_SUCCESS;
}
/* general two level allreduce helper function */
return MPI_SUCCESS;
}
/* general two level allreduce helper function */
-int
Coll_allreduce_mvapich2_two_level::allreduce
(const void *sendbuf,
+int
allreduce__mvapich2_two_level
(const void *sendbuf,
void *recvbuf,
int count,
MPI_Datatype datatype,
void *recvbuf,
int count,
MPI_Datatype datatype,
@@
-92,9
+92,9
@@
int Coll_allreduce_mvapich2_two_level::allreduce(const void *sendbuf,
//if not set (use of the algo directly, without mvapich2 selector)
if(MV2_Allreduce_intra_function==NULL)
//if not set (use of the algo directly, without mvapich2 selector)
if(MV2_Allreduce_intra_function==NULL)
- MV2_Allreduce_intra_function =
Coll_allreduce_mpich::allreduce
;
+ MV2_Allreduce_intra_function =
allreduce__mpich
;
if(MV2_Allreducection==NULL)
if(MV2_Allreducection==NULL)
- MV2_Allreducection =
Coll_allreduce_rdb::allreduce
;
+ MV2_Allreducection =
allreduce__rdb
;
if(comm->get_leaders_comm()==MPI_COMM_NULL){
comm->init_smp();
if(comm->get_leaders_comm()==MPI_COMM_NULL){
comm->init_smp();
@@
-164,9
+164,9
@@
int Coll_allreduce_mvapich2_two_level::allreduce(const void *sendbuf,
}
}
}
}
- /* Broadcasting the mesage from leader to the rest */
+ /* Broadcasting the mes
s
age from leader to the rest */
/* Note: shared memory broadcast could improve the performance */
/* Note: shared memory broadcast could improve the performance */
- mpi_errno =
C
olls::bcast(recvbuf, count, datatype, 0, shmem_comm);
+ mpi_errno =
c
olls::bcast(recvbuf, count, datatype, 0, shmem_comm);
return (mpi_errno);
return (mpi_errno);