List Info

Thread: LAM: edit LAM wrapper -location?




LAM: edit LAM wrapper -location?
user name
2006-10-03 18:45:20
Hi
I compiled and installed LAM/MPI 7.1.2 with an Intel's
compiler version 9.1

I recently updated the compiler to 9.1.039 and it changed
the directory 
location of the compiler.

Now when I try to use the wrapper it no doubt fails.  Where
is the 
wrapper and can I just edit it?

[vanallpcurie mpi]$ mpicc hello.c -o hello
------------------------------------------------------------
-----------------
The LAM/MPI wrapper compiler was unable to find the
specified compiler
/opt/intel/cce/9.0/bin/icc in your PATH.

Note that this compiler was either specified at configure
time or in
one of many possible environment variables.  Please see the
man page
for the LAM wrapper compilers for more information.
------------------------------------------------------------
-----------------

the compiler is now at /opt/intel/cce/9.1.039/bin/icc

Stepped on my own foot I did.
Thanks,
Paul

-- 
Paul Van Allsburg       
Hope College




_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
LAM: edit LAM wrapper -location?
user name
2006-10-03 19:22:03
On Tuesday, October  3 at 02:45 PM, quoth Paul Van Allsburg:
>Now when I try to use the wrapper it no doubt fails. 
Where is the 
>wrapper and can I just edit it?

The wrapper is, unfortunately, a binary executable, so you
can’t just 
edit it.

On the other hand…

>Note that this compiler was either specified at
configure time or in
>one of many possible environment variables.  Please see
the man page
>for the LAM wrapper compilers for more information.

THAT bit tells you what you need to know. Or, to quote the
man page:

    By default, mpicc uses the C compiler that was selected
when LAM 
    was configured (with the –with-cc flag to ./configure,
or by 
    setting the environment variable CC before ./configure
was 
    invoked) as the local native C compiler, but this can be

    overridden by the LAMMPICC environment variable.

So, to use mpicc again, you can simply do this:

    export LAMMPICC=/opt/intel/cce/9.1.039/bin/icc
    mpicc -c foo.c

-- 
Kyle B. Wheeler                           Scalable Computing
Systems (1423)
Student Intern                                 Sandia
National Laboratories
kbwheelsandia.gov                                           
 505-844-7179
MS: 1319                                                    
      CSRI/237
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )