[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bgl-discuss] xlc/xlf versions of mpicc/mpif77 etc?



I think we all just invoke the compilers directly and include/link
explicitly (would be nice to have a wrapper though). Did you want a sample
makefile, or were you just curious if there was an alternative ...


-----Original Message-----
From: owner-discuss@xxxxxxxxxxxxxxx [mailto:owner-discuss@xxxxxxxxxxxxxxx]
On Behalf Of William Gropp
Sent: Wednesday, May 11, 2005 9:31 AM
To: discuss@xxxxxxxxxxxxxxx
Subject: [bgl-discuss] xlc/xlf versions of mpicc/mpif77 etc?

I had set things up so that

setenv MPICH_F77 xlf
mpif77 ...

would get you the xlf version of mpif77 (with the correct libraries and 
options), and similarly for the C, F90, and C++ compilers. This also worked 
with mpif77 -conf=xlf ... .  I find this particularly convenient because it 
makes it easy to use existing makefiles and switch between the 
compilers.  With the compiler upgrade, these have vanished.  What do people 
to to use the xl compilers now?

I also noted that the mpicc script sets the compiler flags -g -O2, which it 
should not do (IBM needs to fix this in the distributions).

Bill

William Gropp
http://www.mcs.anl.gov/~gropp 

- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.


- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.