Skip to content

Commit 2da9c65

Browse files
authored
Ship _v2 lowpp API for the driver module (#3095)
* Ship _v2 lowpp API for the driver module * Fix syntax * Fix tests * Fix test * Fix thread behavior for legacy driver APIs * Fix ErrorError -> Error * Merge in latest cybind changes * Fix readonly check * Address CodeRabbit comment * Fix NULL dereference found in review * Fix issues in migration doc * Move cu_memcpy -> memcpy * Make docs match behavior * Update release notes * Fix comment about name shadowing
1 parent d5f37e0 commit 2da9c65

32 files changed

Lines changed: 55773 additions & 1656 deletions

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ repos:
155155
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
156156
hooks:
157157
- id: check-added-large-files
158-
exclude: '^(?:cuda_bindings_13/cuda/bindings/nvml\.pyx|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx))$'
158+
exclude: '^(?:cuda_bindings_13/cuda/bindings/(?:nvml\.pyx|_v2/driver\.pyx)|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx))$'
159159
- id: check-case-conflict
160160
- id: check-docstring-first
161161
- id: check-merge-conflict

‎cuda_bindings_13/cuda/bindings/_v2/driver.pxd‎

Lines changed: 721 additions & 0 deletions
Large diffs are not rendered by default.

‎cuda_bindings_13/cuda/bindings/_v2/driver.pyx‎

Lines changed: 43822 additions & 0 deletions
Large diffs are not rendered by default.

‎cuda_bindings_13/cuda/bindings/_v2/nvrtc.pxd‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# This code was automatically generated across versions from 12.9.0 to 13.4.1. Do not modify it directly.
6-
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5c7c24ae0ae5a6032e23f801fe9c3151a434eebd3b3429fbfd799985f87b184c
6+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=94a2cbbfd690b8a9ff436e4e424f67a8ab35631b4ed8790516952e3afbc94de3
77

88

99
# <<<< PREAMBLE CONTENT >>>>
@@ -39,10 +39,6 @@ ctypedef nvrtcResult _Result
3939
cpdef intptr_t create_program(bytes src, name, headers=*, include_names=*) except? 0
4040
cpdef compile_program(intptr_t prog, options=*)
4141
cpdef set_flow_callback(intptr_t prog, intptr_t callback, intptr_t payload)
42-
cpdef bytes get_lowered_name(intptr_t prog, bytes name_expression)
43-
cpdef install_bundled_headers(bytes install_path, unsigned int flags)
44-
cpdef tuple get_bundled_headers_info()
45-
cpdef remove_bundled_headers(bytes install_path)
4642

4743
cpdef str get_error_string(int result)
4844
cpdef tuple version()
@@ -60,9 +56,13 @@ cpdef bytes get_optix_ir(intptr_t prog)
6056
cpdef size_t get_program_log_size(intptr_t prog) except? 0
6157
cpdef bytes get_program_log(intptr_t prog)
6258
cpdef add_name_expression(intptr_t prog, name_expression)
59+
cpdef bytes get_lowered_name(intptr_t prog, name_expression)
6360
cpdef size_t get_pch_heap_size() except? 0
6461
cpdef set_pch_heap_size(size_t size)
6562
cpdef int get_pch_create_status(intptr_t prog) except? -1
6663
cpdef size_t get_pch_heap_size_required(intptr_t prog) except? 0
6764
cpdef size_t get_tile_ir_size(intptr_t prog) except? 0
6865
cpdef bytes get_tile_ir(intptr_t prog)
66+
cpdef bytes install_bundled_headers(install_path, unsigned int flags)
67+
cpdef tuple get_bundled_headers_info()
68+
cpdef bytes remove_bundled_headers(install_path)

0 commit comments

Comments
 (0)