make_device_buffer#

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.