Skip to content
Snippets Groups Projects

Add message for filesize in csds

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

As the CSDS over allocate the file size, we need a way to know the actual file size used.

Currently, I am doing a MPI communication in between each step just to print this information. I am not sure what is the best approach:

  • Output every N steps
  • Doing the MPI communication only if required (but I am not sure how to get the verbosity level on nodes != 0)
  • Fine like this as it should not be a significant amount of time
  • Adding it to engine_collect_end_step
  • Something else?
Edited by Loic Hausammann

Merge request reports

Merged by Matthieu SchallerMatthieu Schaller 3 years ago (Jun 8, 2021 3:53pm UTC)

Merge details

  • Changes merged into master with 5c20f5dc (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    Compare with previous version

  • Loic Hausammann resolved all threads

    resolved all threads

  • Can you make the call to csds_get_current_filesize_used_gb() outside of the collectgroup? I'd like collectgroup to do no work besides MPI comms.

  • Also saves you from passing the engine in. Just pass 0 if running without CSDS.

  • added 1 commit

    • 72648e33 - Move print outside collect_end_step + compute csds size outside collectgroup

    Compare with previous version

  • added 1 commit

    • d056c321 - Initialize variable in all cases

    Compare with previous version

  • Ok I moved the print outside engine_collect_end_step and the function outside of collectgroup.

  • > ./configure
    ...
    > make
    ...
    engine_collect_end_of_step.c: In function ‘engine_collect_end_of_step’:
    engine_collect_end_of_step.c:503:30: error: implicit declaration of function ‘csds_get_current_filesize_used_gb’ [-Werror=implicit-function-declaration]
      503 |     data.csds_file_size_gb = csds_get_current_filesize_used_gb(e->csds, e);
          |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    make[3]: *** [Makefile:2383: libswiftsim_la-engine_collect_end_of_step.lo] Error 1
  • added 1 commit

    Compare with previous version

  • I forgot an ifdef. Sorry about that.

  • Matthieu Schaller approved this merge request

    approved this merge request

  • mentioned in commit 5c20f5dc

  • Please register or sign in to reply
    Loading