[OMPI users] A problem with 'mpiexec -launch-agent'

2010-06-13 Thread Zhang Linbo

Hi,

I'm new to OpenMPI and have encountered a problem with mpiexec.

Since I need to set up the execution environment for OpenMPI programs
on the execution nodes, I use the following command line to launch an
OMPI program:

   mpiexec -launch-agent /some_path/myscript 

The problem is: the above command works fine if I invoke 'mpiexec'
without an absolute path just like above (assuming the PATH variable
is properly set), but if I prepend an absolute path to 'mpiexec', e.g.:

   /OMPI_dir/bin/mpiexec -launch-agent /some_path/myscript 

then I get the following error message:

bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: ` PATH=/OMPI_dir/bin:$PATH ; export PATH ; 
LD_LIBRARY_PATH=/OMPI_dir/lib:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH 
; /some_path/myscript /OMPI_dir/bin/(null) --daemonize -mca ess env -mca 
orte_ess_jobid 1978662912 -mca orte_ess_vpid 1 -mca orte_ess_num_procs 2 
--hnp-uri "1978662912.0;tcp://180.0.14.12:54844;tcp://190.0.14.12:54844"'


I'd like to know what causes the above problem and how should I deal 
with it.

I want to use absolute pathname of mpiexec to avoid possible inteferences
with other MPI installations. Thanks in advance.

LB




[OMPI users] Problem with compilation : statically linked applications

2010-06-13 Thread HeeJin Kim
Dear all,

I had built openmpi-1.4.2 with:
configure CC=icc CXX=icpc F77=ifort FC=ifort
--prefix=/home/biduri/program/openmpi --enable-mpi-threads --enable-static

And I have a problem during compilation of q-chem software which uses
openmpi.


/home/biduri/program/openmpi/lib/libopen-pal.a(dlopen.o): In function
`vm_open':
loaders/dlopen.c:(.text+0xad): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
/home/biduri/qchem/par_qchem_op/ccman/ccman.a(properties.o): In function
`CalcNonRelaxedTransDipole(Spin, int, int, Spin, int, int, OPDM&, OPDM&,
double, int, signed char, _IO_FILE*, signed char, signed char)':
properties.C:(.text+0x3df8): undefined reference to
`__cxa_get_exception_ptr'
/home/biduri/qchem/par_qchem_op/ccman/ccman.a(properties.o): In function
`CalcSOCs(AlphaBetaMatr&, BlockTensor&, KMatrix&)':
properties.C:(.text+0x52fc): undefined reference to
`__cxa_get_exception_ptr'
/home/biduri/qchem/par_qchem_op/ccman/ccman.a(ccsd_calc.o): In function
`CCSD_Calc::CalculateT(BlockTensor&, BlockTensor&, MutableBlockTensor&,
MutableBlockTensor&, signed char)':
ccsd_calc.C:(.text+0x2957): undefined reference to `__cxa_get_exception_ptr'
/home/biduri/qchem/par_qchem_op/ccman/ccman.a(ccsd_calc.o): In function
`CCSD_Calc::CalcLambdaIntermed()':
ccsd_calc.C:(.text+0x4409): undefined reference to `__cxa_get_exception_ptr'


Best,
Heejin