Search code examples
gcccompilationmpiintelintel-mpi

Intel MPI 2019 always using gcc version 4.9.3


Is there a way to specify the GCC version in intel MPI while I use the mpicc command to compile a program?


Solution

  • Working now.

    The make the mpicc for Intel MPI to pick a specific gcc I used the option -gcc-name=path/bin/g++.

    mpicc -gcc-name=path/bin/g++ text.cpp