-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix LAMMPS wheel with CUDA wheels (#2887)
It's annoying that in the CUDA Python wheels, the library filename is `libcudart.so.11.0`, instead of `libcudart.so` or `libcudart.so.11` or `libcudart.11.0.xxx`. There are no symlinks in these CUDA Python wheels on PyPI. Thus, in this case, when DeePMD-kit tries to load `libcudart.so`, no file can be found. Python interface doesn't have this issue, as it tries to use `glob` to find detailed library names. For the LAMMPS executable called from Python, `LD_LIBRARY_PATH` doesn't work with CUDA Python libraries (but works with an installation that contains symlinks). Thus, in this PR, `LD_PRELOAD` is set instead to preload CUDA symbols. This fixes the docker images for the development branch. Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters