mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
fcc95ff817
This allows for correct highlighting and maybe future automatic formatting. The AST was verified to work with nixfmt only.
26 lines
431 B
Markdown
26 lines
431 B
Markdown
# 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
|
|
];
|
|
}
|
|
```
|
|
|
|
|