Skip to content
Snippets Groups Projects
Commit f0aba2e9 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Document attributes of ReductionInfo

parent 081d11ad
No related branches found
No related tags found
1 merge request!438Reduction Support
...@@ -50,7 +50,16 @@ FieldArrayPair = namedtuple("FieldArrayPair", ("field", "array")) ...@@ -50,7 +50,16 @@ FieldArrayPair = namedtuple("FieldArrayPair", ("field", "array"))
@dataclass(frozen=True) @dataclass(frozen=True)
class ReductionInfo: class ReductionInfo:
"""Information about a reduction operation, its neutral element in form of an initial value """Information about a reduction operation, its neutral element in form of an initial value
and the pointer used by the kernel as write-back argument.""" and the pointer used by the kernel as write-back argument.
Attributes:
===========
reduction_op : Reduction operation being performed
init_val : Initial value used to initialize local symbol
local_symbol : Kernel-local symbol used to accumulate intermediate reduction result
writeback_ptr_symbol : Symbol that is used to export the final reduction result
"""
op: ReductionOp op: ReductionOp
init_val: PsExpression init_val: PsExpression
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment