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.