Commit 9f00382
committed
sessions: fix a problem with fortran comm handles
Sessions related changes changed the order of initialization
of pre-defined communicators used in the World Process Model.
This led to issues for MPI Fortran applications since the predefined
handles for MPI_COMM_WORLD, MPI_COMM_SELF, and MPI_COMM_NULL were
wrong, leading to a meltdown with any call to MPI using communicators
from the Fortran interfaces.
Further, when using sessions, there's no guarantee when the app might
finally cause MPI_Init, so the original algorithm for adding entries
to the comm struct f_to_c pointer array no longer works as-is.
This commit fixes these issues with Fortran interfaces and MPI
communicator handles.
Signed-off-by: Howard Pritchard <howardp@lanl.gov>1 parent b122090 commit 9f00382
1 file changed
+42
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
115 | 141 | | |
116 | 142 | | |
117 | 143 | | |
| |||
380 | 406 | | |
381 | 407 | | |
382 | 408 | | |
383 | | - | |
| 409 | + | |
384 | 410 | | |
385 | 411 | | |
386 | 412 | | |
| |||
393 | 419 | | |
394 | 420 | | |
395 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
396 | 436 | | |
397 | 437 | | |
398 | 438 | | |
| |||
0 commit comments