- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
ifort is working great but now I would like to compile mpi programs(those starting with "use mpi").
In order to do so I installed openmpi using fink, which is installed in the /sw tree of my machine.
Since the Makefile is already written I just type "make" and here's the output:
mkdir -p /Users/hugochief/Documents/utias/diablo/jetstream.git/.moddir
cd common; make -f Makefile
mpif90-vt -c -vt:f90 ifort -auto -r8 -O3 -tpp6 -fpp -mp -cm -openmp Common_Mod.f90
WARNING: Common_Mod.f90 was already processed
ifort: command line remark #10010: option '-mp' is deprecated and will be removed in a future release. See '-help deprecated'
ifort: command line remark #10148: option '-tp' not supported
Common_Mod.f90(16): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
------^
Common_Mod.f90(305): error #6404: This name does not have a type, and must have an explicit type. [MPI_SUCCESS]
if (ierr /= MPI_SUCCESS) then
----------------^
Common_Mod.f90(309): error #6404: This name does not have a type, and must have an explicit type. [MPI_COMM_WORLD]
call mpi_comm_size(MPI_COMM_WORLD, nProc, ierr)
-----------------------^
compilation aborted for Common_Mod.mod.F90 (code 1)
make[1]: *** [Common_Mod.o] Error 1
make: *** [update] Error 2
Therefore my question is: how do I tell ifort to fetch the proper mpi modules that lie in my /sw tree?
Thanks for any inputs,
--
Hugo Gagnon
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Was this openmpi release compiled with the intel compilers (icc, ifort, ...)
and is it on your path (there is a mpif90 on your path for sure but is the one you want?)?
the command "which mpif90 " will tell you where the mpif90 you are using is
maybe you need to (assuming you're using bash)
export PATH=:$PATH
export LD_LYBRARY_PATH=:$PATH
and is it on your path (there is a mpif90 on your path for sure but is the one you want?)?
the command "which mpif90 " will tell you where the mpif90 you are using is
maybe you need to (assuming you're using bash)
export PATH=
export LD_LYBRARY_PATH=
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