Skip to content

Commit 47712e0

Browse files
leofangclaude
andcommitted
Update build system: skip pyclibrary for nvrtc, fix cynvrtc source path
- Remove nvrtc from _REQUIRED_HEADERS (no pyclibrary parsing needed; nvrtc .pyx/.pxd files are now pre-generated by cybind) - Update sources_list: cynvrtc.pyx moved from _bindings/ to bindings/ - _rename_architecture_specific_files already handles _internal/nvrtc_linux.pyx -> _internal/nvrtc.pyx Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 37a929f commit 47712e0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cuda_bindings/build_hooks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ def _get_cuda_path() -> str:
9494
"driver_functions.h",
9595
"cuda_profiler_api.h",
9696
],
97-
"nvrtc": [
98-
"nvrtc.h",
99-
],
97+
# nvrtc: headers no longer parsed at build time (pre-generated by cybind).
10098
# During compilation, Cython will reference C headers that are not
10199
# explicitly parsed above. These are the known dependencies:
102100
#
@@ -423,7 +421,7 @@ def _cleanup_dst_files():
423421
sources_list = [
424422
# private
425423
(["cuda/bindings/_bindings/cydriver.pyx", "cuda/bindings/_bindings/loader.cpp"], None),
426-
(["cuda/bindings/_bindings/cynvrtc.pyx"], None),
424+
(["cuda/bindings/cynvrtc.pyx"], None),
427425
(["cuda/bindings/_bindings/cyruntime.pyx"], static_runtime_libraries),
428426
(["cuda/bindings/_bindings/cyruntime_ptds.pyx"], static_runtime_libraries),
429427
# utils

0 commit comments

Comments
 (0)