Skip to content

Commit 58bb445

Browse files
committed
Use mpicc/mpic++ in MPICH run
1 parent fe7ad38 commit 58bb445

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/ci/spack-envs/clang12_py38_mpich_h5_ad2/spack.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ spack:
4242

4343
compilers:
4444
- compiler:
45-
environment: {}
45+
environment: {MPICH_CC: /usr/lib/llvm-12/bin/clang, MPICH_CXX: /usr/lib/llvm-12/bin/clang++}
4646
extra_rpaths: []
4747
flags: {}
4848
modules: []
4949
operating_system: ubuntu22.04
5050
paths:
51-
cc: /usr/lib/llvm-12/bin/clang
52-
cxx: /usr/lib/llvm-12/bin/clang++
53-
f77: /usr/bin/gfortran
54-
fc: /usr/bin/gfortran
51+
cc: /usr/bin/mpicc
52+
cxx: /usr/bin/mpic++
53+
f77: /usr/bin/mpif77
54+
fc: /usr/bin/mpifort
5555
spec: clang@12.0.1
5656
target: x86_64
5757

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
sudo apt-get install clang-12 gfortran libmpich-dev python3
175175
sudo .github/workflows/dependencies/install_spack
176176
- name: Build
177-
env: {CC: clang-12, CXX: clang++-12, CXXFLAGS: -Werror}
177+
env: {CC: mpicc, CXX: mpic++, CXXFLAGS: -Werror, MPICH_CC: /usr/lib/llvm-12/bin/clang, MPICH_CXX: /usr/lib/llvm-12/bin/clang++}
178178
run: |
179179
cmake --version
180180
mpiexec --version

0 commit comments

Comments
 (0)