For more information on compiling with other compilers: see FAQ No 65 "Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?"
In summary, the 4 switches on the configure command line are used to specify the compiler suite:
•CC: Specifies the C compiler
•CXX: Specifies the C++ compiler
•F77: Specifies the Fortran 77 compiler
•FC: Specifies the Fortran 90 compiler
For Portland Group Compiler,
# Portland compilers # ./configure CC=pgcc CXX=pgCC F77=pgf77 FC=pgf90
For Pathscale Compilers
# Pathscale compilers # ./configure CC=pathcc CXX=pathCC F77=pathf90 FC=pathf90
For Sun Compilers
# Sun compilers # ./configure CC=cc CXX=CC F77=f77 FC=f90
Note: The Open MPI team recommends using a single compiler suite whenever possible. Unexpeced or undefined behavior can occur when you mix compiler suites in unsupported ways (e.g., mixing Fortran 77 and Fortran 90 compilers between different compiler suites is almost guaranteed not to work).
No comments:
Post a Comment