Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28457 Discussions

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

balabi_b_
Beginner
796 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
Honored Contributor III
796 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.
0 Kudos
Steve_Lionel
Honored Contributor III
796 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.

0 Kudos
Reply