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
Use a global variable to cache the rank of currently running process.
[simgrid.git]
/
include
/
smpi
/
smpif.h.in
diff --git
a/include/smpi/smpif.h.in
b/include/smpi/smpif.h.in
index 3e8ddf7b73a6c34034c8720c9fdb63999f63adc3..915d13e80e63245ae6b957d57bf3c90589541e34 100644
(file)
--- a/
include/smpi/smpif.h.in
+++ b/
include/smpi/smpif.h.in
@@
-17,6
+17,8
@@
#include <smpi/smpi.h>
#include <f2c.h>
+XBT_PUBLIC(int) smpi_current_rank;
+
XBT_PUBLIC(int) smpi_process_argc(void);
XBT_PUBLIC(int) smpi_process_getarg(integer* index, char* dst, ftnlen len);
XBT_PUBLIC(int) smpi_global_size(void);