Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
f0aba2e9
Commit
f0aba2e9
authored
2 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Document attributes of ReductionInfo
parent
081d11ad
No related branches found
No related tags found
1 merge request
!438
Reduction Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils/backend/kernelcreation/context.py
+10
-1
10 additions, 1 deletion
src/pystencils/backend/kernelcreation/context.py
with
10 additions
and
1 deletion
src/pystencils/backend/kernelcreation/context.py
+
10
−
1
View file @
f0aba2e9
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
4e688b86
·
2 months ago
mentioned in commit
4e688b86
mentioned in commit 4e688b867339c90a6fba3ad12c383d1e59211ed9
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment