make_device_buffer#
Overloads#
make_device_buffer(__stream, __device, __args)#
-
template<class _Tp, class ..._Args>
inline auto cuda::make_device_buffer( - stream_ref __stream,
- device_ref __device,
- _Args&&... __args
Creates a buffer backed by the default device memory pool.
See also
make_buffer for the full set of supported argument combinations.
- Parameters:
__stream – The stream used for allocation.
__device – The device whose default memory pool will be used.
__args – Remaining arguments forwarded to
make_buffer.
make_device_buffer(__stream, __device, __ilist, __env={})#
-
template<class _Tp, class _Env = ::cuda::std::execution::env<>>
inline auto cuda::make_device_buffer( - stream_ref __stream,
- device_ref __device,
- ::cuda::std::initializer_list<_Tp> __ilist,
- const _Env &__env = {}
Creates a buffer backed by the default device memory pool from an initializer_list.
- Parameters:
__stream – The stream used for allocation.
__device – The device whose default memory pool will be used.
__ilist – The initializer_list being copied into the buffer.
__env – The environment providing additional configuration.