mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
mpiCheckPhaseHook: add new setup hook for MPI aware check phases
Add this hook to checkPhase to allow for running MPI application in the sandbox. It detects the MPI implementations and sets the respective environment variables.
This commit is contained in:
parent
95d630c68d
commit
587a19e43c
5 changed files with 85 additions and 0 deletions
24
doc/hooks/mpi-check-hook.section.md
Normal file
24
doc/hooks/mpi-check-hook.section.md
Normal file
|
@ -0,0 +1,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 implementaion type and exports
|
||||
the neceesary environment variables to use
|
||||
`mpirun` and `mpiexec` in a Nix sandbox.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
```nix
|
||||
{ mpiCheckPhaseHook, mpi, ... }:
|
||||
|
||||
...
|
||||
|
||||
nativeCheckInputs = [
|
||||
openssh
|
||||
mpiCheckPhaseHook
|
||||
];
|
||||
```
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue