-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker: revamp base deployment #2162
Changes from 5 commits
bfe967b
ed72d78
10b8a48
83af5d0
4202291
9f608a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ on: | |
- master | ||
|
||
jobs: | ||
build: | ||
test-mpi-basic: | ||
name: pytest-mpi | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
|
@@ -25,6 +25,7 @@ jobs: | |
env: | ||
DEVITO_LANGUAGE: "openmp" | ||
DEVITO_ARCH: "gcc-9" | ||
OMP_NUM_THREADS: "1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid unnecessary thread concurency sonce this is mpi There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in retrospect, I'm not sure about this one. Don't we want to test the numerical accuracy of MPI+OpenMP tests There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the MPI+openmp is tested with the mpi examples but this is a small 2 core machine that is already oversubscribed with MPI, adding threads only make things slower for no reason There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fair enough for another day: use some kind of self-hosted runner for MPI+OpenMP build? if agree, maybe add to issue list |
||
CC: "gcc-9" | ||
CXX: "g++-9" | ||
|
||
|
@@ -52,3 +53,22 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: pytest-mpi | ||
|
||
test-mpi-docker: | ||
name: pytest-mpi | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [gcc, icx] | ||
|
||
steps: | ||
- name: Checkout devito | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build docker image | ||
run: | | ||
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.arch }} | ||
|
||
- name: Test with pytest | ||
run: | | ||
docker run --rm -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} -e OMP_NUM_THREADS=1 --name testrun devito_img pytest tests/test_mpi.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we actually need to prune everything? can we not just prune ourselves?
this might kill for example my local docker images 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not touch your images only the 'action" user one, always been there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, I was pretty sure "docker system prune" were a system-level action, that is as if it were issued by the
docker
group?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhmmm