Fix CUDA checkpoint restore args and generated API docs by kkraus14 · Pull Request #2144 · NVIDIA/cuda-python · GitHub
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
37 changes: 33 additions & 4 deletions cuda_bindings/build_hooks.py
2 changes: 1 addition & 1 deletion cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE

# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1711+g875fec45. Do not modify it directly.
from cuda.bindings.cydriver cimport *

{{if 'cuGetErrorString' in found_functions}}
Expand Down
2 changes: 1 addition & 1 deletion cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE

# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1711+g875fec45. Do not modify it directly.
{{if 'Windows' == platform.system()}}
import os
cimport cuda.bindings._lib.windll as windll
Expand Down
16 changes: 14 additions & 2 deletions cuda_bindings/cuda/bindings/cydriver.pxd.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE

# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1711+g875fec45. Do not modify it directly.

from libc.stdint cimport uint32_t, uint64_t

Expand Down Expand Up @@ -2458,9 +2458,21 @@ cdef extern from "cuda.h":
ctypedef CUcheckpointGpuPair_st CUcheckpointGpuPair

cdef struct CUcheckpointRestoreArgs_st:
{{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}}
CUcheckpointGpuPair* gpuPairs
{{endif}}
{{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}}
unsigned int gpuPairsCount
char reserved[52]
{{endif}}
{{if struct_field_types.get('CUcheckpointRestoreArgs_st.reserved') == 'char'}}
char reserved[{{struct_field_array_lengths['CUcheckpointRestoreArgs_st.reserved']}}]
{{endif}}
{{if struct_field_types.get('CUcheckpointRestoreArgs_st.reserved') == 'cuuint64_t'}}
cuuint64_t reserved[{{struct_field_array_lengths['CUcheckpointRestoreArgs_st.reserved']}}]
{{endif}}
{{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}}
cuuint64_t reserved1
{{endif}}
Comment thread
leofang marked this conversation as resolved.

ctypedef CUcheckpointRestoreArgs_st CUcheckpointRestoreArgs

Expand Down
2 changes: 1 addition & 1 deletion cuda_bindings/cuda/bindings/cydriver.pyx.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE

# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1711+g875fec45. Do not modify it directly.
cimport cuda.bindings._bindings.cydriver as cydriver

{{if 'cuGetErrorString' in found_functions}}
Expand Down
25 changes: 22 additions & 3 deletions cuda_bindings/cuda/bindings/driver.pxd.in
Loading
Loading