|
29 | 29 | with: |
30 | 30 | context: . |
31 | 31 | tags: pysages:latest |
| 32 | + build-args: | |
| 33 | + JAX_PLATFORMS=cpu |
32 | 34 | outputs: type=docker,dest=/tmp/pysages.tar |
33 | 35 | - name: Upload artifact |
34 | 36 | uses: actions/upload-artifact@v4 |
@@ -142,11 +144,11 @@ jobs: |
142 | 144 | - name: Load and run test |
143 | 145 | run: | |
144 | 146 | SCRIPT="cd PySAGES/examples/openmm/umbrella_integration &&" |
145 | | - SCRIPT="${SCRIPT} mpirun --allow-run-as-root --oversubscribe -n 6" |
| 147 | + SCRIPT="${SCRIPT} mpirun --oversubscribe -n 6" |
146 | 148 | SCRIPT="${SCRIPT} python3 -m mpi4py.futures" |
147 | 149 | SCRIPT="${SCRIPT} integration.py --replicas=5 --time-steps=1000 --mpi" |
148 | 150 | docker load --input /tmp/pysages.tar |
149 | | - docker run --privileged -t pysages bash -c "${SCRIPT}" |
| 151 | + docker run --user pysages -e HOME=/home/pysages -t pysages bash -c "${SCRIPT}" |
150 | 152 |
|
151 | 153 | cv-pucker-openmm-unbiased: |
152 | 154 | runs-on: ubuntu-latest |
@@ -214,11 +216,11 @@ jobs: |
214 | 216 | - name: Load and run test |
215 | 217 | run: | |
216 | 218 | SCRIPT="cd PySAGES/examples/openmm/string &&" |
217 | | - SCRIPT="${SCRIPT} mpirun --allow-run-as-root --oversubscribe -n 6" |
| 219 | + SCRIPT="${SCRIPT} mpirun --oversubscribe -n 6" |
218 | 220 | SCRIPT="${SCRIPT} python3 -m mpi4py.futures" |
219 | 221 | SCRIPT="${SCRIPT} integration.py --replicas=5 --string-steps=2 --time-steps=1000 --mpi" |
220 | 222 | docker load --input /tmp/pysages.tar |
221 | | - docker run --privileged -t pysages bash -c "${SCRIPT}" |
| 223 | + docker run --user pysages -e HOME=/home/pysages -t pysages bash -c "${SCRIPT}" |
222 | 224 |
|
223 | 225 | openmm-nacl-metad-displacement: |
224 | 226 | runs-on: ubuntu-latest |
@@ -396,12 +398,12 @@ jobs: |
396 | 398 | run: | |
397 | 399 | SCRIPT="cd PySAGES/examples/hoomd-blue/umbrella_integration &&" |
398 | 400 | SCRIPT="${SCRIPT} python3 ./gen_gsd.py &&" |
399 | | - SCRIPT="${SCRIPT} mpirun --allow-run-as-root --oversubscribe -n 2" |
| 401 | + SCRIPT="${SCRIPT} mpirun --oversubscribe -n 2" |
400 | 402 | SCRIPT="${SCRIPT} python3 -m mpi4py.futures" |
401 | 403 | SCRIPT="${SCRIPT} integration.py --replicas=5 --time-steps=1000 --mpi &&" |
402 | 404 | SCRIPT="${SCRIPT} mkdir /tmp/plots && mv *.pdf /tmp/plots/" |
403 | 405 | docker load --input /tmp/pysages.tar |
404 | | - docker run -v /tmp:/tmp -t pysages bash -c "${SCRIPT}" |
| 406 | + docker run -v /tmp:/tmp --user pysages -e HOME=/home/pysages -t pysages bash -c "${SCRIPT}" |
405 | 407 | - name: Upload artifacts |
406 | 408 | uses: actions/upload-artifact@v4 |
407 | 409 | with: |
|
0 commit comments