Function rcudnn::cudaMemPoolDestroy[][src]

pub unsafe extern "C" fn cudaMemPoolDestroy(
    memPool: *mut CUmemPoolHandle_st
) -> cudaError
Expand description

\brief Destroys the specified memory pool

If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when ::cudaMemPoolDestroy is invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations.

Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.

\note A device’s default memory pool cannot be destroyed.

\returns ::cudaSuccess, ::cudaErrorInvalidValue

\sa cuMemPoolDestroy, ::cudaFreeAsync, ::cudaDeviceSetMemPool, ::cudaDeviceGetDefaultMemPool, ::cudaDeviceGetMemPool, ::cudaMemPoolCreate