2

I have an MPI program that runs on a computer cluster that has both ethernet and Infiniband connectivity. When I compile with mpavich2's mpicc, it automatically links to the Infiniband libraries.

Is there a way to control which network is used when compiling an mpi program?

I checked the man page for mpicc and it was not useful for this.

irritable_phd_syndrome
  • 4,631
  • 3
  • 32
  • 60
  • 3
    This is independent of `mpicc`, but on the launcher you are using to run the application. This question is probably best directed at the administrators of the system, because they know the actual installation. – Zulan Mar 17 '16 at 16:55
  • 3
    With MVAPICH2, devices are configured both when the library is compiled and when the program is executed. Refer to [the manual](http://mvapich.cse.ohio-state.edu/userguide/). – Hristo Iliev Mar 18 '16 at 14:11

1 Answers1

3

After reading about this, it seams that it depends on the MPI library used. For instance, with mvapich2 the type of interconnect is an configurable option when building the library (see the docs). For OpenMPI it appears to be a runtime option when executing mpirun (see man page of mpirun or the web docs).

irritable_phd_syndrome
  • 4,631
  • 3
  • 32
  • 60