Skip to content

Commit c0e9a6e

Browse files
committed
Trying to get more info
1 parent c041b3f commit c0e9a6e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

cuda_core/examples/saxpy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@
1414
# dependencies = ["cuda_bindings", "cuda_core", "cupy-cuda13x"]
1515
# ///
1616

17+
1718
import sys
1819

20+
from cuda import pathfinder
21+
22+
print(pathfinder.load_nvidia_dynamic_lib("nvrtc"))
23+
24+
sys.exit(1)
25+
1926
import cupy as cp
2027

2128
from cuda.core import Device, LaunchConfig, Program, ProgramOptions, launch

cuda_core/tests/example_tests/test_basic_examples.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def uv_installed() -> bool:
5353
return True
5454

5555

56+
def has_cuda_path() -> bool:
57+
return os.environ.get("CUDA_PATH", os.environ.get("CUDA_HOME")) is not None
58+
59+
5660
PACKAGE_REQUIREMENTS = {
5761
"cuda_graphs.py": ["cupy"],
5862
"jit_lto_fractal.py": ["cupy"],
@@ -72,7 +76,8 @@ def uv_installed() -> bool:
7276
"pytorch_example.py": is_x86_64, # PyTorch only provides CUDA support for x86_64
7377
"simple_multi_gpu_example.py": has_multiple_devices,
7478
"strided_memory_view_cpu.py": is_not_windows,
75-
"thread_block_cluster.py": has_compute_capability_9_or_higher,
79+
"thread_block_cluster.py": lambda: has_compute_capability_9_or_higher() and has_cuda_path(),
80+
"tma_tensor_map.py": has_cuda_path,
7681
}
7782

7883

0 commit comments

Comments
 (0)