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
MPI_INFO_ENV ... Still does nothing for now
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
info
/
infoenv.c
diff --git
a/teshsuite/smpi/mpich3-test/info/infoenv.c
b/teshsuite/smpi/mpich3-test/info/infoenv.c
index
5b0fa1c
..
08da1d1
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/info/infoenv.c
+++ b/
teshsuite/smpi/mpich3-test/info/infoenv.c
@@
-12,7
+12,7
@@
static int verbose = 0;
int main(int argc, char *argv[])
{
char value[MPI_MAX_INFO_VAL];
int main(int argc, char *argv[])
{
char value[MPI_MAX_INFO_VAL];
- char *keys[] = { "command", "argv", "maxprocs", "soft", "host", "arch", "wdir", "file",
+ c
onst c
har *keys[] = { "command", "argv", "maxprocs", "soft", "host", "arch", "wdir", "file",
"thread_level", 0
};
int flag, i;
"thread_level", 0
};
int flag, i;
@@
-20,7
+20,7
@@
int main(int argc, char *argv[])
MPI_Init(NULL, NULL);
for (i = 0; keys[i]; i++) {
MPI_Init(NULL, NULL);
for (i = 0; keys[i]; i++) {
- MPI_Info_get(MPI_INFO_ENV, keys[i], MPI_MAX_INFO_VAL, value, &flag);
+ MPI_Info_get(MPI_INFO_ENV,
(char*)
keys[i], MPI_MAX_INFO_VAL, value, &flag);
if (flag && verbose)
printf("command: %s\n", value);
}
if (flag && verbose)
printf("command: %s\n", value);
}