List Info

Thread: LAM: Re :Re: i got errors at compilation time




LAM: Re :Re: i got errors at compilation time
user name
2006-11-16 06:56:46
Hi Tim,

Thanks for your reply. I do not understand your last statement "you can't use ifort until you have built a copy of lam with  ifort."

For installation first i install Intel fortran compiler than i set environment variable FC=ifc and than i install lam-7.2.1 on my machine. Is it ok?

I used mpif77 for compilation but it gives me following error at mpirun time.
$mpirun -np 2 a.out

forrtl: Illegal seek
forrtl: Illegal seek
forrtl: severe (20): REWIND error, unit 5, file /dev/pts/1
Image ;           ;  PC       ;         Routine        ;    Line   ;     Source
a.out ;           ;  0000000000548E3F ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000547322 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  000000000051E59A ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004F4E64 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004F4AB4 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000504EC6 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004083C9 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004055E2 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000405276 ; Unknown        ;       Unknown  Unknown
libc.so.6    ;      0000002A95C481AE ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004051AA ; Unknown        ;       Unknown  Unknown
forrtl: severe (20): REWIND error, unit 5, file /dev/pts/1
Image ;           ;  PC       ;         Routine        ;    Line   ;     Source
a.out ;           ;  0000000000548E3F ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000547322 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  000000000051E59A ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004F4E64 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004F4AB4 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000504EC6 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004083C9 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004055E2 ; Unknown        ;       Unknown  Unknown
a.out ;           ;  0000000000405276 ; Unknown        ;       Unknown  Unknown
libc.so.6    ;      0000002A95C481AE ; Unknown        ;       Unknown  Unknown
a.out ;           ;  00000000004051AA ; Unknown        ;       Unknown  Unknown
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code. ; This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.

PID 16713 failed on node n0 (10.10.0.201) with exit status 20.
-----------------------------------------------------------------------------



tprincemyrealbox.com, General LAM/MPI mailing list wrote
Tim Prins wrote:
> Hi,
>
> It looks like you are not linking in the mpi library. You should compile your
> program with mpif77 instead of calling ifort directly. This will
> automatically add any necessary compile flags. See:
> http://www.lam-mpi.org/faq/category5.php3#question1
>
Don't forget that you can't use ifort until you have built a copy of lam
with ifort.
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/

Middle5?PARTNER=3">Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0>
LAM: Re :Re: i got errors at compilation time
user name
2006-11-16 14:30:26
ankit ashwinbhai patel wrote:
> Hi Tim,Thanks for your reply. I do not understand your
last statement "you can't use ifort until you have
built a copy of lam with  ifort."For
installation first i install Intel fortran compiler than i
set environment variable FC=ifc and than i install lam-7.2.1
on my machine. Is it ok?I used mpif77 for compilation but it
gives me following error at mpirun time.$mpirun -np 2
a.outforrtl: Illegal seekforrtl: Illegal seekforrtl: severe
(20): REWIND error, unit 5, file
/dev/pts/1Image  

Did you follow the advice you got earlier to study lam FAQ? 
You should 
read a little more of it.  A pre-built lam which you get
with a linux 
distro doesn't automatically configure itself to the
compiler you 
prefer, among those which may be present on your system.  It
would be 
expected to be configured to the gnu Fortran version chosen
by the 
distro builders.  gnu and Intel Fortran are not link
compatible, nor are 
different major versions of gnu Fortran link compatible with
each other. 
You could install from the source provided with your linux
distro, but 
it might be better to follow the advice on the lam site.  In
particular, 
that would make it easier for people to help.
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )