Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
962 changes: 445 additions & 517 deletions cuda_bindings/pixi.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cuda_bindings/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ preview = ["pixi-build"]
[workspace.build-variants]
python = ["3.10.*", "3.11.*", "3.12.*", "3.13.*", "3.14.*"]
# Keep source-package metadata aligned with the consuming environment's CUDA major.
cuda-version = ["12.*", "13.2.*"]
cuda-version = ["12.*", "13.3.*"]

[feature.test.dependencies]
cuda-bindings = { path = "." }
Expand Down Expand Up @@ -74,7 +74,7 @@ CUDA_HOME = "$CONDA_PREFIX/Library"
cuda-version = "12.*"

[feature.cu13.dependencies]
cuda-version = "13.2.*"
cuda-version = "13.3.*"
Comment thread
rparolin marked this conversation as resolved.

[environments]
default = { features = ["test", "cython-tests"], solve-group = "default" }
Expand Down
8 changes: 8 additions & 0 deletions cuda_bindings/tests/cython/build_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from __future__ import annotations

import os
import sys
from pathlib import Path

Expand Down Expand Up @@ -45,6 +46,13 @@ def main() -> None:
compiler_directives={"freethreading_compatible": True},
)

# `build_ext --inplace` places the compiled .so relative to the current
# working directory, but pixi runs this task from the project root. pytest
# imports each extension by bare module name (see test_cython.py), which
# only resolves when the .so sits in tests/cython (the dir pytest puts on
# sys.path). chdir here so the .so lands next to its .pyx regardless of the
# invoking cwd.
os.chdir(script_dir)
sys.argv = [sys.argv[0], "build_ext", "--inplace"]
setup(name="cuda_bindings_cython_tests", ext_modules=ext_modules)

Expand Down
Loading
Loading