Skip to content

Commit

Permalink
enable torch.backends tests also for win+CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Feb 9, 2025
1 parent 2af8e58 commit 1acfd43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,10 @@ outputs:
- python -c "import torch; import numpy"
- python -c "import numpy; import torch"
# distributed support is enabled by default on linux; for mac, we enable it manually in build.sh
- python -c "import torch; assert torch.distributed.is_available()" # [linux or osx]
- python -c "import torch; assert torch.backends.cuda.is_built()" # [linux64 and (cuda_compiler_version != "None")]
- python -c "import torch; assert torch.backends.cudnn.is_available()" # [linux64 and (cuda_compiler_version != "None")]
- python -c "import torch; assert torch.backends.cudnn.enabled" # [linux64 and (cuda_compiler_version != "None")]
- python -c "import torch; assert torch.distributed.is_available()" # [linux or osx]
- python -c "import torch; assert torch.backends.cuda.is_built()" # [cuda_compiler_version != "None"]
- python -c "import torch; assert torch.backends.cudnn.is_available()" # [cuda_compiler_version != "None"]
- python -c "import torch; assert torch.backends.cudnn.enabled" # [cuda_compiler_version != "None"]
- python -c "import torch; assert torch.version.cuda is not None" # [cuda_compiler_version != "None"]
# At conda-forge, we target versions of OSX that are too old for MPS support
# But if users install a newer version of OSX, they will have MPS support
Expand Down

0 comments on commit 1acfd43

Please sign in to comment.