Skip to content

Commit f36470d

Browse files
committed
test out ICC github workflow
1 parent 2afe125 commit f36470d

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

.github/workflows/single-platform.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@ on:
77
branches: [ "main", "dane_dev" ]
88

99
jobs:
10+
# build_GCC_MPI:
11+
# runs-on: ubuntu-latest
12+
13+
# steps:
14+
# - uses: actions/checkout@v4
15+
16+
# - name: Set up Spack
17+
# uses: spack/setup-spack@v2
18+
# with:
19+
# ref: develop # Spack version (examples: develop, releases/v0.23)
20+
# buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache
21+
# color: true # Force color output (SPACK_COLOR=always)
22+
# path: spack # Where to clone Spack
23+
24+
# - name: Install OpenMPI
25+
# run: |
26+
# spack install -j 4 openmpi
27+
28+
# - name: Configure and Make GCC_MPI
29+
# run: |
30+
# . ./spack/share/spack/setup-env.sh # setup spack shell env
31+
# eval "$(spack load --sh openmpi)" # load into current shell
32+
# sed -E -i \
33+
# -e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
34+
# -e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
35+
# -e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1GCC/' config.mk
36+
# make
37+
1038
build_ICC_MPI:
1139
runs-on: ubuntu-latest
1240

@@ -21,17 +49,19 @@ jobs:
2149
color: true # Force color output (SPACK_COLOR=always)
2250
path: spack # Where to clone Spack
2351

24-
- name: Install OpenMPI
52+
- name: Install Intel compiler/MPI
2553
run: |
26-
spack install -j 4 openmpi
54+
spack install -j 4 intel-oneapi-compilers
55+
spack install -j 4 intel-oneapi-mpi
2756
28-
- name: Configure and Make GCC_MPI
57+
- name: Configure and Make ICC_MPI
2958
run: |
30-
. ./spack/share/spack/setup-env.sh # setup spack shell env
31-
eval "$(spack load --sh openmpi)" # load into current shell
59+
. ./spack/share/spack/setup-env.sh
60+
eval "$(spack load --sh intel-oneapi-compilers)"
61+
eval "$(spack load --sh intel-oneapi-mpi)"
3262
sed -E -i \
3363
-e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
3464
-e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
35-
-e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1GCC/' config.mk
65+
-e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1ICC/' config.mk
3666
make
3767

0 commit comments

Comments
 (0)