Skip to content

Commit

Permalink
Revert "no defaults for WITH_CUDA envvar. default is autodetection"
Browse files Browse the repository at this point in the history
This reverts commit f751306.
  • Loading branch information
stefdoerr committed Feb 14, 2025
1 parent f751306 commit 6de4a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


# If WITH_CUDA is defined
if os.environ.get("WITH_CUDA") == "1":
if os.environ.get("WITH_CUDA", "0") == "1":
use_cuda = True
elif os.environ.get("WITH_CUDA") == "0":
elif os.environ.get("WITH_CUDA", "0") == "0":
use_cuda = False
else:
use_cuda = torch.cuda._is_compiled()
Expand Down

0 comments on commit 6de4a2e

Please sign in to comment.