Skip to content

Commit

Permalink
Relax the need for only CPU versions of PyTorch (llvm#1505)
Browse files Browse the repository at this point in the history
* Relax the need for only CPU versions of PyTorch

This allows installing corresponding PyTorch CUDA / ROCM versions and using torch-mlir.

* Remove obsolete comments
  • Loading branch information
powderluv authored Oct 24, 2022
1 parent 470a2f6 commit 3f88380
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ def build_extension(self, ext):
],
install_requires=[
"numpy",
# To avoid issues with drift for each nightly build, we pin to the
# exact version we built against.
# TODO: This includes the +cpu specifier which is overly
# restrictive and a bit unfortunate.
f"torch=={torch.__version__}",
f"torch=={torch.__version__}".split("+", 1)[0],
],
zip_safe=False,
)

0 comments on commit 3f88380

Please sign in to comment.