Skip to content

Commit

Permalink
Merge branch 'web-cpardiso' into 'master'
Browse files Browse the repository at this point in the history
cpardiso-container and usage

See merge request ogs/ogs!5069
  • Loading branch information
endJunction committed Aug 13, 2024
2 parents cdb3298 + 2b68ec8 commit 9dd681a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions Documentation/.vale/Vocab/ogs/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pacman
Palandri
parameteri[zs]ation
ParaView
Pardiso
Parisio
Parkhurst
partmesh
Expand Down
4 changes: 3 additions & 1 deletion scripts/ci/jobs/build-guix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ build guix:
if [[ "$CI_MERGE_REQUEST_LABELS" =~ .*ci::guix\ only.* ]]; then
guix time-machine -C scripts/guix/channels.scm -- build ogs-serial --with-source=ogs-serial=$PWD
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc --with-source=ogs-petsc=$PWD
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc-mkl --with-source=ogs-petsc-mkl=$PWD --with-commit=eigen=9000b3767770f6dd0f4cfb12f4e19c71921885a4 --without-tests=eigen --with-configure-flag=vtk=-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=OFF --with-source=vtk=https://www.vtk.org/files/release/9.3/VTK-9.3.1.tar.gz
else
guix time-machine -C scripts/guix/channels.scm -- build ogs-ssd --with-source=ogs-ssd=$PWD
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc-ssd --with-source=ogs-petsc-ssd=$PWD
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc-mkl-ssd --with-source=ogs-petsc-mkl-ssd=$PWD --with-commit=eigen=9000b3767770f6dd0f4cfb12f4e19c71921885a4 --without-tests=eigen --with-configure-flag=vtk=-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=OFF --with-source=vtk=https://www.vtk.org/files/release/9.3/VTK-9.3.1.tar.gz
fi
deploy container:
Expand All @@ -51,7 +53,7 @@ deploy container:
# keep vtk source parameter: default vtk 9.3.0 download misses
# ThirdParty/eigen/vtkeigen subdirectory. Use explicit download
# from GitHub-tag.
GUIX_ARGS="--with-commit=eigen=9000b3767770f6dd0f4cfb12f4e19c71921885a4 --without-tests=eigen --with-configure-flag=vtk=-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=OFF --with-source=vtk=https://github.com/Kitware/VTK/archive/refs/tags/v9.3.0.tar.gz"
GUIX_ARGS="--with-commit=eigen=9000b3767770f6dd0f4cfb12f4e19c71921885a4 --without-tests=eigen --with-configure-flag=vtk=-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=OFF --with-source=vtk=https://www.vtk.org/files/release/9.3/VTK-9.3.1.tar.gz"
fi
# Add openmpi package for mpirun
if [[ "$GUIX_PACKAGE" =~ .*petsc.* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/guix/channels.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name 'guix-ogs)
(url "https://gitlab.opengeosys.org/ogs/inf/guix-ogs.git")
(branch "master")
(commit "fd7a63510cac0ab7b93b174098e77e118de524cb"))
(commit "901d7522bfdb710814f26f7858fb55f57769371f"))
(channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
Expand Down
2 changes: 2 additions & 0 deletions web/content/docs/userguide/basics/container/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ Simply download an image from the latest master-branch build:

<!-- vale off -->
* [ogs-serial.squashfs](https://minio.ufz.de/ogs/public/container/ogs/master/ogs-serial.squashfs)
* [ogs-mkl.squashfs](https://minio.ufz.de/ogs/public/container/ogs/master/ogs-mkl.squashfs) (with and MKL Pardiso-support )
* [ogs-petsc.squashfs](https://minio.ufz.de/ogs/public/container/ogs/master/ogs-petsc.squashfs) (with PETSC-support)
* [ogs-petsc-mkl.squashfs](https://minio.ufz.de/ogs/public/container/ogs/master/ogs-petsc-mkl.squashfs) (with PETSC- and MKL Pardiso-support )
<!-- vale on -->

Please note that these images have `.squashfs` as the file ending. Usage is the same as with `.sif`-files.
Expand Down
4 changes: 4 additions & 0 deletions web/content/docs/userguide/blocks/linear_solvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ For most cases value below $10^{-10}$ is recommended.
## Eigen

<!-- TODO: Add description of Eigen -->

## PETSc

See [Running OGS with MPI]({{< ref "parallel_computing_mpi">}})-page for details.
18 changes: 18 additions & 0 deletions web/content/docs/userguide/features/parallel_computing_mpi.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,24 @@ An introduction and a list of PETSc KSP solvers and preconditioners can be found

<!-- TODO: At best explain the example above in more detail. This can be done by comments in the `xml`-code snippet. -->

<div class="note">

#### PETSc with Pardiso solver

If you have configured OGS (`OGS_USE_MKL=ON`) and PETSc (`--with-mkl_pardiso-dir=... --with-mkl_cpardiso-dir=...`) with MKL support then you can run the parallel Pardiso solver with .e.g.:

```xml
<petsc>
<parameters>-mat_type mpiaij
-pc_type lu
-pc_factor_mat_solver_type mkl_cpardiso</parameters>
</petsc>
```

See the [PETSc docs](https://petsc.org/release/overview/linear_solve_table/#direct-solvers) for more info on the solver settings. The [prebuilt containers]({{< relref "container" >}}#get-a-container-image) support this configuration.

</div>

### 2. Launch MPI OGS

For MPI launcher, either `mpiexec` or `mpirun` can be used to run OGS.
Expand Down

0 comments on commit 9dd681a

Please sign in to comment.