Skip to content

Commit 5deac7b

Browse files
authored
Merge branch '12.9.x' into generator-changes-12.9
2 parents 2f8a301 + 55908cc commit 5deac7b

11 files changed

Lines changed: 1171 additions & 1316 deletions

File tree

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd
2525
cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx
2626
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd
2727
cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx
28-
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd
29-
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx
3028
cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx
3129
cuda_bindings/cuda/bindings/_internal/nvvm.pyx
3230
cuda_bindings/cuda/bindings/_lib/utils.pxd
@@ -37,14 +35,10 @@ cuda_bindings/cuda/bindings/cyruntime.pxd
3735
cuda_bindings/cuda/bindings/cyruntime.pyx
3836
cuda_bindings/cuda/bindings/cyruntime_functions.pxi
3937
cuda_bindings/cuda/bindings/cyruntime_types.pxi
40-
cuda_bindings/cuda/bindings/cynvrtc.pxd
41-
cuda_bindings/cuda/bindings/cynvrtc.pyx
4238
cuda_bindings/cuda/bindings/driver.pxd
4339
cuda_bindings/cuda/bindings/driver.pyx
4440
cuda_bindings/cuda/bindings/runtime.pxd
4541
cuda_bindings/cuda/bindings/runtime.pyx
46-
cuda_bindings/cuda/bindings/nvrtc.pxd
47-
cuda_bindings/cuda/bindings/nvrtc.pyx
4842
cuda_bindings/cuda/bindings/utils/_get_handle.pyx
4943

5044
# Version files from setuptools_scm

cuda_bindings/build_hooks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def _get_cuda_paths() -> list[str]:
6363
"driver_functions.h",
6464
"cuda_profiler_api.h",
6565
],
66-
"nvrtc": [
67-
"nvrtc.h",
68-
],
66+
# nvrtc: headers no longer parsed at build time (pre-generated by cybind).
6967
# During compilation, Cython will reference C headers that are not
7068
# explicitly parsed above. These are the known dependencies:
7169
#
@@ -390,7 +388,8 @@ def _cleanup_dst_files():
390388
sources_list = [
391389
# private
392390
(["cuda/bindings/_bindings/cydriver.pyx", "cuda/bindings/_bindings/loader.cpp"], None),
393-
(["cuda/bindings/_bindings/cynvrtc.pyx"], None),
391+
# cynvrtc.pyx is now in cuda/bindings/ (pre-generated by cybind),
392+
# picked up by the cuda_bindings_files glob below.
394393
(["cuda/bindings/_bindings/cyruntime.pyx"], static_runtime_libraries),
395394
(["cuda/bindings/_bindings/cyruntime_ptds.pyx"], static_runtime_libraries),
396395
# utils

cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in

Lines changed: 0 additions & 789 deletions
This file was deleted.
Lines changed: 7 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,59 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
23
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4+
#
5+
# This code was automatically generated with version 12.9.0, generator version 0.3.1.dev1603+gcfe73f973. Do not modify it directly.
36

4-
# This code was automatically generated with version 12.9.0, generator version 49a8141. Do not modify it directly.
5-
from cuda.bindings.cynvrtc cimport *
7+
from ..cynvrtc cimport *
68

7-
{{if 'nvrtcGetErrorString' in found_functions}}
9+
###############################################################################
10+
# Wrapper functions
11+
###############################################################################
812

913
cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil
10-
{{endif}}
11-
12-
{{if 'nvrtcVersion' in found_functions}}
1314

1415
cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil
15-
{{endif}}
16-
17-
{{if 'nvrtcGetNumSupportedArchs' in found_functions}}
1816

1917
cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil
20-
{{endif}}
21-
22-
{{if 'nvrtcGetSupportedArchs' in found_functions}}
2318

2419
cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil
25-
{{endif}}
26-
27-
{{if 'nvrtcCreateProgram' in found_functions}}
2820

2921
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil
30-
{{endif}}
31-
32-
{{if 'nvrtcDestroyProgram' in found_functions}}
3322

3423
cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil
35-
{{endif}}
36-
37-
{{if 'nvrtcCompileProgram' in found_functions}}
3824

3925
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil
40-
{{endif}}
41-
42-
{{if 'nvrtcGetPTXSize' in found_functions}}
4326

4427
cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
45-
{{endif}}
46-
47-
{{if 'nvrtcGetPTX' in found_functions}}
4828

4929
cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil
50-
{{endif}}
51-
52-
{{if 'nvrtcGetCUBINSize' in found_functions}}
5330

5431
cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
55-
{{endif}}
56-
57-
{{if 'nvrtcGetCUBIN' in found_functions}}
5832

5933
cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil
60-
{{endif}}
61-
62-
{{if 'nvrtcGetNVVMSize' in found_functions}}
63-
64-
cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
65-
{{endif}}
66-
67-
{{if 'nvrtcGetNVVM' in found_functions}}
68-
69-
cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) except ?NVRTC_ERROR_INVALID_INPUT nogil
70-
{{endif}}
71-
72-
{{if 'nvrtcGetLTOIRSize' in found_functions}}
7334

7435
cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
75-
{{endif}}
76-
77-
{{if 'nvrtcGetLTOIR' in found_functions}}
7836

7937
cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil
80-
{{endif}}
81-
82-
{{if 'nvrtcGetOptiXIRSize' in found_functions}}
8338

8439
cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
85-
{{endif}}
86-
87-
{{if 'nvrtcGetOptiXIR' in found_functions}}
8840

8941
cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil
90-
{{endif}}
91-
92-
{{if 'nvrtcGetProgramLogSize' in found_functions}}
9342

9443
cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
95-
{{endif}}
96-
97-
{{if 'nvrtcGetProgramLog' in found_functions}}
9844

9945
cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil
100-
{{endif}}
101-
102-
{{if 'nvrtcAddNameExpression' in found_functions}}
10346

10447
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil
105-
{{endif}}
106-
107-
{{if 'nvrtcGetLoweredName' in found_functions}}
10848

10949
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil
110-
{{endif}}
111-
112-
{{if 'nvrtcGetPCHHeapSize' in found_functions}}
11350

11451
cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil
115-
{{endif}}
116-
117-
{{if 'nvrtcSetPCHHeapSize' in found_functions}}
11852

11953
cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil
120-
{{endif}}
121-
122-
{{if 'nvrtcGetPCHCreateStatus' in found_functions}}
12354

12455
cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil
125-
{{endif}}
126-
127-
{{if 'nvrtcGetPCHHeapSizeRequired' in found_functions}}
12856

12957
cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil
130-
{{endif}}
131-
132-
{{if 'nvrtcSetFlowCallback' in found_functions}}
13358

13459
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil
135-
{{endif}}
136-

0 commit comments

Comments
 (0)