Commit 521848e
authored
Link NVSHMEM to sublibraries as interface (#22)
Without this change `all_to_all_internode_lib`,
`all_to_all_intranode_lib` and `core_lib` link NVSHMEM in such way that
external variables of NVSHMEM have multiple instances, e.g.:
```
&nvshmemi_device_state = 0x7d5121b1fb20
nvshmemi_device_state.nvshmemi_is_nvshmem_initialized = 1
&nvshmemi_device_state = 0x7d511a7c22e0
nvshmemi_device_state.nvshmemi_is_nvshmem_initialized = 0
```
which leads to unpredictable errors like:
```
NVSHMEM API called before NVSHMEM initialization has completed
```1 parent 081394b commit 521848e
File tree
3 files changed
+12
-3
lines changed- csrc
- all_to_all
- core
3 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
0 commit comments