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
remove warning with mc
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
allgatherv4.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/allgatherv4.c
b/teshsuite/smpi/mpich3-test/coll/allgatherv4.c
index
29e4d47
..
19f91c9
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/allgatherv4.c
+++ b/
teshsuite/smpi/mpich3-test/coll/allgatherv4.c
@@
-7,6
+7,7
@@
#include "mpi.h"
#include "mpitest.h"
#include "mpi.h"
#include "mpitest.h"
+#include "smpi_cocci.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SYS_TIME_H
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SYS_TIME_H
@@
-25,8
+26,8
@@
#define MAX_BUF (32 * 1024 * 1024)
#define LOOPS 10
#define MAX_BUF (32 * 1024 * 1024)
#define LOOPS 10
-
__thread
char * sbuf, * rbuf;
-
__thread
int * recvcounts, * displs;
+char * sbuf, * rbuf;
+int * recvcounts, * displs;
int errs = 0;
/* #define dprintf printf */
int errs = 0;
/* #define dprintf printf */
@@
-109,8
+110,8
@@
int main(int argc, char ** argv)
comm_tests(comm);
MPI_Comm_free(&comm);
comm_tests(comm);
MPI_Comm_free(&comm);
-
//
free(sbuf);
-
//
free(rbuf);
+ free(sbuf);
+ free(rbuf);
free(recvcounts);
free(displs);
free(recvcounts);
free(displs);
@@
-124,7
+125,8
@@
fn_exit:
void comm_tests(MPI_Comm comm)
{
int comm_size, comm_rank;
void comm_tests(MPI_Comm comm)
{
int comm_size, comm_rank;
- double rtime, max_time;
+ double rtime = rtime; /* stop warning about unused variable */
+ double max_time;
long long msg_size;
MPI_Comm_size(comm, &comm_size);
long long msg_size;
MPI_Comm_size(comm, &comm_size);