Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PETSc 3.22.2 in CI #4301

Merged
merged 6 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/petsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: ./.github/workflows/check_changes.yml

test-petsc-cpu-2d:
name: GCC 2D EB PETSc@3.18.1
name: GCC 2D EB PETSc
runs-on: ubuntu-latest
needs: check_changes
if: needs.check_changes.outputs.has_non_docs_changes == 'true'
Expand All @@ -31,11 +31,12 @@ jobs:
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Build PETSc
run: |
wget -q https://github.com/petsc/petsc/archive/refs/tags/v3.18.1.tar.gz
tar xfz v3.18.1.tar.gz
cd petsc-3.18.1
sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev
wget -q https://github.com/petsc/petsc/archive/refs/tags/v3.22.2.tar.gz
tar xfz v3.22.2.tar.gz
cd petsc-3.22.2
export PETSC_DIR=${PWD}
./configure --prefix=${PWD}/petsc
./configure --prefix=${PWD}/petsc --with-fortran-bindings=no --with-x=no
make -j 4
make install
cd ../
Expand All @@ -48,7 +49,7 @@ jobs:
export CCACHE_LOGFILE=${{ github.workspace }}/ccache.log.txt
ccache -z

export AMREX_PETSC_HOME=${PWD}/petsc-3.18.1/petsc
export AMREX_PETSC_HOME=${PWD}/petsc-3.22.2/petsc
cd Tests/LinearSolvers/CellEB
make -j4 USE_MPI=TRUE USE_PETSC=TRUE DIM=2 TEST=TRUE \
CCACHE=ccache
Expand Down
2 changes: 1 addition & 1 deletion Tools/GNUMake/packages/Make.petsc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ifdef AMREX_PETSC_HOME
SYSTEM_INCLUDE_LOCATIONS += $(PETSC_ABSPATH)/include
LIBRARY_LOCATIONS += $(PETSC_ABSPATH)/lib
ifndef CRAY_PETSC_VERSION
LIBRARIES += -Wl,-rpath,$(PETSC_ABSPATH)/lib -lpetsc -llapack -lblas -lX11 -ldl
LIBRARIES += -Wl,-rpath,$(PETSC_ABSPATH)/lib -lpetsc
endif
endif

Loading