LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: eric_at_[hidden]
Date: 2005-04-20 08:31:22


I think that I'm already doing this (with pgi 5.2-4, not 6 yet..) and gcc.

I thought that it was all about setting the environment variables before
./configure 'ing lam-mpi:

export FC=pgf90
export FFLAGS=" -fastsse -tp k8-64 -Minfo -V -g77libs "
export CC=gcc
export CFLAGS="-O3"
export CPPFLAGS="-O3"
export CXX=g++
export CXXFLAGS="-O3"
export F77=pgf77

This seems to work fine for separate fortran and c++ mpi code, but perhaps my
setup is horribly broken and I'll have to break down and buy pgcc after all...

Eric

Quoting "Jeffrey B. Layton" <laytonjb_at_[hidden]>:

> Terry Frankcombe wrote:
>
> >>>> I want to build lam-7.1.1 with gcc (FC2 system) but I want
> >>>>to have mpif77 and mpicc use the PGI 6.0 compilers. Is there
> >>>>an easy way to do this?
> >>>>
> >>>>
> >
> >Yeah, I'm backing Tim. Why on Earth would you want to do such a thing
> (unless
> >LAM doesn't build well with PGI 6, as alluded to by Ralf)?
> >
> >
>
> I tried to build LAM with PGI 6.0 - no joy. I thought about disabling
> C++ since I don't need that, but I got too lazy and gave up for the
> time being.
>
> One other avenue I haven't pursued is to build LAM using gcc and
> g77, and then use a makefile to link in the libraries and includes I
> need for my code. I'm sure there will be problems, but it's something
> else I can try.
>
> Jeff
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>