Skip to main content

cudaMallocFromPoolAsync

Function cudaMallocFromPoolAsync 

Source
pub unsafe extern "C" fn cudaMallocFromPoolAsync(
    ptr: *mut *mut c_void,
    size: size_t,
    memPool: cudaMemPool_t,
    stream: cudaStream_t,
) -> cudaError_t
Expand description

Allocates memory from a specified pool with stream ordered semantics.

Inserts an allocation operation into stream. A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.

ยงParameters

  • ptr: Returned device pointer.
  • memPool: The pool to allocate from.
  • stream: The stream establishing the stream ordering semantic.