pub unsafe extern "C" fn cuDeviceSetMemPool(
dev: CUdevice,
pool: CUmemoryPool,
) -> CUresultExpand description
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.
§Return value
See also: cuDeviceGetDefaultMemPool, cuDeviceGetMemPool, cuMemPoolCreate, cuMemPoolDestroy, cuMemAllocFromPoolAsync.