From: Jaume Catarineu <jaume.catarineu@econ.upf.es>
Newsgroups: comp.parallel.mpi
Subject: Re: Changing the compiler
Date: Wed, 14 Jul 1999 16:27:23 +0000
Organization: CESCA News service. Catalunya
Message-Id: <378CBA6B.C7C4BF6C@econ.upf.es>
References: <378B53C5.222FFF0@econ.upf.es> <378B81A8.670A4E7@atc.ugr.es>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------C5373F21F42522BBAB5FB443"
Xref: ukc comp.parallel.mpi:5323


This is a multi-part message in MIME format.
--------------C5373F21F42522BBAB5FB443
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> Jaume Catarineu wrote:
> >
> > Hi,
> >
> > What should I do to change the default compiler executed in mpicc? I
> > would like to use the pgcc (http://www.pgroup.com) compiler BUT, build
> > the mpi library as shared (so I must compile MPI
> > without the '--with-cc=pgcc' option.
> >
> 
> Hi:
> In LAM, mpicc is a script, $LAMHOME/bin/mpicc, which ends up calling
> 
> exec hcc -o "$@" "$@".c $lmpi
> 
> more or less. hcc is a c wrapper to call cc with all those -I and -L
> and -l (tstdio, trillium, args, t) libraries
> 
> Are you using LAM?
> 
Yes, I do.

Someone from the LAM developing team has adviced me to define the
follow environment variable:
LAMHCC=mycompiler

I've tried it inside the mpicc script but I just can get this result:
PGF90-W-0093-Type conversion of expression performed (pcluster.f: 121)
  0 inform,   1 warnings,   0 severes, 0 fatal for MAIN
Linking:
pcluster.o: In function `MAIN_':
pcluster.o(.text+0x61): undefined reference to `mpi_init_'
pcluster.o(.text+0x80): undefined reference to `mpi_comm_size_'
pcluster.o(.text+0x9f): undefined reference to `mpi_comm_rank_'
pcluster.o(.text+0x9f2): undefined reference to `mpi_recv_'
pcluster.o(.text+0xa46): undefined reference to `mpi_send_'
pcluster.o(.text+0xaae): undefined reference to `mpi_send_'
pcluster.o(.text+0xaf8): undefined reference to `mpi_send_'
pcluster.o(.text+0xb41): undefined reference to `mpi_recv_'
pcluster.o(.text+0xd09): undefined reference to `mpi_finalize_'
pcluster.o(.text+0x1083): undefined reference to `mpi_finalize_'
hf77: Conseguido

So I supose it forgets the 'lmpi' parameter.
Can I discard the hcc script and execute my compiler directly into
mpicc??

Thanks,
Jaume,

PD: Si, tienes razon! ;)
--------------C5373F21F42522BBAB5FB443
Content-Type: text/x-vcard; charset=us-ascii;
 name="jaume.catarineu.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jaume Catarineu
Content-Disposition: attachment;
 filename="jaume.catarineu.vcf"

begin:vcard 
n:Catarineu Rabell;Jaume
tel;fax:93-542-1746
tel;work:93-542-1695
x-mozilla-html:TRUE
url:enginy.upf.es
org:Universitat Pompeu Fabra;Departament d'Economia i Empresa
adr:;;Ramon Trias Fargas, 23-25;Barcelona;;08005;Catalunya (SPAIN)
version:2.1
email;internet:jaume.catarineu@econ.upf.es
title:Col.laborador de recerca
x-mozilla-cpt:;-29088
fn:Jaume Catarineu
end:vcard

--------------C5373F21F42522BBAB5FB443--

