File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -79,24 +79,10 @@ def smoke_test_cuda(package: str) -> None:
79
79
if (package == 'all' ):
80
80
import torchaudio
81
81
import torchvision
82
- # There is an issue with current windows runners calling conda from python
83
- # https://github.com/pytorch/test-infra/issues/1054
84
- if installation_str .find ("nightly" ) != - 1 or platform .system () == "Windows" :
85
- # just print out cuda version, as version check were already performed during import
86
- print (f"torchvision cuda: { torch .ops .torchvision ._cuda_version ()} " )
87
- print (f"torchaudio cuda: { torch .ops .torchaudio .cuda_version ()} " )
88
- else :
89
- # torchaudio runtime added the cuda verison check on 09/23/2022 via
90
- # https://github.com/pytorch/audio/pull/2707
91
- # so relying on anaconda output for pytorch-test and pytorch channel
92
- torchaudio_allstr = get_anaconda_output_for_package (torchaudio .__name__ )
93
- if (
94
- is_cuda_system
95
- and "cu" + str (gpu_arch_ver ).replace ("." , "" ) not in torchaudio_allstr
96
- ):
97
- raise RuntimeError (
98
- f"CUDA version issue. Loaded: { torchaudio_allstr } Expected: { gpu_arch_ver } "
99
- )
82
+ # just print out cuda version, as version check were already performed during import
83
+ print (f"torchvision cuda: { torch .ops .torchvision ._cuda_version ()} " )
84
+ print (f"torchaudio cuda: { torch .ops .torchaudio .cuda_version ()} " )
85
+
100
86
101
87
def smoke_test_conv2d () -> None :
102
88
import torch .nn as nn
You can’t perform that action at this time.
0 commit comments