Code Monkey home page Code Monkey logo

Comments (4)

tchipev avatar tchipev commented on June 11, 2024

maybe it would be cleanest and easiest to implement, if the wall time refers precisely and only to the time spent inside the primary for-loop in Simulation::simulate. I.e. mardyn initialization and mardyn finalization (with checkpoint writing) are not included.
Otherwise it gets a bit messy that the mardyn initialization is included, but the "easy" way to write the final checkpoint -- the code after the primary for-loop in Simulation::simulate -- is not included.

from ls1-mardyn.

FG-TUM avatar FG-TUM commented on June 11, 2024

I think that when your job runs out of wall-time, the scheduler sends some system signal to the process of the program, before sending the signal to kill it.

If this were true for LoadLeveler or SLURM I would not count on it to be defined everywhere. So a timer in mardyn will be way safer.

maybe it would be cleanest and easiest to implement, if the wall time refers precisely and only to the time spent inside the primary for-loop

Would it? Depends on what you actually want to achive. If it s to simplify wall clock time for the job scripts then I would disagree, because then you roughly know the time spent in the main loop but still have to estimate the time before and after the loop which can be significant.

So in my opinion the cleanest solution would be to track wall-time from the start of the process. After each iteration the remaining time can be calculated. If this time t_remain is smaller than a given threshold a checkpoint file can be written if specified. However, there must be enough time left for this. Optimally we find a good way to estimate this.

from ls1-mardyn.

tchipev avatar tchipev commented on June 11, 2024

I think that if we say that the mardyn time is the time spent inside the main loop, it is an easy and relatively clean solution. Maybe "wall-time" is no longer accurate, but it is a "clean" substitution of the number of iterations - the number of iterations also says something only about the time spent in the main for loop and not the entire runtime, so currently you also have to estimate time outside the for-loop anyway.

Also, it will be straightforward to program - only the main for-loop turns into a while-loop with either a condition on the number of iterations or a condition on whether the time has been reached.

Estimating thresholds etc. requires more effort and may require more corner cases to be considered.

from ls1-mardyn.

kruegener avatar kruegener commented on June 11, 2024

Added via PR #53

from ls1-mardyn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.