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<Array> inputs() const#

Returns metadata for the task’s input arrays.

Returns:

Vector of array metadata objects

std::vector<Array> outputs() const#

Returns metadata for the task’s output arrays.

Returns:

Vector of array metadata objects

std::vector<Array> reductions() const#

Returns metadata for the task’s reduction arrays.

Returns:

Vector of array metadata objects

std::vector<Scalar> scalars() const#

Returns the vector of the task’s by-value arguments. Unlike mapping::Array objects that have no access to data in the arrays, the returned Scalar objects contain valid arguments to the task.

Returns:

Vector of Scalar objects

Array input(std::uint32_t index) const#

Returns metadata for the task’s input array.

Parameters:

index – Index of the input array

Returns:

Array metadata object

Array output(std::uint32_t index) const#

Returns metadata for the task’s output array.

Parameters:

index – Index of the output array

Returns:

Array metadata object

Array reduction(std::uint32_t index) const#

Returns metadata for the task’s reduction array.

Parameters:

index – Index of the reduction array

Returns:

Array metadata object

Scalar scalar(std::uint32_t index) const#

Returns a by-value argument of the task.

Parameters:

index – Index of the scalar

Returns:

Scalar

std::size_t num_inputs() const#

Returns the number of task’s inputs.

Returns:

Number of arrays

std::size_t num_outputs() const#

Returns the number of task’s outputs.

Returns:

Number of arrays

std::size_t num_reductions() const#

Returns the number of task’s reductions.

Returns:

Number of arrays

std::size_t num_scalars() const#

Returns the number of Scalars.

Returns:

Number of Scalars

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