Skip to content

Commit

Permalink
Release gpaw-24.6.0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcindulak committed Oct 13, 2024
1 parent 0a13e24 commit ecb1f70
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: test the image
run: |
set -eo pipefail
docker-compose -f docker-compose.ci.yml up --exit-code-from gpaw
docker compose -f docker-compose.ci.yml up --exit-code-from gpaw
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Discover the sha by removing the @sha part and running: timeout 5 docker buildx build --pull --no-cache .
# Dockerhub used to not show the overall sha https://github.com/docker/roadmap/issues/262
FROM fedora:40@sha256:5ce8497aeea599bf6b54ab3979133923d82aaa4f6ca5ced1812611b197c79eb0
# Alternatively find the sha in Dockerhub UI https://github.com/docker/roadmap/issues/262
FROM fedora:40@sha256:d0207dbb078ee261852590b9a8f1ab1f8320547be79a2f39af9f3d23db33735e

# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETPLATFORM
Expand All @@ -13,7 +13,7 @@ RUN echo uname -m $(uname -m)
LABEL name="GPAW Openmpi" \
url="https://wiki.fysik.dtu.dk/gpaw/"

ENV GPAW_VERSION 24.1.0
ENV GPAW_VERSION 24.6.0
ENV FEDORA_RELEASE 1.fc40

RUN set -x \
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
gpaw:
image: 'gpaw-openmpi:latest'
Expand All @@ -12,6 +11,6 @@ services:
module use /usr/share/modulefiles
module load mpi/openmpi
cd /mnt
export PYTHONPATH=$MPI_PYTHON3_SITEARCH
export PYTHONPATH=$$MPI_PYTHON3_SITEARCH
export OMP_NUM_THREADS=1
mpiexec --allow-run-as-root -np 1 python3 h2.py && grep "Free energy" h2.txt
3 changes: 1 addition & 2 deletions docker-compose.myjob.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
gpaw:
image: 'marcindulak/gpaw-openmpi:latest'
Expand All @@ -12,6 +11,6 @@ services:
module use /usr/share/modulefiles
module load mpi/openmpi
cd /mnt
export PYTHONPATH=$MPI_PYTHON3_SITEARCH
export PYTHONPATH=$$MPI_PYTHON3_SITEARCH
export OMP_NUM_THREADS=1
mpiexec --allow-run-as-root -np 2 python3 h2.py && grep "Free energy" h2.txt
5 changes: 2 additions & 3 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
sut:
build: .
Expand All @@ -9,15 +8,15 @@ services:
. /etc/profile.d/modules.sh
module use /usr/share/modulefiles
module load mpi/openmpi
export PYTHONPATH=$MPI_PYTHON3_SITEARCH
export PYTHONPATH=$$MPI_PYTHON3_SITEARCH
export OMP_NUM_THREADS=1
python3 -c "import gpaw.mpi; print(gpaw.mpi.rank)"
cat <<'EOF' > h2.py
from ase import Atoms
from gpaw import GPAW, PW
h2 = Atoms('H2', [(0, 0, 0), (0, 0, 0.74)])
h2.center(vacuum=2.5)
h2.set_calculator(GPAW(xc='PBE', mode=PW(300), txt='h2.txt'))
h2.calc = GPAW(xc='PBE', mode=PW(300), txt='h2.txt')
h2.get_potential_energy()
h2.get_forces()
EOF
Expand Down
2 changes: 1 addition & 1 deletion myjob/h2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from gpaw import GPAW, PW
h2 = Atoms('H2', [(0, 0, 0), (0, 0, 0.74)])
h2.center(vacuum=2.5)
h2.set_calculator(GPAW(xc='PBE', mode=PW(300), txt='h2.txt'))
h2.calc = GPAW(xc='PBE', mode=PW(300), txt='h2.txt')
h2.get_potential_energy()
h2.get_forces()

0 comments on commit ecb1f70

Please sign in to comment.