thirdparty/cuda/api/memory.hpp
inline void* allocate(cuda::device::id_t device_id, size_t size_in_bytes)
{
	cuda::device::current::scoped_override_t<> set_device_for_this_scope(device_id);
	return memory::device::detail::allocate(size_in_bytes);
}
/**
 * Allocate device-side memory on a CUDA device.
 *
 * @note The CUDA memory allocator guarantees alignment "suitabl[e] for any kind of variable"
 * (CUDA 9.0 Runtime API documentation), so probably at least 128 bytes.
 *
 * @throws cuda::runtime_error if allocation fails for any reason
 *
 * @param size_in_bytes the amount of memory to allocate
 * @return a pointer to the allocated stretch of memory (on the CUDA device)
 */
Allocate device-side memory on a CUDA device.
@note The CUDA memory allocator guarantees alignment "suitabl[e] for any kind of variable"
(CUDA 9.0 Runtime API documentation), so probably at least 128 bytes.

@throws cuda::runtime_error if allocation fails for any reason

@param size_in_bytes the amount of memory to allocate
@return a pointer to the allocated stretch of memory (on the CUDA device)
Allocate device - side memory on a CUDA device . @note The CUDA memory allocator guarantees alignment " suitabl [ e ] for any kind of variable " ( CUDA 9 . 0 Runtime API documentation ) so probably at least 128 bytes . @throws cuda :: runtime_error if allocation fails for any reason @param size_in_bytes the amount of memory to allocate @return a pointer to the allocated stretch of memory ( on the CUDA device )
inline void* allocate(cuda::device::id_t device_id, size_t size_in_bytes)
{
	cuda::device::current::scoped_override_t<> set_device_for_this_scope(device_id);
	return memory::device::detail::allocate(size_in_bytes);
}
inline void * allocate ( cuda :: device :: id_t device_id , size_t size_in_bytes ) { cuda :: device :: current :: scoped_override_t < > set_device_for_this_scope ( device_id ) ; return memory :: device :: detail :: allocate ( size_in_bytes ) ; }
Allocate device-side memory on a CUDA device.
Allocate device - side memory on a CUDA device .