thirdparty/cuda/api/memory.hpp
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);
}
/**
 * Allocates a mapped pair of memory regions - on a CUDA device
 * and in host memory.
 *
 * @param device_id The device on which to allocate the device-side region
 * @param size_in_bytes size of each of the two regions, in bytes.
 * @param options indication of how the CUDA driver will manage
 * the region pair
 * @return the allocated pair (with both regions being non-null)
 */
Allocates a mapped pair of memory regions - on a CUDA device
and in host memory.

@param device_id The device on which to allocate the device-side region
@param size_in_bytes size of each of the two regions, in bytes.
@param options indication of how the CUDA driver will manage
the region pair
@return the allocated pair (with both regions being non-null)
Allocates a mapped pair of memory regions - on a CUDA device and in host memory . @param device_id The device on which to allocate the device - side region @param size_in_bytes size of each of the two regions in bytes . @param options indication of how the CUDA driver will manage the region pair @return the allocated pair ( with both regions being non - null )
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 ) ; }
Allocates a mapped pair of memory regions - on a CUDA device
 and in host memory.
Allocates a mapped pair of memory regions - on a CUDA device and in host memory .