pub unsafe extern "C" fn cudaMemGetMemPool(
memPool: *mut cudaMemPool_t,
location: *mut cudaMemLocation,
type_: cudaMemAllocationType,
) -> cudaError_tExpand description
Gets the current memory pool for a given memory location and allocation type.
The memory location can be of one of cudaMemLocationTypeDevice, cudaMemLocationTypeHost, cudaMemLocationTypeHostNuma, or cudaMemLocationTypeDeviceLocalityDomain. The allocation type can be one of cudaMemAllocationType::cudaMemAllocationTypePinned or cudaMemAllocationType::cudaMemAllocationTypeManaged. When the allocation type is cudaMemAllocationType::cudaMemAllocationTypeManaged, the location type can also be cudaMemLocationTypeNone to indicate no preferred location for the managed memory pool. cudaMemAllocationType::cudaMemAllocationTypeManaged can not be used with cudaMemLocationTypeDeviceLocalityDomain. In all other cases, the call return cudaError_t::CUDA_ERROR_INVALID_VALUE
Returns the last pool provided to cudaMemSetMemPool or cudaDeviceSetMemPool for this location and allocation type or the location’s default memory pool if cudaMemSetMemPool or cudaDeviceSetMemPool for that allocType and location has never been called. By default the current mempool of a location is the default mempool for a device that can be obtained via cudaMemGetDefaultMemPool Otherwise the returned pool must have been set with cudaDeviceSetMemPool.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_NOT_SUPPORTED
See also: cuDeviceGetDefaultMemPool, cuMemPoolCreate, cuDeviceSetMemPool, cuMemSetMemPool.