llnl / llnl/RAJA

Need array of reduction variables

Open
#246 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
598
Forks
118
Avg merge
21h 29m
Merged PRs (30d)
1

Description

I have data in a 3-D array indexed by time and two spatial dimensions. When running, I need to periodically report data reduced from this 3-D array. The problem definition can specify an arbitrary number of reference regions where separate statistics need to be calculated. Each reference region defines a subset of the spatial domain where the end user wants a separate set of summary statistics calculated.
The number of reference regions is not known at compile time, so I would like to make an array of ReduceSum<> variables at runtime. This doesn't seem possible because ReduceSum has an explicit constructor, and I can't figure a way to make a container (array, vector, ...) of ReduceSum variables.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining ReduceSum and its explicit constructor, then review how reduction variables are currently created and stored. Determine whether a runtime-sized array or vector of ReduceSum variables can support separate statistics for an arbitrary number of reference regions; done means the requested container use case is supported and documented by a validating test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.