Skip to content

Commit c50ee15

Browse files
committed
Move cu_memcpy -> memcpy
1 parent 1e81c7e commit c50ee15

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 2 additions & 2 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=f9f2c83efd71c87778422f6fa62fa737eb43ec0c437102501f821a8426d1b78b
6+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6fcf904a35d5aa857ef919763d56c49656afa5977ed8be2f91f7cad840af7ed6
77

88

99
# <<<< PREAMBLE CONTENT >>>>
@@ -335,7 +335,7 @@ cpdef uint64_t ipc_open_mem_handle_v2(handle, unsigned int flags) except? 0
335335
cpdef ipc_close_mem_handle(uint64_t dptr)
336336
cpdef mem_host_register_v2(p, size_t bytesize, unsigned int flags)
337337
cpdef mem_host_unregister(p)
338-
cpdef cu_memcpy(uint64_t dst, uint64_t src, size_t byte_count)
338+
cpdef memcpy(uint64_t dst, uint64_t src, size_t byte_count)
339339
cpdef memcpy_peer(uint64_t dst_device, intptr_t dst_context, uint64_t src_device, intptr_t src_context, size_t byte_count)
340340
cpdef memcpy_htod_v2(uint64_t dst_device, src_host, size_t byte_count)
341341
cpdef memcpy_dtoh_v2(dst_host, uint64_t src_device, size_t byte_count)

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

Lines changed: 6 additions & 6 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=e84c1fe79d03709871d5a37c4970bfec7d3eec5ce9ba6297e03bf63721011166
6+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=cc1ac70b43586bcc18fa53eaf2741642b15689e14a6882e41062b817f36e80ab
77

88

99
# <<<< PREAMBLE CONTENT >>>>
@@ -120,7 +120,7 @@ cimport cython # NOQA
120120
from cpython.buffer cimport (Py_buffer, PyObject_GetBuffer, PyBuffer_Release,
121121
PyBUF_ANY_CONTIGUOUS, PyObject_CheckBuffer,
122122
PyBUF_SIMPLE)
123-
from libc.string cimport memcpy, memset
123+
from libc.string cimport memcpy as c_memcpy, memset
124124

125125
from cpython.mem cimport PyMem_Calloc, PyMem_Free
126126

@@ -26737,7 +26737,7 @@ cdef int _pack_argument(void** ptr, char* slot, object value, object ctype) exce
2673726737
value = ctype(value)
2673826738
size = <size_t>_ctypes.sizeof(ctype)
2673926739
addr = <void*><intptr_t>_ctypes.addressof(value)
26740-
memcpy(slot, addr, size)
26740+
c_memcpy(slot, addr, size)
2674126741
return 0
2674226742
elif ctype is _ctypes.c_void_p:
2674326743
if isinstance(value, (int, _ctypes.c_void_p)):
@@ -29477,8 +29477,8 @@ cpdef intptr_t mem_alloc_host_v2(size_t bytesize) except? 0:
2947729477
Allocates ``bytesize`` bytes of host memory that is page-locked and accessible
2947829478
to the device. The driver tracks the virtual memory ranges allocated with this
2947929479
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
2948229482
with functions such as ``malloc()``.
2948329483
On systems where
2948429484
``CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES`` is true,
@@ -30133,7 +30133,7 @@ cpdef mem_host_unregister(p):
3013330133
check_status(__status__)
3013430134

3013530135

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):
3013730137
"""Copies memory.
3013830138

3013930139
Copies data between two pointers. ``dst`` and ``src`` are base pointers of the

‎cuda_bindings_13/docs/source/module/v2_migration.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
11331133
- ``mem_unmap``
11341134
-
11351135
* - ``cuMemcpy``
1136-
- ``cu_memcpy``
1136+
- ``memcpy``
11371137
-
11381138
* - ``cuMemcpy2D``
11391139
- ``memcpy_2d_v2``

0 commit comments

Comments
 (0)