2

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

Sap BH
  • 71
  • 1
  • 6
  • Does it not respect the `CC` environment variable mentioned in the man page? (At least the OpenMPI version of `mpicc` mentions that.) – Peter Cordes Sep 17 '21 at 05:20
  • How to providing the CC flag to OpenMPI version of mpicc? Is it like – Sap BH Sep 17 '21 at 05:25
  • 1
    It's not a flag, it's an environment variable. In a shell command, you can set it for a command like `CC=something some_command -args` just like normal. – Peter Cordes Sep 17 '21 at 05:46

1 Answers1

1

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
Andy A.
  • 1,392
  • 5
  • 15
  • 28
Sap BH
  • 71
  • 1
  • 6