Skip to content

Commit

Permalink
update exception message of pytorchc cuda unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruinong Tian committed Jul 9, 2024
1 parent ff89c2d commit 7263d42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/test_artifacts/v0/scripts/cuda_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
import torch

if not torch.cuda.is_available():
raise Exception("Pytorch CUDA is not working in current environment. Make sure to execute this test case in GPU environment if you are not")
raise Exception("Pytorch is installed with CUDA support but not working in current environment. \
Make sure to execute this test case in GPU environment if you are not")
3 changes: 2 additions & 1 deletion test/test_artifacts/v1/scripts/cuda_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
import torch

if not torch.cuda.is_available():
raise Exception("Pytorch CUDA is not working in current environment. Make sure to execute this test case in GPU environment if you are not")
raise Exception("Pytorch is installed with CUDA support but not working in current environment. \
Make sure to execute this test case in GPU environment if you are not")
3 changes: 2 additions & 1 deletion test/test_artifacts/v2/scripts/cuda_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
import torch

if not torch.cuda.is_available():
raise Exception("Pytorch CUDA is not working in current environment. Make sure to execute this test case in GPU environment if you are not")
raise Exception("Pytorch is installed with CUDA support but not working in current environment. \
Make sure to execute this test case in GPU environment if you are not")

0 comments on commit 7263d42

Please sign in to comment.