You could also rule Ethernet (TCP) out. E.g., mpirun --mca btl self,openib ./a.out
Or, if you wanted the opposite (Ethernet/TCP, but not IB), then mpirun --mca btl self,tcp ./a.out
If an infiniband network is configured successfully, how to confirm that Open MPI is using infiniband, not other ethernet network available?