Skip to content

Commit

Permalink
CHG: removing MPICH from PETSc to speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jul 18, 2024
1 parent 54b070a commit 2f9390b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Installling Open MPI
run: |
sudo apt-get install -y libopenmpi-dev
- name: Installing MATLAB
id: setup-matlab
uses: matlab-actions/setup-matlab@v2
Expand All @@ -28,6 +32,11 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Modify PETSc's installation script
run: |
echo "Removing mpich from PETSc installation script"
sed -i.bak '/mpich/d' $ISSM_DIR/externalpackages/petsc/install-3.21-linux.sh
- name: Install External packages
run: |
cd $ISSM_DIR/externalpackages/triangle && ./install-linux.sh
Expand All @@ -45,8 +54,8 @@ jobs:
--with-numthreads=4 \
--with-matlab-dir=${{ steps.setup-matlab.outputs.matlabroot }} \
--with-fortran-lib="-L/usr/lib/x86_64-linux-gnu -lgfortran" \
--with-mpi-include="${ISSM_DIR}/externalpackages/petsc/install/include" \
--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
--with-mpi-include="/usr/lib/x86_64-linux-gnu/openmpi/include/" \
--with-mpi-libflags="-L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi -lmpi_cxx" \
--with-petsc-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-blas-lapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-metis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
Expand Down
2 changes: 1 addition & 1 deletion externalpackages/petsc/install-3.21-andes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

## Constants
VER="3.21.2"
VER="3.21.3"

PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
Expand Down
2 changes: 1 addition & 1 deletion externalpackages/petsc/install-3.21-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

## Constants
#
VER="3.21.2"
VER="3.21.3"

PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
Expand Down
4 changes: 2 additions & 2 deletions externalpackages/petsc/install-3.21-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

## Constants
#
VER="3.21.2"
VER="3.21.3"

PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
Expand All @@ -28,7 +28,7 @@ cd ${PETSC_DIR}
--prefix="${PREFIX}" \
--PETSC_DIR="${PETSC_DIR}" \
--CFLAGS="-g -O2" --CXXFLAGS="-g -O2" --FFLAGS="-g -O2" \
--with-debugging=0 \
--with-debugging=1 \
--with-valgrind=0 \
--with-x=0 \
--with-ssl=0 \
Expand Down

0 comments on commit 2f9390b

Please sign in to comment.