Skip to content

Commit 2ce673e

Browse files
committed
trying to fix ci build-hooks failures
1 parent 741f6c6 commit 2ce673e

7 files changed

Lines changed: 8 additions & 32 deletions

File tree

cuda_bindings/docs/source/install.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ Source builds require that the provided CUDA headers are of the same major.minor
9393
9494
$ export CUDA_PATH=/usr/local/cuda
9595
96-
.. note::
97-
98-
The CUDA Toolkit path is determined once at the start of the build process and cached. If you need to change the path during development, restart your build environment.
99-
10096
See `Environment Variables <environment_variables.rst>`_ for a description of other build-time environment variables.
10197

10298
.. note::

cuda_bindings/pixi.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cuda_bindings/pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ setuptools = ">=80"
9595
setuptools-scm = ">=8"
9696
cython = ">=3.2,<3.3"
9797
pyclibrary = ">=0.1.7"
98-
cuda-pathfinder = { path = "../cuda_pathfinder" }
98+
cuda-pathfinder = "*"
9999
cuda-cudart-static = "*"
100100
cuda-nvrtc-dev = "*"
101101
cuda-profiler-api = "*"
@@ -115,7 +115,7 @@ cuda-crt-dev_win-64 = "*"
115115

116116
[package.run-dependencies]
117117
python = "*"
118-
cuda-pathfinder = { path = "../cuda_pathfinder" }
118+
cuda-pathfinder = "*"
119119
libnvjitlink = "*"
120120
cuda-nvrtc = "*"
121121
cuda-nvvm = "*"

cuda_core/build_hooks.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,7 @@
2626

2727
@functools.cache
2828
def _get_cuda_paths() -> list[str]:
29-
"""Get list of CUDA Toolkit paths from environment variables.
30-
31-
Supports multiple paths separated by os.pathsep (: on Unix, ; on Windows).
32-
Returns a list of paths for use in include_dirs and library_dirs.
33-
"""
34-
try:
35-
from cuda.pathfinder._utils.env_vars import get_cuda_home_or_path
36-
37-
CUDA_PATH = get_cuda_home_or_path()
38-
except ImportError:
39-
# Fallback for build environments where cuda-pathfinder may not be available
40-
CUDA_PATH = os.environ.get("CUDA_PATH", os.environ.get("CUDA_HOME", None))
41-
29+
CUDA_PATH = os.environ.get("CUDA_PATH", os.environ.get("CUDA_HOME", None))
4230
if not CUDA_PATH:
4331
raise RuntimeError("Environment variable CUDA_PATH or CUDA_HOME is not set")
4432
CUDA_PATH = CUDA_PATH.split(os.pathsep)

cuda_core/examples/thread_block_cluster.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
sys.exit(0)
2828

2929
# prepare include
30-
from cuda.pathfinder._utils.env_vars import get_cuda_home_or_path
31-
32-
cuda_path = get_cuda_home_or_path()
30+
cuda_path = os.environ.get("CUDA_PATH", os.environ.get("CUDA_HOME"))
3331
if cuda_path is None:
3432
print("this demo requires a valid CUDA_PATH environment variable set", file=sys.stderr)
3533
sys.exit(0)

cuda_core/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ setuptools-scm = ">=8"
101101
cython = ">=3.2,<3.3"
102102
cuda-cudart-dev = "*"
103103
cuda-profiler-api = "*"
104-
cuda-pathfinder = { path = "../cuda_pathfinder" }
104+
cuda-pathfinder = "*"
105105
# this doesn't work because Cython cannot find editable-installed build-time
106106
# dependencies https://github.com/cython/cython/issues/7326
107107
# cuda-bindings = { path = "../cuda_bindings" }

cuda_pathfinder/cuda/pathfinder/_utils/env_vars.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
call determines the CUDA Toolkit path, and all subsequent calls return the cached
1818
value, even if environment variables change later. This ensures consistent behavior
1919
throughout the application lifecycle.
20-
21-
.. versionadded:: 1.4.0
22-
Added centralized environment variable handling.
23-
24-
.. versionchanged:: 1.4.0
25-
**Breaking Change**: Priority changed from CUDA_HOME > CUDA_PATH to CUDA_PATH > CUDA_HOME.
2620
"""
2721

2822
import functools

0 commit comments

Comments
 (0)