Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26736 Discussions

Is it possible to compile with intel fortran and openmpi instead of intelmpi?

balabi_b_
Beginner
233 Views

Hello, everyone

I currently working with an open source software, when compiled with gfortran and openmpi, it works. However, when compiled with intel parallel studio, it got mysterious mpiabort failure.

I think gfortran is not as fast as intel fortran, so I would like to know if there is a way to compile source with intel fortran compiler and openmpi instead of intelmpi.

But as far as I know, if I add 

. /opt/intel/parallel_studio_xe_2017.4.056/psxevars.sh intel64

to the bashrc, the mpi automatically becomes intel mpi.

I tried to disable intelmpi by renaming mpivars.sh, but then I lost mpiifort.

By the way, I am using ubuntu desktop with 8 core cpu.

 

0 Kudos
2 Replies
TimP
Black Belt
233 Views
You would build a copy of openmpi for ifort in accordance with instructions provided on the openmpi site, configured to install in its own path or with modules as you must keep your compiled objects separate from those built with another mpi. To keep Intel mpi off PATH you open a new shell without sourcing mpivars but setting up ifort PATH according to compilervars. If you wish to discuss debugging under intel mpi, the hpc cluster forum might work.
Steve_Lionel
Black Belt Retired Employee
233 Views

I recall a couple of years ago an issue with OpenMPI caused by it including in its library some old-version Intel Fortran run-time library routines. I never did get a good explanation of why that was.  Tim's suggestion of building an ifort-compatible version from sources sounds like a good approach to me.

Reply