lib/cuda-api-wrappers/api/memory.hpp
/**
 * Allocate a pair of mapped memory regions, one in host memory && one
 * in the global memory of a CUDA device, which the CUDA runtime will keep
 * syncrhonized
 *
 * @note "managed memory" is similar to "mapped memory" in the propagation
 * of changes from the host to the device && back as necessary, but differs
 * from it in that "mapped memory" involves just a single device; && that
 * with "mapped memory" the host-side && device-side addresses are different
 *
 * @param device_id The device on which to allocate the device-side region
 * @param size_in_bytes size of each of the memory region
 * @param options see @ref region_pair::allocation_options
 * @return a structure for the pair of allocated regions
 */
Allocate a pair of mapped memory regions, one in host memory && one
in the global memory of a CUDA device, which the CUDA runtime will keep
syncrhonized




Allocate a pair of mapped memory regions one in host memory && one in the global memory of a CUDA device which the CUDA runtime will keep syncrhonized
inline region_pair allocate(
	cuda::device::id_t               device_id,
	size_t                           size_in_bytes,
	region_pair::allocation_options  options = {
		region_pair::isnt_portable_across_cuda_contexts,
		region_pair::without_cpu_write_combining }
	)
{
	cuda::device::current::scoped_override_t<> set_device_for_this_scope(device_id);
	return detail::allocate(size_in_bytes, options);
}
inline region_pair allocate ( cuda :: device :: id_t device_id , size_t size_in_bytes , region_pair :: allocation_options options = { region_pair :: isnt_portable_across_cuda_contexts , region_pair :: without_cpu_write_combining } ) { cuda :: device :: current :: scoped_override_t < > set_device_for_this_scope ( device_id ) ; return detail :: allocate ( size_in_bytes , options ) ; }
Allocate a pair of mapped memory regions, one in host memory && one
 in the global memory of a CUDA device, which the CUDA runtime will keep
 syncrhonized
Allocate a pair of mapped memory regions one in host memory && one in the global memory of a CUDA device which the CUDA runtime will keep syncrhonized