Function rcudnn::cudaDeviceGetMemPool[][src]

pub unsafe extern "C" fn cudaDeviceGetMemPool(
    memPool: *mut *mut CUmemPoolHandle_st,
    device: i32
) -> cudaError
Expand description

\brief Gets the current mempool for a device

Returns the last pool provided to ::cudaDeviceSetMemPool for this device or the device’s default memory pool if ::cudaDeviceSetMemPool has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set with ::cuDeviceSetMemPool or ::cudaDeviceSetMemPool.

\returns ::cudaSuccess, ::cudaErrorInvalidValue ::cudaErrorNotSupported \notefnerr \note_init_rt \note_callback

\sa ::cuDeviceGetMemPool, ::cudaDeviceGetDefaultMemPool, ::cudaDeviceSetMemPool