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
Various doc improvements
[simgrid.git]
/
teshsuite
/
smpi
/
topo-cart-sub
/
topo-cart-sub.c
diff --git
a/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c
b/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c
index 5acc708316e66f6df6a9576c38994cce954cbb03..afb091793286ce7b32a7cc53b05373ea69874410 100644
(file)
--- a/
teshsuite/smpi/topo-cart-sub/topo-cart-sub.c
+++ b/
teshsuite/smpi/topo-cart-sub/topo-cart-sub.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009-20
19
. The SimGrid Team.
+/* Copyright (c) 2009-20
23
. 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
@@
-64,15
+64,15
@@
int main(int argc, char** argv)
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nbNodes);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nbNodes);
- printf("rank %d: Alive
\n", rank);
+ printf("rank %d: Alive\n", rank);
MPI_Barrier(MPI_COMM_WORLD);
MPI_Barrier(MPI_COMM_WORLD);
- /* Set dims[] values to descibe a grid of nbNodes and DIM dimensions*/
+ /* Set dims[] values to desc
r
ibe a grid of nbNodes and DIM dimensions*/
MPI_Cart_create(MPI_COMM_WORLD, DIM, dims, periods, reorder, &gridComm);
if (gridComm == MPI_COMM_NULL)
MPI_Cart_create(MPI_COMM_WORLD, DIM, dims, periods, reorder, &gridComm);
if (gridComm == MPI_COMM_NULL)
- printf("error grid NULLCOMM
\n");
+ printf("error grid NULLCOMM\n");
MPI_Comm_rank(gridComm, &myGridRank);
MPI_Comm_size(gridComm, &gridSize);
MPI_Comm_rank(gridComm, &myGridRank);
MPI_Comm_size(gridComm, &gridSize);
@@
-105,12
+105,12
@@
int main(int argc, char** argv)
MPI_Bcast(A, N * N, MPI_INT, root, lineComm);
/* Print A */
MPI_Bcast(A, N * N, MPI_INT, root, lineComm);
/* Print A */
- printf("process:(%d,%d)
\n", myLineRank, myColRank);
+ printf("process:(%d,%d)\n", myLineRank, myColRank);
printf("-------------------\n");
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
printf("-------------------\n");
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
- printf("
%d
", *(A + (i * N) + j));
+ printf("
%d
", *(A + (i * N) + j));
}
printf("\n");
}
}
printf("\n");
}