-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap to Spack and matrix-based GHA for more reliability
- Loading branch information
1 parent
5975281
commit 46f30d1
Showing
4 changed files
with
111 additions
and
120 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,53 @@ | ||
version: "3.9" | ||
|
||
x-fenix: &fenix | ||
build: &fenix-build | ||
context: ./ | ||
dockerfile: .github/Dockerfile | ||
args: | ||
OPENMPI_REPO: open-mpi/ompi | ||
OPENMPI_VERS_PREFIX: tags | ||
OPENMPI_VERS: v5.0.0rc10 | ||
#Caches should be manually scoped, or they'll conflict. | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=default | ||
cache-to: | ||
- type=gha,scope=default,mode=max | ||
|
||
services: | ||
#fenix_ompi_5rc10: | ||
# <<: *fenix | ||
# image: "fenix:ompi_5rc10" | ||
# build: | ||
# <<: *fenix-build | ||
# x-bake: | ||
# cache-from: | ||
# - type=gha,scope=ompi_5rc10 | ||
# cache-to: | ||
# - type=gha,scope=ompi_5rc10,mode=max | ||
|
||
fenix_ompi_5: | ||
<<: *fenix | ||
image: "fenix:ompi_5" | ||
bootstrap: | ||
image: "local/bootstrap" | ||
build: | ||
<<: *fenix-build | ||
dockerfile_inline: | | ||
FROM spack/ubuntu-focal:0.21.3 | ||
VOLUME /configs | ||
ARG ompi_version | ||
ENV ompi_version=$$ompi_version | ||
CMD cp /configs/spack.yaml . && \ | ||
spack -e . add openmpi@$${ompi_version} && \ | ||
spack -e . containerize >/configs/spack.Dockerfile | ||
args: | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=v5.0.x | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=ompi_5 | ||
cache-to: | ||
- type=gha,scope=ompi_5,mode=max | ||
|
||
fenix_ompi_main: | ||
<<: *fenix | ||
image: "fenix:ompi_main" | ||
ompi_version: main | ||
no_cache: true | ||
pull_policy: build | ||
volumes: | ||
- .github/:/configs | ||
|
||
env: | ||
image: "local/env" | ||
build: | ||
<<: *fenix-build | ||
args: | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=main | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=ompi_main | ||
cache-to: | ||
- type=gha,scope=ompi_main,mode=max | ||
|
||
fenix_icldisco_latest: | ||
<<: *fenix | ||
image: "fenix:icldisco_latest" | ||
# Generated by spack in a previous workflow step | ||
dockerfile: .github/spack.Dockerfile | ||
depends_on: | ||
bootstrap: | ||
condition: service_completed_successfully | ||
required: true | ||
pull_policy: build | ||
|
||
|
||
fenix: | ||
image: "local/fenix" | ||
build: | ||
<<: *fenix-build | ||
args: | ||
- OPENMPI_REPO=icldisco/ompi | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=ulfm/latest | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=icldisco_latest | ||
cache-to: | ||
- type=gha,scope=icldisco_latest,mode=max | ||
|
||
#fenix_icldisco_experimental: | ||
# <<: *fenix | ||
# image: fenix/icldisco | ||
# build: | ||
# <<: *fenix-build | ||
# args: | ||
# - OPENMPI_REPO=icldisco/ompi | ||
# - OPENMPI_VERS_PREFIX=heads | ||
# - OPENMPI_VERS=ulfm/experimental | ||
dockerfile_inline: | | ||
FROM local/env | ||
COPY . /fenix | ||
RUN . /opt/spack-environment/activate.sh && \ | ||
mkdir -p /fenix/build && \ | ||
rm -r /fenix/build/* && \ | ||
cd /fenix/build && \ | ||
cmake /fenix \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_C_COMPILER=mpicc \ | ||
-DFENIX_EXAMPLES=ON \ | ||
-DFENIX_TESTS=ON \ | ||
-DMPIEXEC_PREFLAGS="--allow-run-as-root;--map-by;:oversubscribe" && \ | ||
make -j | ||
WORKDIR /fenix/build | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["ctest", "--output-on-failure"] | ||
pull_policy: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spack: | ||
packages: | ||
openmpi: | ||
variants: +internal-hwloc +internal-libevent +internal-pmix | ||
concretizer: | ||
unify: true | ||
reuse: true | ||
|
||
container: | ||
format: docker | ||
strip: false | ||
images: | ||
os: ubuntu:22.04 | ||
spack: latest | ||
os_packages: | ||
build: | ||
- build-essential | ||
- autotools-dev | ||
- libevent-dev | ||
- pkg-config | ||
- python3 | ||
- m4 | ||
- autoconf | ||
- automake | ||
- libtool | ||
- flex | ||
- git | ||
- zlib1g-dev | ||
- openssh-server | ||
- libperl-dev | ||
- pkg-config | ||
- numactl | ||
final: | ||
- build-essential | ||
- cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters