LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Michael Sabielny (sabielny_at_[hidden])
Date: 2003-06-12 01:23:04


Am Donnerstag, 12. Juni 2003 05:23 schrieb paul reichl:
> Hi All,
>
> I am using RedHat 8 and I am trying to compile LAM
> 6.5.9.
>
> To configure LAM I did the following as root (I am
> using the bash shell),
>
> export CC=/opt/intel/compiler70/ia32/bin/icc
> export CXX=/opt/intel/compiler70/ia32/bin/icpc
> export FC=/opt/intel/compiler70/ia32/bin/ifc
> export LD_RUN_PATH=/opt/intel/compiler70/ia32/lib
>
> ./configure --prefix=/usr/local/LAM/lam-6.5.9
> --with-rsh="ssh -x"
>

Hi Paul,

maybe it's a good idea to enable ifc/icc like this with a shell-compatible
file called intel.sh somewhere in your system:
---intel.sh---
export INTELHOME=/opt/intel/compiler70
export PATH=$INTELHOME/ia32/bin:$PATH
export LD_LIBRARY_PATH=$INTELHOME/ia32/lib:$LD_LIBRARY_PATH
export MANPATH=$INTELHOME/man:$MANPATH
---intel.sh---

Copy this to /etc/profile.d and relogin completely or put a call to it into
your own .bashrc file:

source <path>/intel.sh

Then you can access ifc/icc from any location on your machine and set the
LAM-variables during configuring LAM simply with:
export CC=icc
export CXX=icc
export FC=ifc

and skip the remaining LD_RUN_PATH.

I usually spend some work to find the best set of optimising ifc/icc variables
for the given system. This one is for a Pentium4 machine:
---my config---
./configure --prefix=/opt/intel/compiler70/lam --with-cc=icc
--with-cflags="-O3 -tpp7 -xW -Xa -w -ipo -ipo_obj" --with-cxx=icc
--with-cxxflags="-O3 -tpp7 -xW -Xa -w -ipo -ipo_obj" --with-fc=ifc
--with-fflags="-O3 -tpp7 -xW -w -ipo -ipo_obj" --with-trillium --with-rpi=tcp
--with-rsh=rsh
---my config---
Yes, we are the bad guys and keep on using rsh...

Regards,
Michael

-- 
Dipl.-Ing. Michael Sabielny                            I(z)             
  Technical University of Hamburg-Harburg               *               
  Dept. of Theoretical Electrical Engineering         *   *             
  21071 Hamburg                                 +---*---+   *           
  Germany                                       | *     |     *         
    Fon: +49.40.42878.2172                   ===*=======|=======*===> z 
    Fax: +49.40.42878.2385                              |  Q(z) |       
    Web: www.tet.tu-harburg.de                          +-------+