Legion Runtime
Public Member Functions | List of all members
Legion::DeferredReduction< REDOP, EXCLUSIVE > Class Template Reference

#include <legion.h>

Inheritance diagram for Legion::DeferredReduction< REDOP, EXCLUSIVE >:
Legion::DeferredValue< REDOP::RHS >

Public Member Functions

 DeferredReduction (size_t alignment=16)
 
__CUDA_HD__ void reduce (typename REDOP::RHS val) const
 
__CUDA_HD__ void operator<<= (typename REDOP::RHS val) const
 
- Public Member Functions inherited from Legion::DeferredValue< REDOP::RHS >
 DeferredValue (REDOP::RHS initial_value, size_t alignment=16)
 
__CUDA_HD__ REDOP::RHS read (void) const
 
__CUDA_HD__ void write (REDOP::RHS value) const
 
__CUDA_HD__ REDOP::RHS * ptr (void) const
 
__CUDA_HD__ REDOP::RHS & ref (void) const
 
__CUDA_HD__ operator REDOP::RHS (void) const
 
__CUDA_HD__ DeferredValue< REDOP::RHS > & operator= (REDOP::RHS value)
 
void finalize (Context ctx) const
 

Additional Inherited Members

- Protected Attributes inherited from Legion::DeferredValue< REDOP::RHS >
Realm::RegionInstance instance
 
Realm::AffineAccessor< REDOP::RHS, 1, coord_t > accessor
 

Detailed Description

template<typename REDOP, bool EXCLUSIVE = false>
class Legion::DeferredReduction< REDOP, EXCLUSIVE >

This is a special case of a DeferredValue that also supports a reduction operator. It supports all the same methods as the DeferredValue as well as an additional method for doing reductions using a reduction operator.


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