Compiling open MPI application on Windows

less than 1 minute read

When you compile OpenMPI on Windows, you should define the following preprocessor.

OMPI_IMPORTS\
OPAL_IMPORTS\
ORTE_IMPORTS

Example)\
c:\mpicxx test.cpp -DOMPI_IMPORTS -DOPAL_IMPORTS -DORTE_IMPORTS