2023-08-02 21:38:51 +02: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
|
2023-09-28 18:53:53 +02:00
|
|
|
used present MPI implementation type and exports
|
2023-08-02 21:38:51 +02:00
|
|
|
the neceesary environment variables to use
|
|
|
|
`mpirun` and `mpiexec` in a Nix sandbox.
|
|
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```nix
|
|
|
|
{ mpiCheckPhaseHook, mpi, ... }:
|
2024-03-27 19:10:27 +01:00
|
|
|
{
|
|
|
|
# ...
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
openssh
|
|
|
|
mpiCheckPhaseHook
|
|
|
|
];
|
|
|
|
}
|
2023-08-02 21:38:51 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|