Function rcudnn_sys::cudaDeviceGetMemPool [−][src]
pub unsafe extern "C" fn cudaDeviceGetMemPool(
memPool: *mut cudaMemPool_t,
device: c_int
) -> cudaError_t
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