make_pinned_buffer#

Overloads#

make_pinned_buffer(__stream, __args)#

template<class _Tp, class ..._Args>
inline auto cuda::make_pinned_buffer(
stream_ref __stream,
_Args&&... __args
)

Creates a buffer backed by the default pinned memory pool.

See also

make_buffer for the full set of supported argument combinations.

Parameters:
  • __stream – The stream used for allocation.

  • __args – Remaining arguments forwarded to make_buffer.

make_pinned_buffer(__stream, __ilist, __env={})#

template<class _Tp, class _Env = ::cuda::std::execution::env<>>
inline auto cuda::make_pinned_buffer(
stream_ref __stream,
::cuda::std::initializer_list<_Tp> __ilist,
const _Env &__env = {}
)

Creates a buffer backed by the default pinned memory pool from an initializer_list.

Parameters:
  • __stream – The stream used for allocation.

  • __ilist – The initializer_list being copied into the buffer.

  • __env – The environment providing additional configuration.