EGSnrc
EGSnrc copied to clipboard
Parallel script for cpu jobs does not wait for the prescribed delay
The egs-parallel
script includes an option to insert a user-defined delay between each job:
-d | --delay delay in seconds between individual jobs
However, the egs-parallel-cpu
sub-script to launch the job in parallel on a multiple core cpu locally does not implement this option, so the jobs are always submitted as fast as possible on the cpu, irrespective of the --delay
option specified in the egs-parallel
command. A sleep $delay
command should be added at the end of the job submission loop.
Thanks to @MartinMartinov for reporting this in Discussion #777.
https://github.com/nrc-cnrc/EGSnrc/blob/a6fc389c6465c949645380976f38a013a639759c/HEN_HOUSE/scripts/egs-parallel-cpu#L150-L154