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: Use the amount of processes to malloc the process list, not the amount of hosts
[simgrid.git]
/
src
/
smpi
/
smpi_base.c
diff --git
a/src/smpi/smpi_base.c
b/src/smpi/smpi_base.c
index
1fbeabe
..
1d619ba
100644
(file)
--- a/
src/smpi/smpi_base.c
+++ b/
src/smpi/smpi_base.c
@@
-58,6
+58,7
@@
void smpi_process_init(int *argc, char***argv)
/* get rank from command line, and remove it from argv */
pdata->index = atoi( (*argv)[1] );
/* get rank from command line, and remove it from argv */
pdata->index = atoi( (*argv)[1] );
+ DEBUG1("I'm rank %d",pdata->index);
if (*argc>2) {
memmove((*argv)[1],(*argv)[2], sizeof(char*)* (*argc-2));
(*argv)[ (*argc)-1] = NULL;
if (*argc>2) {
memmove((*argv)[1],(*argv)[2], sizeof(char*)* (*argc-2));
(*argv)[ (*argc)-1] = NULL;