Commit e0d4da7
Add torch/lib to bundled librocjpeg RPATH for PyTorch ROCm bundled layout
PyTorch ROCm wheels may bundle the ROCm runtime (libamdhip64, libhsa-runtime64
etc.) inside torch/lib/ rather than depending on a separate _rocm_sdk_core pip
wheel. Add \$ORIGIN/../../torch/lib to the RPATH patched onto the bundled
librocjpeg-HASH.so so it can find those deps in either layout:
- torch/lib/ (torch bundles ROCm runtime, like it does for CUDA)
- _rocm_sdk_core/lib/ (TheRock separate pip-wheel layout)
- /opt/rocm/lib (ROCm <= 7.2 system install)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ddf2313 commit e0d4da7
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
260 | | - | |
| 264 | + | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
0 commit comments