legate::mapping::Task#
-
class Task#
A metadata class for tasks.
Public Functions
-
LocalTaskID task_id() const#
Returns the task id.
- Returns:
Task id
-
std::vector<Store> inputs() const#
Returns metadata for the task’s input stores.
- Returns:
Vector of store metadata objects
-
std::vector<Store> outputs() const#
Returns metadata for the task’s output stores.
- Returns:
Vector of store metadata objects
-
std::vector<Store> reductions() const#
Returns metadata for the task’s reduction stores.
- Returns:
Vector of store metadata objects
-
std::vector<Scalar> scalars() const#
Returns the vector of the task’s by-value arguments. Unlike
mapping::Storeobjects that have no access to data in the stores, the returnedScalarobjects contain valid arguments to the task.- Returns:
Vector of
Scalarobjects
-
Store input(std::uint32_t index) const#
Returns metadata for the task’s input store.
- Parameters:
index – Index of the input store
- Returns:
Store metadata object
-
Store output(std::uint32_t index) const#
Returns metadata for the task’s output store.
- Parameters:
index – Index of the output store
- Returns:
Store metadata object
-
Store reduction(std::uint32_t index) const#
Returns metadata for the task’s reduction store.
- Parameters:
index – Index of the reduction store
- Returns:
Store metadata object
-
Scalar scalar(std::uint32_t index) const#
Returns a by-value argument of the task.
- Parameters:
index – Index of the scalar
- Returns:
-
std::size_t num_inputs() const#
Returns the number of task’s inputs.
- Returns:
Number of input stores
-
std::size_t num_outputs() const#
Returns the number of task’s outputs.
- Returns:
Number of output stores
-
std::size_t num_reductions() const#
Returns the number of task’s reductions.
- Returns:
Number of redeuction stores
-
bool is_single_task() const#
Indicates whether the task is parallelized.
- Returns:
true The task is a single task
- Returns:
false The task is one in a set of multiple parallel tasks
-
const Domain &get_launch_domain() const#
Returns the launch domain.
- Returns:
Launch domain
-
LocalTaskID task_id() const#