Skip to content

Running HPX on an MPI Cluster

Parsa Amini edited this page Feb 20, 2019 · 1 revision

HPX comes with a Parcelport backend that is communicating via MPI. This has the advantage that HPX is now usable on any commodity cluster without special handling of hostnames or similar and the most appropriate networking implementation will then be chosen by the MPI implementation. Just start your HPX application through mpirun/mpiexec.

Compiling

In order to compile HPX with the MPI Parcelport enabled, simply call cmake with -DHPX_WITH_PARCELPORT_MPI=On. Cmake will then detect the compile and link flags automatically. If that fails, you need to set MPI_CXX_COMPILER and MPI_C_COMPILER to point to the mpi compiler wrappers.

Running

Run your application with mpirun <mpi parameters> /path/to/hpx/application <application parameters>. HPX automatically detects if it has been started in an MPI environment.

Clone this wiki locally