RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
RAJA::WorkGroup< WORKGROUP_POLICY_T, INDEX_T, EXTRA_ARGS_T, ALLOCATOR_T > Struct Template Reference

WorkGroup class template. Owns loops from an instantiated WorkPool. More...

#include <WorkGroup.hpp>

Detailed Description

template<typename WORKGROUP_POLICY_T, typename INDEX_T, typename EXTRA_ARGS_T, typename ALLOCATOR_T>
struct RAJA::WorkGroup< WORKGROUP_POLICY_T, INDEX_T, EXTRA_ARGS_T, ALLOCATOR_T >

WorkGroup class template. Owns loops from an instantiated WorkPool.

The WorkGroup object is the second member of the workgroup constructs. It is created by a WorkPool and stores a collection of loops so they can be run. When the WorkGroup is run it creates a WorkSite object with any per run data. Because the WorkGroup owns a collection of loops it must not be destroyed before that collection of loops has finished running. The WorkGroup can be used to run its collection of loops multiple times.

Usage example:

  WorkGroup<WorkGroup_policy, Index_type, xargs<>, Allocator> group =
pool.instantiate();

  WorkSite<WorkGroup_policy, Index_type, xargs<>, Allocator> site =
group.run();

* 

The documentation for this struct was generated from the following file: