Comments (4)
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.
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.
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.
Added via PR #53
from ls1-mardyn.
Related Issues (20)
- ALL + AutoPas exit error when ALL updateFrequency < total number of sim steps HOT 7
- Add warnings to CMake build
- CI fixes
- Update MaxwellVelocityDistribution to use random seeds instead of only 0 HOT 1
- Getting "error: βuint32_tβ does not name a type" with new gcc and clang versions HOT 3
- using namespace std in the codebase
- Update AutoPas for Energy Tuning HOT 2
- Thermostats HOT 1
- SpatialProfile sampling HOT 1
- Timer for plugins
- Rotation calculated for spherical particles HOT 3
- Normalization of quaternions
- cpplint / clang-format / clang-tidy
- Checkpoint writing
- Region iterators, when deleting halo particles from AutoPas, seem to skip particles arbitrarily HOT 1
- Unused code cleanup HOT 1
- Script to execute examples locally not working
- Remove VisWriter plugin HOT 2
- Fix MaMiCo Plugin (MaMiCo refactoring February 2024)
- Fix weird Quaternion default initialisation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ls1-mardyn.