Commit ac36647
fix ImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory (#1616)
Summary:
ImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
to fix, we embeds RPATH entries into the compiled Rust shared libraries, telling the dynamic linker where to search for libpython3.10.so.1.0 at runtime (shown by D84991141 by shayne-fletcher)
in order to built torchsys e2e (and handle both cuda 12.6 and 12.9), improve cuda path discovery
also fix bug in device_mesh
Pull Request resolved: #1616
Test Plan:
pip install torch
pip install "torchmonarch[examples]==0.1.0rc7"
(monarch) [[email protected] ~/monarch (test-import)]$ python docs/source/examples/distributed_tensors.py
Imported from GitHub, without a `Test Plan:` line.
Reviewed By: shayne-fletcher
Differential Revision: D85020138
Pulled By: colin2328
fbshipit-source-id: c701c762ea071cba513caf8d24f8f76b899ddbe81 parent feaa364 commit ac36647
File tree
5 files changed
+26
-18
lines changed- build_utils/src
- python/monarch/_src/actor/v1
- torch-sys-cuda
- torch-sys
5 files changed
+26
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments