6#include "command_token.hpp"
9#include <rexlib/core/platform/dynamic_shared_object.h>
10#include <rexlib/core/span.hpp>
167 std::shared_ptr<const
program> m_program;
168 std::vector<std::shared_ptr<
buffer>> m_outputs;
169 std::vector<std::shared_ptr<const
buffer>> m_inputs;
170 std::vector<std::shared_ptr<
buffer>> m_scratch;
Represents an untyped memory allocation at a given memory resource.
Definition buffer.hpp:25
Identifies a command submitted to a command_queue.
Definition command_token.hpp:27
Specification of work to be executed on a command_queue.
Definition command.hpp:31
span< const std::shared_ptr< buffer > > get_scratch() const noexcept
Get the bound scratch buffers.
command & bind_outputs(std::vector< std::shared_ptr< buffer > > outputs) noexcept
Bind the output buffers for this command.
command & bind_inputs(std::vector< std::shared_ptr< const buffer > > inputs) noexcept
Bind the input buffers for this command.
span< const std::shared_ptr< const buffer > > get_inputs() const noexcept
Get the bound input buffers.
command & bind_scratch(std::vector< std::shared_ptr< buffer > > scratch) noexcept
Bind the scratch buffers for this command.
command() noexcept
Construct a command with no program and empty bindings.
command & bind_dependencies(std::vector< command_token > dependencies) noexcept
Bind the commands this command has to run after.
span< const command_token > get_dependencies() const noexcept
Get the bound dependencies.
const std::shared_ptr< const program > & get_program() const noexcept
Get the program associated with this command.
span< const std::shared_ptr< buffer > > get_outputs() const noexcept
Get the bound output buffers.
Abstract representation of an executable program.
Definition program.hpp:27
Represents a non-owning area of contiguous memory.
Definition span.hpp:99
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
@ inputs
Bound by the input axes that name the variable.