cupy.cuda.alloc_pinned_memory¶
-
cupy.cuda.
alloc_pinned_memory
(Py_ssize_t size) → PinnedMemoryPointer¶ Calls the current allocator.
Use
set_pinned_memory_allocator()
to change the current allocator.Parameters: size (int) – Size of the memory allocation. Returns: Pointer to the allocated buffer. Return type: PinnedMemoryPointer