about summary refs log tree commit diff
path: root/nixpkgs/doc/hooks/mpi-check-hook.section.md
blob: c182c4cc61958307b504133714576e820851763f (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
25
#  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
    ];
  }
```