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

compilation error with mpif90

titan001
Beginner
555 Views
hi, I tried to compile the example MPI program written in f90.
I installed intel fortran compiler 8.1 and mpi-1.2.6 on the
Opteron AMD computer.

This is the error message I got,

fortcom: Error: pi3f90.f90, line 22: Error in opening the Library module file. [MPI]
use mpi
-----^
compilation aborted for pi3f90.f90 (code 1)

Before compiling f90 program, I tested the example f77 program
with the same intel compiler, it worked fine. C program was also
good. Both are MPI programs.

Does anybody have any idea about why this happens?
Thanks!
0 Kudos
3 Replies
Steven_L_Intel1
Employee
555 Views
Did you compile the source to module mpi with the Intel Fortran compiler? The compiler is saying it can't find or doesn't understand the compiled module for mpi (mpi.mod).
0 Kudos
titan001
Beginner
555 Views
thanks!
I think the module(mpi.mod) should be included in the library
as indicated in the error message. I also tried "locate MPI.mod",
this module couldn't be found.
0 Kudos
Steven_L_Intel1
Employee
555 Views
You have to compile the Fortran source for the module. It may be that a precompiled module was provided - if so, you need to use -I to tell the compiler where to find it.
0 Kudos
Reply