LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Farschad Torabi (farschad_at_[hidden])
Date: 2003-09-11 06:12:09


Dear Jeff,
Some notes about your helps:
1. When I use --with-fflags='-Msecond_score', it
   messages me "--with-fflags flag is deprecated.
   Use FFLAGS" and the program halts.

2. With previously described procedure, it seems that
   everything is ok just this fact that the compiler
   is unable to find the MPI subroutines.

I will try again and if I fail I will send you some
more information. Anyhow, how about the --with-fflags and --with-FFLAGS???

Thanks
Farschad

-----Original Message-----
From: Jeff Squyres <jsquyres_at_[hidden]>
To: General LAM/MPI mailing list <lam_at_[hidden]>
Date: Thu, 11 Sep 2003 06:31:55 -0400 (EDT)
Subject: Re: LAM: Installing LAM-MPI

On Thu, 11 Sep 2003, Farschad Torabi wrote:

> I have done the following steps:
> 1. setting following variables:
>
> PGI=/urs/pgi
> LAMHOME=/usr/lam-7.0
> LAMHF77=pgi
> PATH=$PATH:/usr/lam-7.0/bin
> PATH=$PATH:/usr/lam-7.0/lib
> PATH=$PATH:/usr/lam-7.0/include
> export PGI LAMHOME PATH LAMHF77

A few notes:

- We actually recommend against setting the LAMHOME environment variable
except in very rare circumstances. From what you described above, you
shouldn't need to set it. Don't get me wrong -- setting it won't cause
any problems, but if you don't need it, you shouldn't set it, and it
eliminates one set of potential problems.

- You only need to add /usr/lam-7.0/bin in your PATH -- you don't need to
add the lib and include directories into your PATH.

> 2. configuring LAM
>
> ./configure --prefix=/usr/lam-7.0 --with-fc=pgf90 \
> --with-FFLAGS='-Msecond_underscore -g77libs' -with-rsh='ssh-x'

Two notes:

1. I think your problem may be the --with-FFLAGS -- it should actually be
--with-fflags. The switch is case-sensitive; you --with-FFLAGS switch was
probably ignored.

2. Most modern versions of ssh don't require the -x flag anymore. That
was mainly for older versions of ssh that required the use of "-x" to make
ssh *not* send a message to stderr about X forwarding. You should
probably be able to use --with-rsh=ssh (make sure you use two dashes
before "with").

> 3. make
> 4. make install
>
> now the problem is that i am not able to build and link examples that
> use MPI library.

Give the above a try and see if that fixes your problems. If it does not,
send some specific output about what happens when you try to compile/link
MPI programs, as well as the output from "laminfo" and "mpif77 -showme".

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/