cuda::experimental::stf::task_set

Defined in include/cuda/experimental/__stf/internal/logical_data.cuh

class task_set

This represents a set of tasks.

The goal of this class is to avoid storing very large containers of task structure which may hold many events for a long time (and needlessly consume ressources), so that we can optimize the events. This class is usefull when all tasks in the set are used together, for example when we enforce some write-after-read dependency when the writer tasks must depend on all previous readers.

We can add an individual task to a set, or remove all of them, but we cannot remove a single task.

Public Functions

task_set() = default
inline void add(const task &t)
inline void clear()
inline bool empty() const
inline const event_list &get_done_prereqs() const
inline const auto &get_ids() const