Skip to content

Commit 58c773a

Browse files
committed
Faster wrappers of arrays of CUDA structs
1 parent a2fb804 commit 58c773a

21 files changed

Lines changed: 2032 additions & 1800 deletions

‎cuda_bindings_13/cuda/bindings/_internal/cudla_linux.pyx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# This code was automatically generated across versions from 1.5.0 to 13.4.1. Do not modify it directly.
5-
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6d02d71c7a7ef7627a3dccc1514b8e1ea48ac7d738954a2259df71cfeaaca839
5+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c45f2cb738d8336a435dae2e5398dc561e360788ee832d40c684a2e17515ae47
66

77

88
# <<<< PREAMBLE CONTENT >>>>
99

10+
from libc.stdint cimport (
11+
intptr_t,
12+
uint32_t,
13+
uint64_t,
14+
uint8_t,
15+
)
16+
1017
cdef extern from * nogil:
1118
"""
1219
#if defined(_MSC_VER) && !defined(__clang__)
@@ -43,13 +50,6 @@ cdef extern from "<dlfcn.h>":
4350
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4451
const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT"
4552

46-
from libc.stdint cimport (
47-
intptr_t,
48-
uint32_t,
49-
uint64_t,
50-
uint8_t,
51-
)
52-
5353
import threading as _cyb_threading
5454

5555
cdef int _cyb___py_cudla_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/cudla_windows.pyx‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# This code was automatically generated across versions from 1.5.0 to 13.4.1. Do not modify it directly.
5-
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=338d2b3b3dc670ce440660d6161d69bb61b7c2f0c03759fa8df5c91d45255d7d
5+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=23ad0c59749e78f838cc290fb24960736dbdaceca13f2c6544ba4e0732c23cde
66

77

88
# <<<< PREAMBLE CONTENT >>>>
99

10+
from libc.stdint cimport (
11+
intptr_t,
12+
uint32_t,
13+
uint64_t,
14+
uint8_t,
15+
uintptr_t,
16+
)
17+
1018
cdef extern from * nogil:
1119
"""
1220
#if defined(_MSC_VER) && !defined(__clang__)
@@ -43,14 +51,6 @@ cdef extern from "<windows.h>":
4351
ctypedef void* HMODULE
4452
void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil
4553

46-
from libc.stdint cimport (
47-
intptr_t,
48-
uint32_t,
49-
uint64_t,
50-
uint8_t,
51-
uintptr_t,
52-
)
53-
5454
import threading as _cyb_threading
5555

5656
cdef int _cyb___py_cudla_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/cufile_linux.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
cimport cython as _cyb_cython
12+
from libc.stdint cimport intptr_t
13+
from libcpp cimport bool as _cyb_bool
14+
1115
cdef extern from * nogil:
1216
"""
1317
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,10 +48,6 @@ cdef extern from "<dlfcn.h>":
4448
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4549
const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT"
4650

47-
cimport cython as _cyb_cython
48-
from libc.stdint cimport intptr_t
49-
from libcpp cimport bool as _cyb_bool
50-
5151
import threading as _cyb_threading
5252

5353
cdef int _cyb___py_cufile_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
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=c6a477ceb1a35675c0ffe5e40f9826ea3e3bd9cbec23720f78fe4cf28feafbe0
6+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=cf88d68f5d0521e0872350a3e27b7c90b33d32c0d3d1211ae1aa746da98a588d
77

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport intptr_t
12+
1113
cdef extern from * nogil:
1214
"""
1315
#if defined(_MSC_VER) && !defined(__clang__)
@@ -43,8 +45,6 @@ cdef extern from * nogil:
4345
cdef extern from "<dlfcn.h>":
4446
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4547

46-
from libc.stdint cimport intptr_t
47-
4848
from os import getenv as _cyb_getenv
4949
import threading as _cyb_threading
5050

‎cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
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=a04dbfec5a461010c493b3aca0b092910ff3eb49d31942a68c957309892b2aa6
6+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=407fc621da7a0e722426cccfd66003e6769c32bc671f8ff28cf6fe979ed11b1a
77

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport intptr_t
12+
1113
cdef extern from * nogil:
1214
"""
1315
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,8 +46,6 @@ cdef extern from "<windows.h>":
4446
ctypedef void* HMODULE
4547
void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil
4648

47-
from libc.stdint cimport intptr_t
48-
4949
from os import getenv as _cyb_getenv
5050
import threading as _cyb_threading
5151

‎cuda_bindings_13/cuda/bindings/_internal/nvfatbin_linux.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport intptr_t
12+
1113
cdef extern from * nogil:
1214
"""
1315
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,8 +46,6 @@ cdef extern from "<dlfcn.h>":
4446
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4547
const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT"
4648

47-
from libc.stdint cimport intptr_t
48-
4949
import threading as _cyb_threading
5050

5151
cdef int _cyb___py_nvfatbin_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/nvfatbin_windows.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport (
12+
intptr_t,
13+
uintptr_t,
14+
)
15+
1116
cdef extern from * nogil:
1217
"""
1318
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,11 +49,6 @@ cdef extern from "<windows.h>":
4449
ctypedef void* HMODULE
4550
void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil
4651

47-
from libc.stdint cimport (
48-
intptr_t,
49-
uintptr_t,
50-
)
51-
5252
import threading as _cyb_threading
5353

5454
cdef int _cyb___py_nvfatbin_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/nvjitlink_linux.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport (
12+
intptr_t,
13+
uint32_t,
14+
)
15+
1116
cdef extern from * nogil:
1217
"""
1318
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,11 +49,6 @@ cdef extern from "<dlfcn.h>":
4449
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4550
const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT"
4651

47-
from libc.stdint cimport (
48-
intptr_t,
49-
uint32_t,
50-
)
51-
5252
import threading as _cyb_threading
5353

5454
cdef int _cyb___py_nvjitlink_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/nvjitlink_windows.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport (
12+
intptr_t,
13+
uint32_t,
14+
uintptr_t,
15+
)
16+
1117
cdef extern from * nogil:
1218
"""
1319
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,12 +50,6 @@ cdef extern from "<windows.h>":
4450
ctypedef void* HMODULE
4551
void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil
4652

47-
from libc.stdint cimport (
48-
intptr_t,
49-
uint32_t,
50-
uintptr_t,
51-
)
52-
5353
import threading as _cyb_threading
5454

5555
cdef int _cyb___py_nvjitlink_init = 0

‎cuda_bindings_13/cuda/bindings/_internal/nvml_linux.pyx‎

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

88

99
# <<<< PREAMBLE CONTENT >>>>
1010

11+
from libc.stdint cimport intptr_t
12+
1113
cdef extern from * nogil:
1214
"""
1315
#if defined(_MSC_VER) && !defined(__clang__)
@@ -44,8 +46,6 @@ cdef extern from "<dlfcn.h>":
4446
void* _cyb_dlsym "dlsym"(void*, const char*) nogil
4547
const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT"
4648

47-
from libc.stdint cimport intptr_t
48-
4949
import threading as _cyb_threading
5050

5151
cdef int _cyb___py_nvml_init = 0

0 commit comments

Comments
 (0)