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
[smpi] replay from `smpirun -replay <tracefile>`
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-pingpong
/
pt2pt-pingpong.c
diff --git
a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
index
62afcde
..
5ee35dc
100644
(file)
--- a/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
+++ b/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
@@
-1,6
+1,6
@@
-/* A simple example ping
pong p
ogram to test MPI_Send and MPI_Recv */
+/* A simple example ping
-pong pr
ogram to test MPI_Send and MPI_Recv */
-/* Copyright (c) 2009-201
0, 2012-2014
. The SimGrid Team.
+/* Copyright (c) 2009-201
8
. 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
@@
-11,14
+11,14
@@
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- const int tag1 = 42, tag2 = 43; /* Message tag */
- int rank, size;
+ const int tag1 = 42;
+ const int tag2 = 43; /* Message tag */
+ int size;
+ int rank;
int msg = 99;
int msg = 99;
- int err;
- int pivot;
MPI_Status status;
MPI_Status status;
- err = MPI_Init(&argc, &argv); /* Initialize MPI */
+
int
err = MPI_Init(&argc, &argv); /* Initialize MPI */
if (err != MPI_SUCCESS) {
printf("MPI initialization failed!\n");
exit(1);
if (err != MPI_SUCCESS) {
printf("MPI initialization failed!\n");
exit(1);
@@
-34,8
+34,8
@@
int main(int argc, char *argv[])
printf("\n *** Ping-pong test (MPI_Send/MPI_Recv) ***\n\n");
}
printf("\n *** Ping-pong test (MPI_Send/MPI_Recv) ***\n\n");
}
- /* start pingpong tests between several pairs */
- for (pivot = 0; pivot < size - 1; pivot++) {
+ /* start ping
-
pong tests between several pairs */
+ for (
int
pivot = 0; pivot < size - 1; pivot++) {
if (pivot == rank) {
printf("\n== pivot=%d : pingpong [%d] <--> [%d]\n", pivot, pivot, pivot + 1);
if (pivot == rank) {
printf("\n== pivot=%d : pingpong [%d] <--> [%d]\n", pivot, pivot, pivot + 1);