2023-10-09 19:29:22 +00:00
|
|
|
# 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, ... }:
|
2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
# ...
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
openssh
|
|
|
|
mpiCheckPhaseHook
|
|
|
|
];
|
|
|
|
}
|
2023-10-09 19:29:22 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|