Skip to content

Commit

Permalink
docker: Drop redundant build and update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Apr 1, 2023
1 parent 6d717fd commit d7346bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/docker-bases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ jobs:
dockerfile: './docker/Dockerfile.cpu'
runner: ubuntu-latest

- tag: 'devitocodes/bases:cpu-icx'
arch: 'arch=icx'
version: ''
dockerfile: './docker/Dockerfile.cpu'
runner: ubuntu-latest

- tag: 'devitocodes/bases:cpu-nvc'
arch: 'arch=nvc-host'
version: ''
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/pytest-core-nompi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
pytest-ubuntu-py39-gcc9-omp,
pytest-osx-py37-clang-omp,
pytest-docker-py37-gcc-omp,
pytest-docker-py37-icc-omp,
pytest-docker-py38-icx-omp
pytest-docker-py37-intel-omp,
pytest-docker-py38-intel-omp
]
set: [base, adjoint]
include:
Expand Down Expand Up @@ -95,14 +95,14 @@ jobs:
language: "openmp"
sympy: "1.10"

- name: pytest-docker-py37-icc-omp
- name: pytest-docker-py37-intel-omp
python-version: '3.7'
os: ubuntu-22.04
arch: "icc"
language: "openmp"
sympy: "1.11"

- name: pytest-docker-py38-icx-omp
- name: pytest-docker-py38-intel-omp
python-version: '3.8'
os: ubuntu-22.04
arch: "icx"
Expand All @@ -129,15 +129,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Build docker image
if: contains(matrix.name, 'docker')
- name: Build docker image for GCC variants
if: "contains(matrix.name, 'docker') && contains(matrix.name, 'gcc')"
run: |
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.arch }}
- name: Build docker image for INTEL variants
if: "contains(matrix.name, 'docker') && contains(matrix.name, 'intel')"
run: |
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-icc
- name: Set run prefix
run: |
if [[ "${{ matrix.name }}" =~ "docker" ]]; then
echo "RUN_CMD=docker run --rm -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} --name testrun devito_img" >> $GITHUB_ENV
echo "RUN_CMD=docker run --rm -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} -e DEVITO_ARCH=${{ matrix.arch }} --name testrun devito_img" >> $GITHUB_ENV
else
echo "RUN_CMD=" >> $GITHUB_ENV
fi
Expand Down
8 changes: 0 additions & 8 deletions docker/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ ENV DEVITO_LANGUAGE="openmp"
# MPICC compiler for mpi4py
ENV MPICC=$I_MPI_ROOT/bin/mpiicc

##############################################################
# ICX image
##############################################################
FROM icc as icx

# Devito config
ENV DEVITO_ARCH="icx"

##############################################################
# Published image
##############################################################
Expand Down

0 comments on commit d7346bb

Please sign in to comment.