cuda::experimental::stf::task_dep_vector
Defined in include/cuda/experimental/__stf/internal/task_dep.cuh
-
template<typename ...Data>
class task_dep_vector : public task_dep_vector_untyped Typed dependencies - carries dependency objects along with their types.
If types are not needed, this type can be converted implicitly to
task_dep_vector_untyped
.- Template Parameters
Data – Types of the objects the task depends on
Public Types
-
template<size_t i>
using type_at = ::std::tuple_element_t<i, ::std::tuple<Data...>> Get the type depended upon at position
i
.- Template Parameters
i – For example,
typename task_dep_vector<int, double>::type_at<1>
isdouble
.
Public Functions
-
template<typename T>
inline task_dep_vector(task_dep<T> d) Constructor (applies only for
task_dep_vector<T>
)- Template Parameters
T – Data type
- Parameters
d – typed task dependency object
-
inline task_dep_vector(task_dep<Data>... deps)
Create given a number of
task_dep
instantiations.- Parameters
deps – typed dependency objects
Friends
- friend class task_dep_vector