Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

enable loop parallelism in NL_Function_Eval - #12

Closed
ian-bertolacci wants to merge 1 commit into
hydroframe:masterfrom
ian-bertolacci:access_macro_mod
Closed

enable loop parallelism in NL_Function_Eval#12
ian-bertolacci wants to merge 1 commit into
hydroframe:masterfrom
ian-bertolacci:access_macro_mod

Conversation

@ian-bertolacci

Copy link
Copy Markdown

In progress to #11

Current progress:

  • Split the scatter section of the loop out into a new loop
  • Store temporary variables into a vector
  • Reverse scatter pattern into a gather pattern

Loop calculating contributions from 2nd order
derivatives and gravity had a scatter pattern that
prevented parallelism.
This is changed by:
1. storing the temporary values (u_right, u_front, u_upper)
2. Splitting scatter portion into a second loop below
3. reversing the accesses to perform a gather instead of a scatter
@ian-bertolacci

Copy link
Copy Markdown
Author

Ugh. Wrong branch name.

@ian-bertolacci
ian-bertolacci deleted the access_macro_mod branch June 19, 2019 19:54
@ian-bertolacci

Copy link
Copy Markdown
Author

Moved to pull #13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant