Skip to content

Commit 248f8e4

Browse files
committed
ci: added rocm gha build
1 parent 0e85021 commit 248f8e4

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed

.github/workflows/everything.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ jobs:
161161
compiler: gcc8
162162
shared: static
163163
parallel: serial
164+
- os: ubuntu20.04
165+
compiler: rocm
166+
parallel: serial
167+
constrains: build_only
164168
steps:
165169
- uses: actions/checkout@v4
166170
with:
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set(ENV{CC} gcc)
2+
set(ENV{CXX} g++)
3+
set(ENV{FC} gfortran)
4+
5+
execute_process(
6+
COMMAND "python3-config" "--prefix"
7+
OUTPUT_VARIABLE PY_ROOT
8+
OUTPUT_STRIP_TRAILING_WHITESPACE)
9+
10+
set(dashboard_cache "
11+
BUILD_TESTING:BOOL=ON
12+
ADIOS2_BUILD_EXAMPLES:BOOL=ON
13+
14+
ADIOS2_USE_BZip2:BOOL=ON
15+
ADIOS2_USE_Blosc2:BOOL=ON
16+
ADIOS2_USE_DataMan:BOOL=ON
17+
ADIOS2_USE_Fortran:BOOL=ON
18+
ADIOS2_USE_HDF5:BOOL=ON
19+
ADIOS2_USE_MPI:BOOL=OFF
20+
ADIOS2_USE_Python:BOOL=ON
21+
ADIOS2_USE_SZ:BOOL=ON
22+
ADIOS2_USE_ZeroMQ:STRING=ON
23+
ADIOS2_USE_ZFP:BOOL=ON
24+
ADIOS2_USE_Kokkos:BOOL=ON
25+
26+
Python_ROOT_DIR:PATH=${PY_ROOT}
27+
Python_FIND_STRATEGY:STRING=LOCATION
28+
Python_FIND_FRAMEWORK:STRING=FIRST
29+
30+
CMAKE_C_COMPILER_LAUNCHER=ccache
31+
CMAKE_CXX_COMPILER_LAUNCHER=ccache
32+
CMAKE_C_FLAGS:STRING=-Wall
33+
CMAKE_CXX_FLAGS:STRING=-Wall
34+
CMAKE_Fortran_FLAGS:STRING=-Wall
35+
")
36+
37+
set(CTEST_CMAKE_GENERATOR "Ninja")
38+
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}")
39+
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake)

scripts/ci/images/Dockerfile.ci-spack-ubuntu20.04-base

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
FROM ecpe4s/ubuntu20.04-runner-amd64-gcc-11.4:2023.08.01
33

44
ARG E4S_VERSION=23.08
5+
ARG EXTRA_VARIANTS
56

67
# Clone and patch spack
78
RUN cd / && \
@@ -16,9 +17,9 @@ RUN cd spack && \
1617
git apply 0001-mpich-support-ch3-sock.patch && \
1718
. /spack/share/spack/setup-env.sh && \
1819
spack mirror add E4S "https://cache.e4s.io/${E4S_VERSION}" && \
19-
export ADIOS_SPEC_NO_MPI="adios2~mpi" && \
20-
export ADIOS_SPEC_OPENMPI="adios2+mpi^openmpi" && \
21-
export ADIOS_SPEC_MPICH="adios2+mpi^mpich" && \
20+
export ADIOS_SPEC_NO_MPI="adios2~mpi${EXTRA_VARIANTS}" && \
21+
export ADIOS_SPEC_OPENMPI="adios2+mpi${EXTRA_VARIANTS}^openmpi" && \
22+
export ADIOS_SPEC_MPICH="adios2+mpi${EXTRA_VARIANTS}^mpich" && \
2223
spack config add "config:checksum:false" && \
2324
spack config add "config:build_jobs:$(nproc)" && \
2425
spack config add "concretizer:unify:true" && \

scripts/ci/images/build-rocm.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
# Build the base image
6+
docker build --rm --build-arg EXTRA_VARIANT="+rocm+kokkos^[email protected]^[email protected]" -f ./Dockerfile.ci-spack-ubuntu20.04-base -t ghcr.io/ornladios/adios2:ci-spack-ubuntu20.04-rocm .
7+
8+
# Push images to github container registry
9+
docker push ghcr.io/ornladios/adios2:ci-spack-ubuntu20.04-rocm

0 commit comments

Comments
 (0)