Skip to content

Commit cb11e7e

Browse files
committed
testing
1 parent 808fc19 commit cb11e7e

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

test/smoke_test/smoke_test.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,10 @@ def smoke_test_cuda(package: str) -> None:
7979
if(package == 'all'):
8080
import torchaudio
8181
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+
10086

10187
def smoke_test_conv2d() -> None:
10288
import torch.nn as nn

0 commit comments

Comments
 (0)