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
Merge pull request #272 from mpoquet/SMPI_convert
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
init
/
initstat.c
diff --git
a/teshsuite/smpi/mpich3-test/init/initstat.c
b/teshsuite/smpi/mpich3-test/init/initstat.c
index
f3d42e1
..
198ba22
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/init/initstat.c
+++ b/
teshsuite/smpi/mpich3-test/init/initstat.c
@@
-8,29
+8,28
@@
#include <stdio.h>
#include "mpitest.h"
#include <stdio.h>
#include "mpitest.h"
-int main(
int argc, char *argv[]
)
+int main(
int argc, char *argv[]
)
{
int errs = 0;
int provided, flag, claimed;
{
int errs = 0;
int provided, flag, claimed;
- /* MTest_Init(
&argc, &argv
); */
+ /* MTest_Init(
&argc, &argv
); */
- MPI_Init_thread(
&argc, &argv, MPI_THREAD_MULTIPLE, &provided
);
-
- MPI_Is_thread_main(
&flag
);
+ MPI_Init_thread(
&argc, &argv, MPI_THREAD_MULTIPLE, &provided
);
+
+ MPI_Is_thread_main(
&flag
);
if (!flag) {
if (!flag) {
- errs++;
-
printf( "This thread called init_thread but Is_thread_main gave false\n"
);
+
errs++;
+
printf("This thread called init_thread but Is_thread_main gave false\n"
);
}
}
- MPI_Query_thread(
&claimed
);
+ MPI_Query_thread(
&claimed
);
if (claimed != provided) {
if (claimed != provided) {
- errs++;
- printf( "Query thread gave thread level %d but Init_thread gave %d\n",
- claimed, provided );
+ errs++;
+ printf("Query thread gave thread level %d but Init_thread gave %d\n", claimed, provided);
}
}
- MTest_Finalize(
errs
);
+ MTest_Finalize(
errs
);
MPI_Finalize();
return 0;
MPI_Finalize();
return 0;
-
+
}
}