Skip to content

Commit

Permalink
Don't need torch.cuda.is_available() to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
tridao committed Jun 18, 2024
1 parent daeadc4 commit 20928c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion causal_conv1d/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.3.0"
__version__ = "1.3.0.post1"

from causal_conv1d.causal_conv1d_interface import causal_conv1d_fn, causal_conv1d_update
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ def append_nvcc_threads(nvcc_extra_args):
ext_modules = []


if not torch.cuda.is_available():
raise RuntimeError(f"CUDA/HIP not available within Pytorch. {PACKAGE_NAME} is intended for a CUDA/HIP-enabled Pytorch installation.")


HIP_BUILD = bool(torch.version.hip)

if not SKIP_CUDA_BUILD:
Expand Down

0 comments on commit 20928c2

Please sign in to comment.