Skip to content

Commit 2b6d3ea

Browse files
committed
rerun codegen with 12.9.1 and update result/error explanations
1 parent 8edaa4d commit 2b6d3ea

22 files changed

+49
-22
lines changed

cuda_bindings/cuda/bindings/_internal/cufile.pxd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated with version 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.0 to 12.9.1. Do not modify it directly.
66

77
from ..cycufile cimport *
88

@@ -41,3 +41,4 @@ cdef CUfileError_t _cuFileGetParameterString(CUFileStringConfigParameter_t param
4141
cdef CUfileError_t _cuFileSetParameterSizeT(CUFileSizeTConfigParameter_t param, size_t value) except?<CUfileError_t>CUFILE_LOADING_ERROR nogil
4242
cdef CUfileError_t _cuFileSetParameterBool(CUFileBoolConfigParameter_t param, cpp_bool value) except?<CUfileError_t>CUFILE_LOADING_ERROR nogil
4343
cdef CUfileError_t _cuFileSetParameterString(CUFileStringConfigParameter_t param, const char* desc_str) except?<CUfileError_t>CUFILE_LOADING_ERROR nogil
44+
cdef CUfileError_t _cuFileDriverClose() except?<CUfileError_t>CUFILE_LOADING_ERROR nogil

cuda_bindings/cuda/bindings/_internal/cufile_linux.pyx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated with version 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.0 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t, uintptr_t
88
import threading
@@ -71,6 +71,7 @@ cdef void* __cuFileGetParameterString = NULL
7171
cdef void* __cuFileSetParameterSizeT = NULL
7272
cdef void* __cuFileSetParameterBool = NULL
7373
cdef void* __cuFileSetParameterString = NULL
74+
cdef void* __cuFileDriverClose = NULL
7475

7576

7677
cdef void* load_library(const int driver_ver) except* with gil:
@@ -314,6 +315,13 @@ cdef int _check_or_init_cufile() except -1 nogil:
314315
handle = load_library(driver_ver)
315316
__cuFileSetParameterString = dlsym(handle, 'cuFileSetParameterString')
316317

318+
global __cuFileDriverClose
319+
__cuFileDriverClose = dlsym(RTLD_DEFAULT, 'cuFileDriverClose')
320+
if __cuFileDriverClose == NULL:
321+
if handle == NULL:
322+
handle = load_library(driver_ver)
323+
__cuFileDriverClose = dlsym(handle, 'cuFileDriverClose')
324+
317325
__py_cufile_init = True
318326
return 0
319327

@@ -419,6 +427,9 @@ cpdef dict _inspect_function_pointers():
419427
global __cuFileSetParameterString
420428
data["__cuFileSetParameterString"] = <intptr_t>__cuFileSetParameterString
421429

430+
global __cuFileDriverClose
431+
data["__cuFileDriverClose"] = <intptr_t>__cuFileDriverClose
432+
422433
func_ptrs = data
423434
return data
424435

@@ -734,3 +745,13 @@ cdef CUfileError_t _cuFileSetParameterString(CUFileStringConfigParameter_t param
734745
raise FunctionNotFoundError("function cuFileSetParameterString is not found")
735746
return (<CUfileError_t (*)(CUFileStringConfigParameter_t, const char*) noexcept nogil>__cuFileSetParameterString)(
736747
param, desc_str)
748+
749+
750+
cdef CUfileError_t _cuFileDriverClose() except?<CUfileError_t>CUFILE_LOADING_ERROR nogil:
751+
global __cuFileDriverClose
752+
_check_or_init_cufile()
753+
if __cuFileDriverClose == NULL:
754+
with gil:
755+
raise FunctionNotFoundError("function cuFileDriverClose is not found")
756+
return (<CUfileError_t (*)() noexcept nogil>__cuFileDriverClose)(
757+
)

cuda_bindings/cuda/bindings/_internal/nvjitlink.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from ..cynvjitlink cimport *
88

cuda_bindings/cuda/bindings/_internal/nvjitlink_linux.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t, uintptr_t
88

cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t
88

cuda_bindings/cuda/bindings/_internal/nvvm.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from ..cynvvm cimport *
88

cuda_bindings/cuda/bindings/_internal/nvvm_linux.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t, uintptr_t
88

cuda_bindings/cuda/bindings/_internal/nvvm_windows.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t
88

cuda_bindings/cuda/bindings/cufile.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated with version 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.0 to 12.9.1. Do not modify it directly.
66

77
from libc.stdint cimport intptr_t
88

cuda_bindings/cuda/bindings/cufile.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated with version 12.9.0. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.0 to 12.9.1. Do not modify it directly.
66

77
cimport cython # NOQA
88
from libc cimport errno

0 commit comments

Comments
 (0)