eschnett / MPI.jl

MPI wrappers for Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPI interface for the Julia language

This is a basic Julia wrapper for the portable message passing system Message Passing Interface (MPI). Inspiration is taken from mpi4py, although we generally follow the C and not the C++ MPI API. (The C++ MPI API is deprecated.)

Installing

CMake is used to piece together the MPI wrapper. Currently a shared library MPI installation for C and Fortran is required (tested with Open MPI and MPICH). To install MPI.jl using the Julia packaging system, run

Pkg.update()
Pkg.add("MPI")

Alternatively,

Pkg.clone("https://github.com/lcw/MPI.jl.git")
Pkg.build()

which will build and install the wrapper into $HOME/.julia/vX.Y/MPI.

Usage

To run a Julia script with MPI, first make sure that using MPI or import MPI is included at the top of your script. You should then be able to run the MPI job as expected, e.g., with

mpirun -np 3 julia 01-hello.jl

About

MPI wrappers for Julia

License:The Unlicense


Languages

Language:Julia 100.0%