Skip to content

Commit

Permalink
Add Sam's pip torch path
Browse files Browse the repository at this point in the history
  • Loading branch information
EricGustin committed Jan 28, 2022
1 parent 63306b7 commit 52f13b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion smartsim/_core/_install/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ def _move_torch_libs(self):

# retrieve torch shared libraries and copy to the
# smartsim/_core/lib/backends/redisai_torch/lib dir
pip_torch_path = Path(site.getsitepackages()[0]) / "torch"
# self.torch_dir should be /path/to/torch/share/cmake/Torch
# so we take the great grandparent here
pip_torch_path = Path(self.torch_dir).parent.parent.parent
pip_torch_lib_path = pip_torch_path / "lib"

self.copy_dir(pip_torch_lib_path, ss_rai_torch_lib_path, set_exe=True)
Expand Down

0 comments on commit 52f13b6

Please sign in to comment.