cuda::experimental::fill_bytes#
-
template<typename _DstTy, ::cuda::std::enable_if_t<::cuda::__spannable<::cuda::transformed_device_argument_t<_DstTy>>, int> = 0>
inline graph_node_ref cuda::experimental::fill_bytes( - path_builder &__pb,
- _DstTy &&__dst,
- ::cuda::std::uint8_t __value
Adds a memset node to a CUDA graph path that bytewise-fills the destination.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This overload is selected when the destination (after applying
launch_transform) is acuda::std::mdspan.This overload is selected when the destination (after applying
launch_transform) is a contiguous range convertible tocuda::std::span. The element type must be trivially copyable and non-const. The pointer captured in the node must remain valid until the graph executes.The mdspan must be exhaustive. The element type must be trivially copyable and non-const. The pointer captured in the node must remain valid until the graph executes.
- Parameters:
__pb – Path builder to insert the node into.
__dst – Destination memory to fill.
__value – Byte value to write to every byte of the destination.
- Throws:
cuda::std::cuda_error – if node creation fails.
- Returns:
A
graph_node_reffor the newly added memset node.