Skip to content

Commit 623c4a4

Browse files
committed
test out CLANG github workflow
1 parent f36470d commit 623c4a4

1 file changed

Lines changed: 38 additions & 9 deletions

File tree

.github/workflows/single-platform.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,37 @@ jobs:
3535
# -e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1GCC/' config.mk
3636
# make
3737

38-
build_ICC_MPI:
38+
# build_ICC_MPI:
39+
# runs-on: ubuntu-latest
40+
41+
# steps:
42+
# - uses: actions/checkout@v4
43+
44+
# - name: Set up Spack
45+
# uses: spack/setup-spack@v2
46+
# with:
47+
# ref: develop # Spack version (examples: develop, releases/v0.23)
48+
# buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache
49+
# color: true # Force color output (SPACK_COLOR=always)
50+
# path: spack # Where to clone Spack
51+
52+
# - name: Install Intel compiler/MPI
53+
# run: |
54+
# spack install -j 4 intel-oneapi-compilers
55+
# spack install -j 4 intel-oneapi-mpi
56+
57+
# - name: Configure and Make ICC_MPI
58+
# run: |
59+
# . ./spack/share/spack/setup-env.sh
60+
# eval "$(spack load --sh intel-oneapi-compilers)"
61+
# eval "$(spack load --sh intel-oneapi-mpi)"
62+
# sed -E -i \
63+
# -e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
64+
# -e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
65+
# -e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1ICC/' config.mk
66+
# make
67+
68+
build_CLANG_MPI:
3969
runs-on: ubuntu-latest
4070

4171
steps:
@@ -49,19 +79,18 @@ jobs:
4979
color: true # Force color output (SPACK_COLOR=always)
5080
path: spack # Where to clone Spack
5181

52-
- name: Install Intel compiler/MPI
82+
- name: Install Clang compiler and OpenMPI
5383
run: |
54-
spack install -j 4 intel-oneapi-compilers
55-
spack install -j 4 intel-oneapi-mpi
84+
spack install -j 4 llvm
85+
spack install -j 4 spack install -j 4 openmpi
5686
57-
- name: Configure and Make ICC_MPI
87+
- name: Configure and Make CLANG_MPI
5888
run: |
5989
. ./spack/share/spack/setup-env.sh
60-
eval "$(spack load --sh intel-oneapi-compilers)"
61-
eval "$(spack load --sh intel-oneapi-mpi)"
90+
eval "$(spack load --sh llvm)"
91+
eval "$(spack load --sh openmpi)"
6292
sed -E -i \
6393
-e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
6494
-e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
65-
-e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1ICC/' config.mk
95+
-e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1CLANG/' config.mk
6696
make
67-

0 commit comments

Comments
 (0)