Skip to content

Commit 1378e6a

Browse files
committed
test suite changes
1 parent a4b9e82 commit 1378e6a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cuda_core/tests/example_tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run_example(samples_path, filename, env=None):
3737
exec(script, env if env else {}) # nosec B102
3838
except ImportError as e:
3939
# for samples requiring any of optional dependencies
40-
for m in ("cupy",):
40+
for m in ("cupy", "torch"):
4141
if f"No module named '{m}'" in str(e):
4242
pytest.skip(f"{m} not installed, skipping related tests")
4343
break

cuda_core/tests/requirements-cu11.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pytest
22
# TODO: remove this hack once cupy has a cp313 build
33
cupy-cuda11x; python_version < "3.13"
44
nvidia-cuda-runtime-cu11 # headers consumed by CuPy
5+
torch # For PyTorch example

cuda_core/tests/requirements-cu12.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pytest
22
# TODO: remove this hack once cupy has a cp313 build
33
cupy-cuda12x; python_version < "3.13"
44
nvidia-cuda-runtime-cu12 # headers consumed by CuPy
5+
torch # For PyTorch example

0 commit comments

Comments
 (0)