t**********g 发帖数: 85 | 1 I am trying to compile a parallel fortran package in a beowulf cluster,
my compiler is Portland Fortran90. I got a very strange problem, following is
error message, does anybody know what's the problem?
make
pgf90 -O -lfmpich -lmpich skgen.f -c
pgf90 -O -lfmpich -lmpich zxssq.f -c
pgf90 -O -lfmpich -lmpich ludec.f -c
pgf90 -O -lfmpich -lmpich luelm.f -c
pgf90 -O -lfmpich -lmpich uertt.f -c
pgf90 -O -lfmpich -lmpich func.f -c
pgf90 -O -lfmpich |
|
t**********g 发帖数: 85 | 2 Thank you for your reply. However, I think I linked mpi library. See the
message from making executable file
pgf90 -O -lfmpich -lmpich skgen.f -c
pgf90 -O -lfmpich -lmpich zxssq.f -c
pgf90 -O -lfmpich -lmpich ludec.f -c
Is this the correct way to link?
The makefile which is related:
SHELL=/bin/csh
#
CFT= pgf90
LDR= pgf90
# On IBM set all constants to double precision (Alpha does this automatically)
FFLAGS = -O -lfmpich -lmpich
# FFLAGS = -O -L/usr/pgi/linux86/lib/libpgf90.a
# FFL |
|
t****n 发帖数: 39 | 3 You didn't link the mpi library when make your executable file.
You need add -lfmpich -lmpich options in your makefile |
|