This is a flake to use Intel oneAPI MPI Library.
A working installation of Nix on Linux x86_64
- Clone this repository and run:
cd intel-mpi-nix nix develop - Compile the provided Hello World example with:
mpicc -o hello hello.c
- Run the example with:
mpirun ./hello
Alternatively, you can run the development environment directly from Github with:
nix develop github:waltermoreira/intel-mpi-nixand use the environment to compile your own sources.
Code that compiles using other MPI implementations (for example, nixpkgs.mpich) can
use this flake as a drop-in replacement.
- Add the input
intel-mpi.url = "github:Nixify-Technology/intel-mpi-nix"to your flake. - Instantiate the default package with:
mpi = intel-mpi.packages.${system}.default; - Use the package
mpias a replacement formpichor any other implementation.
- Support ARM architecture.
- Walter Moreira,
@waltermoreira - Joe Stubbs,
@joestubbs - Ian Wang,
@wangyinz
MIT