Skip to content

Commit

Permalink
docker: build arm base
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Apr 24, 2024
1 parent 1646687 commit 13d0ead
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-bases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ jobs:
run: docker system prune -a -f

- name: GCC image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: './docker/Dockerfile.cpu'
push: true
target: 'gcc'
build-args: 'arch=gcc'
tags: 'devitocodes/bases:cpu-gcc'
platforms: linux/amd64,linux/arm64


#######################################################
############## Intel OneApi CPU #######################
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest-core-nompi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
pytest-ubuntu-py310-gcc10-noomp,
pytest-ubuntu-py312-gcc13-omp,
pytest-ubuntu-py39-gcc9-omp,
pytest-osx-py37-clang-omp,
pytest-osx-py312-clang-omp,
pytest-docker-py39-gcc-omp,
pytest-docker-py39-icx-omp
]
Expand Down Expand Up @@ -84,8 +84,8 @@ jobs:
language: "openmp"
sympy: "1.9"

- name: pytest-osx-py37-clang-omp
python-version: '3.7'
- name: pytest-osx-py312-clang-omp
python-version: '3.12'
os: macos-latest
arch: "clang"
language: "C"
Expand All @@ -112,7 +112,7 @@ jobs:
test-set: 'adjoint'

exclude:
- name: pytest-osx-py37-clang-omp
- name: pytest-osx-py312-clang-omp
set: adjoint

steps:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ jobs:
env:
DEVITO_ARCH: "${{ matrix.compiler }}"
DEVITO_LANGUAGE: ${{ matrix.language }}
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.11"

strategy:
# Prevent all build to stop if a single one fails
fail-fast: false
matrix:
name: [
tutos-ubuntu-gcc-py39,
tutos-osx-clang-py39,
tutos-docker-gcc-py39
tutos-ubuntu-gcc-py311,
tutos-osx-clang-py311,
tutos-docker-gcc-py311
]

include:
- name: tutos-ubuntu-gcc-py39
- name: tutos-ubuntu-gcc-py311
os: ubuntu-latest
compiler: gcc
language: "openmp"

- name: tutos-osx-clang-py39
- name: tutos-osx-clang-py311
os: macos-latest
compiler: clang
language: "C"

- name: tutos-docker-gcc-py39
- name: tutos-docker-gcc-py311
os: ubuntu-latest
compiler: gcc
language: "openmp"
Expand All @@ -72,15 +72,15 @@ jobs:
- name: Set run prefix
run: |
if [ "${{ matrix.name }}" == 'tutos-docker-gcc-py39' ]; then
if [ "${{ matrix.name }}" == 'tutos-docker-gcc-py311' ]; then
echo "RUN_CMD=docker run --rm --name testrun devito_img" >> $GITHUB_ENV
else
echo "RUN_CMD=" >> $GITHUB_ENV
fi
id: set-run

- name: Install dependencies
if: matrix.name != 'tutos-docker-gcc-py39'
if: matrix.name != 'tutos-docker-gcc-py311'
run: |
python -m pip install --upgrade pip
pip install -e .[tests,extras]
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ RUN python3 -m venv /venv && \
/venv/bin/pip install --no-cache-dir -r https://raw.githubusercontent.com/devitocodes/devito/master/requirements-nvidia.txt && \
# Install jupyter and setup nvidia configs.
/venv/bin/pip install --no-cache-dir jupyter && \
/venv/bin/jupyter serverextension enable dask_labextension && \
/venv/bin/jupyter server extension enable dask_labextension && \
rm -rf ~/.cache/pip

RUN apt-get clean && apt-get autoclean && apt-get autoremove -y && \
Expand Down

0 comments on commit 13d0ead

Please sign in to comment.