LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jyh-Shyong Ho (c00jsh00_at_[hidden])
Date: 2006-03-02 08:34:45


On Thu, 2 Mar 2006 21:00:09 +0800, Mars Lenjoy wrote
> it seems some conflict.
> how does the program find the right complier?
>  
> does any one told me how to do that?
> thanks in advance!

-- 
National Center High-performance Computing (http://www.nchc.org.tw/)
Hi,
We do that all the time. On our computer, for each available compiler
(intel, pgi, gnu, etc.), we build a version of lam and mpich and installed
tham in directories like /opt/lam/intel, /opt/lam/gnu, /opt/lam/pgi,
/opt/mpich/gnu, /opt/mpich/intel, and /opt/mpich/pgi seperately.
When we want to compile a program with intel compiler and use
lam environment, we set the variable PATH so that those from  /opt/lam/intel/bin
directory will be taken first during the compilation. All related  lammpi 
libraries required in the Makefile are specified with the full path.
The same lammpi environment has to be set up before running the
compiled program. Other combination of compilers and lam/mpich use the
same procedure.
Jyh-Shyong Ho, Ph.D.
Research Scientist
National Center for High Performance Comouting
Hsinchu, Taiwan, ROC