Skip to content

Commit f680b4e

Browse files
committed
move
1 parent 512e953 commit f680b4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/launch_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ def prepare_environment():
539539
print(f"Version: {tag}")
540540
print(f"Commit hash: {commit}")
541541

542+
if args.skip_torch_cuda_test:
543+
print("WARNING: you should not skip torch test unless you want CPU to work.")
544+
542545
if backend in ("rocm", "zluda",):
543546
device = None
544547
try:
@@ -609,8 +612,6 @@ def prepare_environment():
609612
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
610613
startup_timer.record("install torch")
611614

612-
if args.skip_torch_cuda_test:
613-
print("WARNING: you should not skip torch test unless you want CPU to work.")
614615
if args.use_ipex or args.use_directml or args.use_cpu_torch:
615616
args.skip_torch_cuda_test = True
616617

0 commit comments

Comments
 (0)