summary refs log tree commit diff
path: root/doc/hooks/mpi-check-hook.section.md
blob: 586ee2cc7c2dcc8a9ce80b93463bd373287a398c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#  mpiCheckPhaseHook {#setup-hook-mpi-check}


This hook can be used to setup a check phase that
requires running a MPI application. It detects the
used present MPI implementation type and exports
the neceesary environment variables to use
`mpirun` and `mpiexec` in a Nix sandbox.


Example:

```nix
  { mpiCheckPhaseHook, mpi, ... }:

  ...

  nativeCheckInputs = [
    openssh
    mpiCheckPhaseHook
  ];
```