Skip to content

Commit

Permalink
Merge pull request #3488 from boegel/20241015214234_new_pr_pytorch
Browse files Browse the repository at this point in the history
also add path to `libtorch.so` & co to `$LIBRARY_PATH` in generated module file for PyTorch
  • Loading branch information
laraPPr authored Oct 16, 2024
2 parents 3a6cb1a + 0fd1802 commit 5718bdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions easybuild/easyblocks/p/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ def make_module_req_guess(self):
guesses['CMAKE_PREFIX_PATH'] = [os.path.join(self.pylibdir, 'torch')]
# Required to dynamically load libcaffe2_nvrtc.so
guesses['LD_LIBRARY_PATH'] = [os.path.join(self.pylibdir, 'torch', 'lib')]
# important when RPATH linking is enabled
guesses['LIBRARY_PATH'] = [os.path.join(self.pylibdir, 'torch', 'lib')]
return guesses


Expand Down

0 comments on commit 5718bdf

Please sign in to comment.