pub unsafe extern "C" fn cudaMemGetDefaultMemPool(
memPool: *mut cudaMemPool_t,
location: *mut cudaMemLocation,
type_: cudaMemAllocationType,
) -> cudaError_tExpand description
Returns the default memory pool for a given 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.
ยงReturn value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_NOT_SUPPORTED
See also: cuMemAllocAsync, cuMemPoolTrimTo, cuMemPoolGetAttribute, cuMemPoolSetAttribute, cuMemPoolSetAccess, cuMemGetMemPool, cuMemPoolCreate.