nixpkgs/doc/hooks/mpi-check-hook.section.md
Markus Kowalewski 587a19e43c 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.
2023-08-22 23:27:47 +02:00

411 B

mpiCheckPhaseHook

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:

  { mpiCheckPhaseHook, mpi, ... }:

  ...

  nativeCheckInputs = [
    openssh
    mpiCheckPhaseHook
  ];