由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Portland fortran problem, need help!
相关主题
Fortran里怎么利用多CPU?大家为什么用beowulf?
Fortran errorP P C L Beowulf计算机群测试报告
请教Unix中怎么编译Fortun文件我的beowulf诞生了
c++,如何用cout 输出double 变量做计算买什么样的机器最好?
偶也问一fortran问题Re: [转载] Re: 做计算买什么样的机器最好?
How to write a User Interface? Beowulf Breakthroughs zz
一个matlab的问题,高手帮帮忙Execute file under a UNC path in Matlab
Re: 学校里的Beowulf Cluster要升级了convert between make
相关话题的讨论汇总
话题: pgf90话题: lfmpich话题: lmpich话题: portland话题: fortran
进入Computation版参与讨论
1 (共1页)
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****n
发帖数: 39
2
You didn't link the mpi library when make your executable file.
You need add -lfmpich -lmpich options in your makefile

【在 t**********g 的大作中提到】
: 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

t**********g
发帖数: 85
3
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 的大作中提到】
: You didn't link the mpi library when make your executable file.
: You need add -lfmpich -lmpich options in your makefile

t****n
发帖数: 39
4
When you generate those .o file, such as
skgen.o, zxssq.o and ludec.o, it's not necessary to link those mpi libraries.
But you do need it when you link all these .o files into your executable
files. So this line matters:
pgf90 -o skfit2 skgen.o zxssq.o ludec.o luelm.o uertt.o func.o diag.o myhtdi.o
myred.o mytql2.o fermi4sk.o hsort.o tnewef.o matri.o setup.o rotate.o
quadroot.o symmeg.o input.o input1.o mapk.o multatoms.o search2.o shifttrue.o
mpifake.o
Change the line following skfit2 to
skfit2

【在 t**********g 的大作中提到】
: 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

1 (共1页)
进入Computation版参与讨论
相关主题
convert between make偶也问一fortran问题
求助: Unix acc 的man pagesHow to write a User Interface?
怎样增加C语言的库函数一个matlab的问题,高手帮帮忙
如何让matlab运行在commandline的mode下面?Re: 学校里的Beowulf Cluster要升级了
Fortran里怎么利用多CPU?大家为什么用beowulf?
Fortran errorP P C L Beowulf计算机群测试报告
请教Unix中怎么编译Fortun文件我的beowulf诞生了
c++,如何用cout 输出double 变量做计算买什么样的机器最好?
相关话题的讨论汇总
话题: pgf90话题: lfmpich话题: lmpich话题: portland话题: fortran