On Thu, Apr 16, 2009 at 05:29:14PM +0200, Francesco Pietra wrote:
> On Thu, Apr 16, 2009 at 3:04 PM, Jeff Squyres <jsquy...@cisco.com> wrote:
...
> Given my inexperience as system analyzer, I assume that I am messing
> something. Unfortunately, i was unable to discover where I am messing.
> An editor is waiting completion of calculations requested by a
> referee, and I am unable to answer.
> 
> thanks a lot for all you have tried to put me on the right road

I wonder if the confusion stems from the requirement to "source" the
intel compiler setup files in (at least) two situations:
  1. when compiling the (MPI) application
  2. when running the (MPI) application

My solution to the second has been to create - as part of the build
process for my application - a "run" script for it.  That script
sources the intel setup files, then runs the application.

Here is part of the script that runs my application:

==================================================
# If it is defined, source the intel setup script.
#
if test "x/opt/intel/Compiler/11.0/074/bin/ifortvars.sh intel64" != x ; then
    echo "setup the intel compiler with 
</opt/intel/Compiler/11.0/074/bin/ifortvars.sh intel64>"
    . /opt/intel/Compiler/11.0/074/bin/ifortvars.sh intel64
    if test -z $(echo ${LD_LIBRARY_PATH} | grep intel) ; then
        echo "Don't see intel in LD_LIBRARY_PATH=<${LD_LIBRARY_PATH}>"
        echo "you may have trouble"
    fi
fi
...
# run my program
==================================================

I am running only on the 4 cores of one machine, so this solution may
not work for MPI applications that run on multiple machines.

Hope that helps,
Douglas.

Reply via email to