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

ifort path issues compiling MPI

kawaisunn
Beginner
2,644 Views
Hi. I am running the most recent 32bit Ubuntu installation, and when I try to configure MPI to use ifort ($ sudo ./configure F77=ifort FC=ifort) I have a 'Could not run a simple Fortran 77 program. Aborting.' error. I added ' source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32' to ~/.bashrc and got a 'directory doesnt exist error.' I found the ifortvars.sh and used this: source /usr/bin/bin/ifortvars.sh ia32, which does invoke ifort (ifort --v returns the version). I am new to Linux and appreciate insight on where I went wrong and how to remedy it! Thanks in advance -Christopher
0 Kudos
9 Replies
TimP
Honored Contributor III
2,643 Views
It looks as if the directory chosen for your ifort installation doesn't resemble the normal (default) path. Short of removing and making a normal installation, make certain that ifort is working in the shell where you start configure. You might try giving the entire path which you would see by "which ifort," and make sure that LD_LIBRARY_PATH includes the directory where the ifort .so library files lie.
You should get a config.log which gives the full failing command so you can try to set up to make it work.
There is a link at the top of the forum including hints on installation of older versions of ifort on Ubuntu, but a current ifort would likely install automatically on recent versions of Ubuntu.
0 Kudos
kawaisunn
Beginner
2,643 Views
I am working with the parallel_studio_xe_2011_update2. I cannot seem to locate ifort.so in my directories, but I am not a grep ( or Linux) whiz... However, ifort is working in my shell at startup. I am fairly certain that I installed initially using all defaults, from my /home/Downloads folder where I untarred. Would it be to my advantage to uninstall/reinstall vs. locating the ifort.so library files?
0 Kudos
TimP
Honored Contributor III
2,643 Views
The actual library files include libifcore.so, libiomp5.so, ......
It's hard to follow generic advice, as you found out already, when you don't install your compiler in the normal place. If the custom installation location is specified during installation, the compilervars and similar scripts would be adjusted accordingly; if someone moves the directories afterwards, those scripts won't set the correct paths unless you go in and edit them.
0 Kudos
Michal_Kvasnicka
Beginner
2,643 Views
Just a few things:

1. parallel_studio_xe_2011_update2 does not install to the /opt/intel/Compiler/11.1/... as a default option!!!
2. if you move afterwards some dirctories ... I will expect serious problems
3. take a look on: http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/
4. what MPI library was used (openMPI, MPICH2)? ... I recomend Intel MPI Library.
5. and finaly, latest version of Ubuntu (11.04) is not officially supported by Intel Parallel studio XE 2011!!!

Michal
0 Kudos
kawaisunn
Beginner
2,643 Views
I am trying to use openMPI with ifort because I could not locate a free-use license for the Intel MPI (we are using this software for research at University of Idaho), but would certainly prefer it over openMPI. I uninstalled the Parallel studio XE 2011 and reinstalled only the Fortran compiler to the default /opt/intel .. directory. I added /opt/intel/bin/compilervars.sh ia32 to the end of my ~ .bashrc file, and get an:
ERROR: Unknown option 'ia32'

Syntax:
/opt/intel/bin/compilervars.sh [MKL_interface] [mod]

must be one of the following
ia32 : Set up for IA-32 target
intel64 : Set up for Intel 64 target
mic : Set up for Intel MIC target

mod (optional) - set path to MKL F95 modules

MKL_interface (optional) - MKL programming interface for intel64
Not applicable without mod
lp64 : 4 bytes integer (default)
ilp64 : 8 bytes integer

hazard@Hazard1:~$

This line gets ifort working in the shell:
source /opt/intel/composerxe-2011.5.220/bin/compilervars.sh ia32

however openMPI stops during checking the F77 compiler during configuration. The config log is showing ifort: command not found, the shell reports the F77 compiler is not working. I have also used:
source /opt/intel/composerxe-2011/bin/compilervars.sh ia32

with the same results. I found the ifort libraries and added this line to ~.bashrc:
PATH=/opt/intel/composerxe-2011.5.220/compiler/lib/ia32:$PATH

but I get the same stop when I try to configure openMPI. With ifort in the correct directory, I thought compilervars.sh would indicate the libraries and I would not need to specify them in path, but I am still on the up side of a steep learning curve.




0 Kudos
TimP
Honored Contributor III
2,643 Views
If you installed only the intel64 (x86_64) ifort, it will reject the compilervars.sh ia32, accounting I suppose for your subsequent difficulty. Most people using MPI, including OpenMPI, are using the Intel64 compiler.
0 Kudos
kawaisunn
Beginner
2,643 Views
Installed the 32 bit version, on a 32 bit OS.
0 Kudos
Ron_Green
Moderator
2,643 Views
As someone said, 11.1.046 will not work with Ubuntu 11.04. But you also say you have Composer XE 2011 Update 2, this should work.

read this http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/

and this: http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-open-mpi-with-the-intel-compilers/

and check your shell is bash:

echo $0

and from the command line, and add to your ~/.bashrc this line:

source /opt/intel/bin/compilervars.sh ia32

before you build openmpi

ron
0 Kudos
kawaisunn
Beginner
2,643 Views
The shell is bash. I got openMPI to install with ifort functionality (finally!) by specifying the /opt/intel/bin path via the openMPI configure flags. Thanks for the assistance!
0 Kudos
Reply