Skip to content

Commit

Permalink
GitHub Actions for PETSc 3.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarDiehl committed Mar 31, 2024
1 parent 9375275 commit 1ef81c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/Fortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Grid and Mesh Solver
on: [push]

env:
PETSC_VERSION: '3.20.5'
PETSC_VERSION: '3.21.0'
HOMEBREW_NO_ANALYTICS: 'ON' # Make Homebrew installation a little quicker
HOMEBREW_NO_AUTO_UPDATE: 'ON'
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK: 'ON'
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
cd petsc-${PETSC_VERSION}
./configure --with-fc=gfortran --with-cc=gcc --with-cxx=g++ \
--download-openmpi --download-fftw --download-hdf5 --download-hdf5-fortran-bindings=1 --download-zlib \
--download-openmpi --download-fftw --download-hdf5 --with-hdf5-fortran-bindings=1 --download-zlib \
--with-mpi-f90module-visibility=1
make all
Expand Down Expand Up @@ -108,8 +108,7 @@ jobs:
sudo apt-get update
sudo apt-get install \
intel-basekit \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-fortran \
intel-oneapi-openmp intel-oneapi-mkl-devel
intel-hpckit
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
Expand All @@ -128,7 +127,7 @@ jobs:
- name: PETSc - Prepare
run: |
tar -xf download/petsc-${PETSC_VERSION}.tar.gz -C .
sed -i "1800s/if not os.path.isfile(os.path.join(self.packageDir,self.configureName)):/if True:/g" \
sed -i "1802s/if not os.path.isfile(os.path.join(self.packageDir,self.configureName)):/if True:/g" \
./petsc-${PETSC_VERSION}/config/BuildSystem/config/package.py
export PETSC_DIR=${PWD}/petsc-${PETSC_VERSION}
export PETSC_ARCH=intel
Expand All @@ -143,14 +142,22 @@ jobs:

- name: PETSc - Install
run: |
mpiifx -show
cd petsc-${PETSC_VERSION}
./configure \
--with-fc=mpiifx \
--with-cc=mpiicx \
--with-cxx=mpiicpx \
--download-fftw --download-hdf5 --download-hdf5-fortran-bindings=1 --download-zlib
--download-fftw --download-hdf5 --with-hdf5-fortran-bindings=1 --download-zlib
make all
- name: PETSc - Save log
if: always()
uses: actions/upload-artifact@v4
with:
name: configure.log
path: petsc-3.21.0/configure.log

- name: DAMASK - Compile
run: |
cmake -B build/grid -DDAMASK_SOLVER=grid -DCMAKE_INSTALL_PREFIX=${PWD}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pytest
run: |
Expand Down
2 changes: 1 addition & 1 deletion PRIVATE

0 comments on commit 1ef81c4

Please sign in to comment.