Skip to content

Conversation

@dvrogozh
Copy link
Contributor

Fixes: #2349

RPATH is handled differently from RUNPATH in a way that LD_LIOBRARY_PATH is searched before RPATH and after RUNPATH. With the oneAPI we step into backward incompatibility of Unified Runtime component (libur_loader.so) which does not have stable API and ABI. This results in the loading issue when user sources later oneAPI environment (which is supposed to be backward compatible). However, due to usage of RPATH the libsycl.so is picked from the wheel packages, but libur_loader.so is picked from the sourced oneAPI distribution.

ImportError: /opt/intel/oneapi/2025.2/lib/libur_loader.so.0: version `LIBUR_LOADER_0.11' not found (required by /home/dvrogozh/pt2.8/lib/python3.12/site-packages/torch/lib/../../../../libsycl.so.8)

Fixes: #2349

`RPATH` is handled differently from `RUNPATH` in a way that
`LD_LIOBRARY_PATH` is searched before `RPATH` and after `RUNPATH`.
With the oneAPI we step into backward incompatibility of Unified
Runtime component (`libur_loader.so`) which does not have stable API
and ABI. This results in the loading issue when user sources later
oneAPI environment (which is supposed to be backward compatible).
However, due to usage of `RPATH` the `libsycl.so` is picked from
the wheel packages, but `libur_loader.so` is picked from the sourced
oneAPI distribution.

```
ImportError: /opt/intel/oneapi/2025.2/lib/libur_loader.so.0: version `LIBUR_LOADER_0.11' not found (required by /home/dvrogozh/pt2.8/lib/python3.12/site-packages/torch/lib/../../../../libsycl.so.8)
```

Signed-off-by: Dmitry Rogozhkin <[email protected]>
@dvrogozh dvrogozh requested a review from chuanqi129 November 22, 2025 00:12
@dvrogozh
Copy link
Contributor Author

@chuanqi129 : do you recall why you've added --force-rpath to the patchelf cmdline? Also, does our CI builds wheels for this PR so I can download them? I want to verify how they work locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[oneAPI][backward compatibility] libur_loader.so.0: version `LIBUR_LOADER_0.11' not found

2 participants