|
3 | 3 | # SPDX-License-Identifier: Apache-2.0 |
4 | 4 | # |
5 | 5 | # 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=e84c1fe79d03709871d5a37c4970bfec7d3eec5ce9ba6297e03bf63721011166 |
| 6 | +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=cc1ac70b43586bcc18fa53eaf2741642b15689e14a6882e41062b817f36e80ab |
7 | 7 |
|
8 | 8 |
|
9 | 9 | # <<<< PREAMBLE CONTENT >>>> |
@@ -120,7 +120,7 @@ cimport cython # NOQA |
120 | 120 | from cpython.buffer cimport (Py_buffer, PyObject_GetBuffer, PyBuffer_Release, |
121 | 121 | PyBUF_ANY_CONTIGUOUS, PyObject_CheckBuffer, |
122 | 122 | PyBUF_SIMPLE) |
123 | | -from libc.string cimport memcpy, memset |
| 123 | +from libc.string cimport memcpy as c_memcpy, memset |
124 | 124 |
|
125 | 125 | from cpython.mem cimport PyMem_Calloc, PyMem_Free |
126 | 126 |
|
@@ -26737,7 +26737,7 @@ cdef int _pack_argument(void** ptr, char* slot, object value, object ctype) exce |
26737 | 26737 | value = ctype(value) |
26738 | 26738 | size = <size_t>_ctypes.sizeof(ctype) |
26739 | 26739 | addr = <void*><intptr_t>_ctypes.addressof(value) |
26740 | | - memcpy(slot, addr, size) |
| 26740 | + c_memcpy(slot, addr, size) |
26741 | 26741 | return 0 |
26742 | 26742 | elif ctype is _ctypes.c_void_p: |
26743 | 26743 | if isinstance(value, (int, _ctypes.c_void_p)): |
@@ -29477,8 +29477,8 @@ cpdef intptr_t mem_alloc_host_v2(size_t bytesize) except? 0: |
29477 | 29477 | Allocates ``bytesize`` bytes of host memory that is page-locked and accessible |
29478 | 29478 | to the device. The driver tracks the virtual memory ranges allocated with this |
29479 | 29479 | function and automatically accelerates calls to functions such as |
29480 | | - :func:`cu_memcpy`. Since the memory can be accessed directly by the device, it |
29481 | | - can be read or written with much higher bandwidth than pageable memory obtained |
| 29480 | + :func:`memcpy`. Since the memory can be accessed directly by the device, it can |
| 29481 | + be read or written with much higher bandwidth than pageable memory obtained |
29482 | 29482 | with functions such as ``malloc()``. |
29483 | 29483 | On systems where |
29484 | 29484 | ``CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES`` is true, |
@@ -30133,7 +30133,7 @@ cpdef mem_host_unregister(p): |
30133 | 30133 | check_status(__status__) |
30134 | 30134 |
|
30135 | 30135 |
|
30136 | | -cpdef cu_memcpy(uint64_t dst, uint64_t src, size_t byte_count): |
| 30136 | +cpdef memcpy(uint64_t dst, uint64_t src, size_t byte_count): |
30137 | 30137 | """Copies memory. |
30138 | 30138 |
|
30139 | 30139 | Copies data between two pointers. ``dst`` and ``src`` are base pointers of the |
|
0 commit comments