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 dist
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
op_commutative.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/op_commutative.c
b/teshsuite/smpi/mpich3-test/coll/op_commutative.c
index
28043ef
..
5b004fa
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/op_commutative.c
+++ b/
teshsuite/smpi/mpich3-test/coll/op_commutative.c
@@
-29,11
+29,11
@@
static void noncomm_user_op(void *invec, void *inoutvec, int *len, MPI_Datatype
}
*/
}
*/
-static void user_op(void *invec, void *inoutvec, int *len, MPI_Datatype *datatype)
+static void user_op(void *invec, void *inoutvec, int *len, MPI_Datatype *
datatype)
{
int i;
{
int i;
- int *invec_int = (int *)invec;
- int *inoutvec_int = (int *)inoutvec;
+ int *invec_int = (int *)
invec;
+ int *inoutvec_int = (int *)
inoutvec;
if (*datatype != MPI_INT) {
++errs;
if (*datatype != MPI_INT) {
++errs;
@@
-47,19
+47,17
@@
static void user_op(void *invec, void *inoutvec, int *len, MPI_Datatype *datatyp
}
}
-int main(
int argc, char *argv[]
)
+int main(
int argc, char *argv[]
)
{
MPI_Op c_uop = MPI_OP_NULL;
MPI_Op nc_uop = MPI_OP_NULL;
{
MPI_Op c_uop = MPI_OP_NULL;
MPI_Op nc_uop = MPI_OP_NULL;
-#if MTEST_HAVE_MIN_MPI_VERSION(2,2)
int is_commutative = 0;
int is_commutative = 0;
-#endif
MTest_Init(&argc, &argv);
/* make sure that user-define ops work too */
MTest_Init(&argc, &argv);
/* make sure that user-define ops work too */
- MPI_Op_create(&user_op, 1
/*commute*/,
&c_uop);
- MPI_Op_create(&user_op, 0
/*!commute*/
, &nc_uop);
+ MPI_Op_create(&user_op, 1
/*commute */ ,
&c_uop);
+ MPI_Op_create(&user_op, 0
/*!commute */
, &nc_uop);
#if MTEST_HAVE_MIN_MPI_VERSION(2,2)
/* this function was added in MPI-2.2 */
#if MTEST_HAVE_MIN_MPI_VERSION(2,2)
/* this function was added in MPI-2.2 */
@@
-106,4
+104,3
@@
int main( int argc, char *argv[] )
MPI_Finalize();
return 0;
}
MPI_Finalize();
return 0;
}
-