Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda_core/tests/example_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run_example(samples_path, filename, env=None):
exec(script, env if env else {}) # nosec B102
except ImportError as e:
# for samples requiring any of optional dependencies
for m in ("cupy",):
for m in ("cupy", "torch"):
if f"No module named '{m}'" in str(e):
pytest.skip(f"{m} not installed, skipping related tests")
break
Expand Down
1 change: 1 addition & 0 deletions cuda_core/tests/requirements-cu11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest
# TODO: remove this hack once cupy has a cp313 build
cupy-cuda11x; python_version < "3.13"
nvidia-cuda-runtime-cu11 # headers consumed by CuPy
torch # For PyTorch example
1 change: 1 addition & 0 deletions cuda_core/tests/requirements-cu12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest
# TODO: remove this hack once cupy has a cp313 build
cupy-cuda12x; python_version < "3.13"
nvidia-cuda-runtime-cu12 # headers consumed by CuPy
torch # For PyTorch example
Loading