Function rcudnn::cudaFreeAsync[][src]

pub unsafe extern "C" fn cudaFreeAsync(
    devPtr: *mut c_void,
    hStream: *mut CUstream_st
) -> cudaError
Expand description

\brief Frees memory with stream ordered semantics

Inserts a free operation into \p hStream. The allocation must not be accessed after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.

\note During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.

\param dptr - memory to free \param hStream - The stream establishing the stream ordering promise \returns ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorNotSupported \notefnerr \note_null_stream \note_init_rt \note_callback

\sa ::cuMemFreeAsync, ::cudaMallocAsync