mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
Diff: https://github.com/NVIDIA/cuda-python/compare/cuda-core-v1.2.2...cuda-core-v1.3.0 Changelog: https://nvidia.github.io/cuda-python/cuda-core/latest/release/1.3.0-notes.html
23 lines
799 B
Diff
23 lines
799 B
Diff
--- a/tests/helpers/__init__.py
|
|
+++ b/tests/helpers/__init__.py
|
|
@@ -9,16 +9,9 @@
|
|
from cuda_python_test_helpers import IS_LINUX, IS_WINDOWS, IS_WSL, libc, under_compute_sanitizer
|
|
|
|
CUDA_PATH = get_cuda_path_or_home()
|
|
-CUDA_INCLUDE_PATH = None
|
|
-CCCL_INCLUDE_PATHS = None
|
|
-if CUDA_PATH is not None:
|
|
- path = os.path.join(CUDA_PATH, "include")
|
|
- if os.path.isdir(path):
|
|
- CUDA_INCLUDE_PATH = path
|
|
- CCCL_INCLUDE_PATHS = (path,)
|
|
- path = os.path.join(path, "cccl")
|
|
- if os.path.isdir(path):
|
|
- CCCL_INCLUDE_PATHS = (path,) + CCCL_INCLUDE_PATHS
|
|
+# Nixpkgs installs CCCL and the CUDA runtime headers in separate prefixes, not under one toolkit root.
|
|
+CUDA_INCLUDE_PATH = "@cudartInclude@"
|
|
+CCCL_INCLUDE_PATHS = ("@cccl@", "@cudartInclude@")
|
|
|
|
|
|
@functools.cache
|