Skip to content
Snippets Groups Projects

Take into account csds_init for the time in engine_init

Merged Loic Hausammann requested to merge split_time_accounted into master
All threads resolved!

Currently, the time spent within csds_init is accounted twice. Once within the previous function and once in engine_init. Here I am changing a bit the API in order to return the time already accounted for in engine_init.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Except from my question, everything is ready.

  • added 1 commit

    Compare with previous version

  • Have you tested it?

  • Loic Hausammann resolved all threads

    resolved all threads

  • Compiled with and without CSDS and run the SedovBlast_3D with the CSDS. Everything seems to work.

  • Try it over MPI and check again please.

  • Everything is fine over MPI with and without the CSDS.

  • You are using engine_rank in engine_init() before it was set in engine_config(), hence my question.

  • You are correct, but in fact we set it twice. https://gitlab.cosma.dur.ac.uk/swift/swiftsim/-/blob/master/examples/main.c#L133

    Do you wish to remove the one in engine_config.c?

  • Well spotted. Yes, let's remove it from engine_config then so I won't get confused again.

    Just make sure the one in main() is also set when restarting and that it is also set in main_fof.c

  • added 1 commit

    Compare with previous version

  • It is the first thing we do in both main.c and main_fof.c, thus the variable is set in any case.

  • Matthieu Schaller approved this merge request

    approved this merge request

  • mentioned in commit bb063b90

  • Please register or sign in to reply
    Loading