Skip to content

Commit

Permalink
adjust forward flux sampling to run inside the docker container (like…
Browse files Browse the repository at this point in the history
… the other ones)
  • Loading branch information
InnocentBug committed Sep 19, 2022
1 parent db6bdba commit 837fed0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ jobs:

forward-flux-sampling:
runs-on: ubuntu-latest
container:
image: ssages/pysages-openmm
options: --user root --privileged
needs: build
steps:
- uses: actions/checkout@v3
- name: Install pysages and dependecies
env:
JAX_PIP_URL: https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
run: |
pip install --upgrade "jax[cuda]" -f "${{ env.JAX_PIP_URL }}"
pip install .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: pysages
path: /tmp
- name: Load and run test
run: |
cd examples/openmm
python3 forward_flux_sampling.py \
--cv-start=80 --cv-distance=2 --window-number=2 --sampling-steps=50 --replicas=5
SCRIPT="cd PySAGES/examples/openmm &&"
SCRIPT="${SCRIPT} python3 forward-flux-sampling.py "
SCRIPT="${SCRIPT} --cv-start=80 --cv-distance=2 --window-number=2 --sampling-steps=50 --replicas=5"
docker load --input /tmp/pysages.tar
docker run -t pysages bash -c "${SCRIPT}"
abf-alanine-dipeptide-openmm:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 837fed0

Please sign in to comment.