Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 0fa5d78

Browse files
author
Nicolas Cornu
authored
Refactoring setup for multisend method of spike exchange (#273)
* cleanup of multisend_setup * use less raw pointers, more vectors * use scoped variables, range based for loops * use ofstream than C file I/O
1 parent 76026e0 commit 0fa5d78

File tree

4 files changed

+248
-319
lines changed

4 files changed

+248
-319
lines changed

coreneuron/mpi/mpispike.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ extern void nrnmpi_int_alltoall(int* s, int* r, int n) {
277277
MPI_Alltoall(s, n, MPI_INT, r, n, MPI_INT, nrnmpi_comm);
278278
}
279279

280-
extern void nrnmpi_int_alltoallv(int* s, int* scnt, int* sdispl, int* r, int* rcnt, int* rdispl) {
280+
extern void nrnmpi_int_alltoallv(const int* s, const int* scnt, const int* sdispl, int* r, int* rcnt, int* rdispl) {
281281
MPI_Alltoallv(s, scnt, sdispl, MPI_INT, r, rcnt, rdispl, MPI_INT, nrnmpi_comm);
282282
}
283283

coreneuron/mpi/nrnmpidec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extern void nrnmpi_int_gatherv(int* s, int scnt, int* r, int* rcnt, int* rdispl,
9494
extern void nrnmpi_int_allgather(int* s, int* r, int n);
9595
extern void nrnmpi_int_allgatherv(int* s, int* r, int* n, int* dspl);
9696
extern void nrnmpi_int_alltoall(int* s, int* r, int n);
97-
extern void nrnmpi_int_alltoallv(int* s, int* scnt, int* sdispl, int* r, int* rcnt, int* rdispl);
97+
extern void nrnmpi_int_alltoallv(const int* s, const int* scnt, const int* sdispl, int* r, int* rcnt, int* rdispl);
9898
extern void nrnmpi_dbl_allgatherv(double* s, double* r, int* n, int* dspl);
9999
extern void nrnmpi_dbl_alltoallv(double* s,
100100
int* scnt,

0 commit comments

Comments
 (0)