pub unsafe extern "C" fn cuDeviceSetMemPool(
dev: CUdevice,
pool: CUmemoryPool,
) -> CUresult
Expand description
\brief Sets the current memory pool of a device
The memory pool must be local to the specified device. ::cuMemAllocAsync allocates from the current mempool of the provided stream’s device. By default, a device’s current memory pool is its default memory pool.
\note Use ::cuMemAllocFromPoolAsync to specify asynchronous allocations from a device different than the one the stream runs on.
\returns ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE
\sa ::cuDeviceGetDefaultMemPool, ::cuDeviceGetMemPool, ::cuMemPoolCreate, ::cuMemPoolDestroy, ::cuMemAllocFromPoolAsync