Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluids: SmartSim Online Data-Driven SGS training #1203

Merged
merged 14 commits into from
Nov 27, 2023
Merged

Conversation

jrwrigh
Copy link
Collaborator

@jrwrigh jrwrigh commented Apr 20, 2023

Todo:

  • Documentation
  • Send subgrid stresses (not just filtered velocity products)
    • Add SGS to dd training input DM
    • Add calculation of subgrid stress to training input calculation
    • Verify DM Vec data placement (if true, remove IS and copying mechanics)
  • Add test

Depends on #1223

@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 4 times, most recently from 39d4bcc to b8747ff Compare April 25, 2023 17:06
@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 9 times, most recently from 4c18a6f to 70277b9 Compare May 5, 2023 14:27
@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch from 70277b9 to 5380fcd Compare May 14, 2023 03:02
@jrwrigh jrwrigh force-pushed the jrwrigh/differential_filter branch from 24271ad to 3bfc51f Compare May 18, 2023 02:53
@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 3 times, most recently from afba1e7 to c435b71 Compare May 25, 2023 23:32
@jrwrigh jrwrigh force-pushed the jrwrigh/differential_filter branch from 3bfc51f to 8400f94 Compare May 30, 2023 22:50
@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 3 times, most recently from b26bb54 to 8837361 Compare May 31, 2023 21:27
Base automatically changed from jrwrigh/differential_filter to main June 5, 2023 13:11
@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 6 times, most recently from b4e2603 to 36b1d88 Compare June 8, 2023 20:02
@jrwrigh
Copy link
Collaborator Author

jrwrigh commented Oct 11, 2023

I hereby declare this PR officially good for review!

@jrwrigh jrwrigh force-pushed the jrwrigh/smartsim branch 3 times, most recently from 1c9cc74 to 95b1a41 Compare October 16, 2023 18:39
@jrwrigh
Copy link
Collaborator Author

jrwrigh commented Oct 16, 2023

Alright, I've reviewed over this and rebased onto main. Good to review. @jedbrown @jeremylt

Copy link
Member

@jedbrown jedbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the testing working and Ratel compat checked, I think this can merge.

 - It can now setup more than just user->grad_velo_proj
- Adds `-smartsim_diable_calls` which can run with `-sgs_train_enable`,
  but doesn't call SmartSim library calls. This allows for debugging the
  training related functions without having to run inside a SmartSim
  experiment.
- So that other QFunctions can use them for indexing into differential
  filtered fields
- Adds `smartsim_weak.c` to handle case where SmartRedis is not built
- This will shutdown the simulation if there's a tensor called
  `check-run` equal to zeros
Requires that the fluids code be built with SMARTREDIS_DIR set, and in
an environment with SmartSim (Python library) installed as well.

Co-authored by: Zach Atkins <[email protected]>
@jrwrigh
Copy link
Collaborator Author

jrwrigh commented Nov 27, 2023

Thanks! I've changed the SmartRedisCall to PetscSmartRedisCall as Jeremy suggested. I've also rebased onto main just to make sure everything is working correctly CI-wise.

@jrwrigh jrwrigh merged commit 3451ca5 into main Nov 27, 2023
26 checks passed
@jrwrigh jrwrigh deleted the jrwrigh/smartsim branch November 27, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants