- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Recently purchased cluster toolkit and installed without issues. When compiling a software program (wien2k), I can compile in serial using ifort. However, when I attempt to compile in parallel, using the mkl and mpi libraries, apparently the mpif90 compiler is pointing to gfortran instead of the ifort compiler that accompanies the cluster toolkit. Is this supposed to occur? Is there a way to change this?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ben,
Quoting Ben Beeler
... apparently the mpif90 compiler is pointing to gfortran instead of the ifort compiler that accompanies the cluster toolkit. Is this supposed to occur?
Indeed, that's the expected behavior of the Intel MPI Library mpif90 script. If you look at Section 2.1 "Compiler Commands" in the Reference Manual (included in the
Hope this helps. Let us know how it goes.
Regards,
~Gergana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that if you want to use mpif90/mpicc/etc (eg for existing configure scripts/Makefiles, etc) with the Intel compilers, one need only modify environment variables to point to the appropriate compilers: eg,
export I_MPI_CC=icc
export I_MPI_CXX=icpc
export I_MPI_F77=ifort
export I_MPI_F90=ifort
for bash-type shells, or
setenv I_MPI_CC icc
setenv I_MPI_CXX icpc
setenv I_MPI_F77 ifort
setenv I_MPI_F90 ifort
for csh-type shells.
export I_MPI_CC=icc
export I_MPI_CXX=icpc
export I_MPI_F77=ifort
export I_MPI_F90=ifort
for bash-type shells, or
setenv I_MPI_CC icc
setenv I_MPI_CXX icpc
setenv I_MPI_F77 ifort
setenv I_MPI_F90 ifort
for csh-type shells.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great point! Also, if we're talking options, you can use a flag like this:
mpif90 -f90=ifort ...
This is all assuming ifort in your PATH. If not, just specify the full path when using the flag or the env variable.
Regards,
~Gergana
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page