Skip to content

Commit

Permalink
scale slack in walltime with length of trajectory
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Oct 24, 2023
1 parent 0675221 commit 358cea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
openmm-plumed
py-plumed
cp2k
spglib=2.0.*
nwchem
pip
pytorch=1.13.1
Expand All @@ -42,5 +43,6 @@ jobs:
cd ${{ runner.temp }} && git clone https://github.com/molmod/psiflow
cd psiflow
which cp2k.psmp
export WANDB_API_KEY=${{ secrets.WANDB_API_KEY }}
pytest --skip-gpu --psiflow-config=.github/workflows/threadpool.py
shell: micromamba-shell {0}
4 changes: 2 additions & 2 deletions psiflow/walkers/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def molecular_dynamics_yaff(
command_unbuffer,
command_printenv,
command_write,
"timeout -s 15 {}s".format(walltime - 2),
"timeout -s 15 {}s".format(int(walltime - 5 - 0.01 * walltime)),
"psiflow-md-yaff",
"--device {}".format(device),
"--ncores {}".format(ncores),
Expand Down Expand Up @@ -137,7 +137,7 @@ def molecular_dynamics_openmm(
command_unbuffer,
command_printenv,
command_write,
"timeout -s 15 {}s".format(walltime - 2),
"timeout -s 15 {}s".format(int(walltime - 5 - 0.01 * walltime)),
"psiflow-md-openmm",
"--device {}".format(device),
"--ncores {}".format(ncores),
Expand Down

0 comments on commit 358cea5

Please sign in to comment.