Hi ,Thank you For your reply.Â
 but I still failed. I must add -x LD_LIBRARY_PATH
this is my All Setting ;
1) Master-Node(cuda07)Â &Â Slaves Node(cuda08) :
  Configure:
  ./configure --prefix=/root/kidd_openMPI --with-ft=cr --enable-ft-thread --with-blcr=/usr/local/BLCRÂ
  --with-blcr-libdir=/usr/local/BLCR/lib --enable-mpirun-prefix-by-default
  --enable-static --enable-shared --enable-opal-progress-threads; make ; make install;
 (2) Path && LD_PATH:
   #In /etc/profile
    ==>export PATH=$PATH:/usr/local/BLCR/bin ;
    ==>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BLCR/lib
  #In ~/.bashrc
   ==>export PATH=$PATH:/root/kidd_openMPI/bin
   ==>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/kidd_openMPI/lib
 Â
  (3) Compiler && Running:
     ==> ~/kidd_openMPI/NBody_TEST# mpicc -o TEST -DDEFSIZE=5000 \
       -DDEF_PROC=2 MPINbodyOMP.c
     ==>  root_at_cuda07:~/kidd_openMPI/NBody_TEST# mpirun -hostfile Hosts -np 2 TEST
 TEST: error while loading shared libraries: libcr.so.0: cannot open shared object file: No such file or directory
 Â
  ==> I make sure Master and Slave have same Install and same Path .
          I let slave-node using cr_restart  restart a contextfile ,the contextfile checked by Master ,so
      Blcr can work;
          but it still cannot open shared object file->libcr.so.0:
 (4) if  I pass -x LD_LIBRARY_PATH
        ( local mount )
    (4-1)My mca-params.conf(In Master )
        ==> snapc_base_store_in_place=0
                crs_base_snapshot_dir=/tmp/OmpiStore/local
                snapc_base_global_snapshot_dir=/tmp/OmpiStore/global
Â
        step 1: mpirun -hostfile Hosts -np 2 -x LD_LIBRARY_PATH -am ft-enable-cr ./TEST
         step 2: ompi-checkpoint -term Pid ( I use another command)
        step 3:Â
                  cd /tmp/OmpiStore/global
                 ==> ompi-restart   Ompi_xxxxPid.ckpt .  (all process   Only Restart on Master)
                 ==> ompi-restart   --hostfile Host Ompi_xxxxPid.ckpt .
 Error-Message:
root_at_cuda07:/tmp/OmpiStore/global#
 ompi-restart --preload -hostfile Hosts ompi_global_snapshot_8873.ckpt/
Warning: Permanently added the RSA host key for IP address '192.168.1.10' to the list of known hosts.
--------------------------------------------------------------------------
WARNING: Remote peer ([[37567,0],1]) failed to preload a file.
Exit Status: 256
Local File: /tmp/OmpiStore/global/./opal_snapshot_1.ckpt
Remote File: /tmp/OmpiStore/global/ompi_global_snapshot_8873.ckpt/0/opal_snapshot_1.ckpt
Command:
 scp -r cuda07:/tmp/OmpiStore/global/ompi_global_snapshot_8873.ckpt/0/opal_snapshot_1.ckpt \
  /tmp/OmpiStore/global/./opal_snapshot_1.ckpt
Will continue attempting to launch the process(es).
--------------------------------------------------------------------------
[cuda08:08899] Error: Unable to access the path [./opal_snapshot_1.ckpt]!
--------------------------------------------------------------------------
Error: The filename (opal_snapshot_1.ckpt) is invalid because either you have not provided a filename
      or provided an invalid filename.
      Please see --help for usage.
--------------------------------------------------------------------------
I am 0 loop=40 in #pragma time1=446.558860
^Cmpirun: killing job...
/*---------------------------------------------------------------------------------------------------------------------------------------*/
 (5)A couple solutions:
> - have the PATH and LD_LIBRARY_PATH set the same on all nodes
> - have ompi-restart pass the -x parameter to the underlying mpirun by
> using the -mpirun_opts command line switch:
> Â ompi-restart --mpirun_opts "-x LD_LIBRARY_PATH" ..
 Â
   How to Using  --mpirun_opts ?
    this is my command ==>
    ompi-restart --mpirun_opts -x LD_LIBRARY_PATH -hostfile Hosts \
    ompi_global_snapshot_8873.ckpt/
    but it is Error.
 thanks.Â
________________________________
å¯ä»¶è
ï¼ Josh Hursey <jjhursey_at_[hidden]>
æ¶ä»¶è
ï¼ Open MPI Users <users_at_[hidden]>
å¯ä»¶æ¥æï¼ 2012/4/24 (é±äº) 3:23 AM
主æ¨ï¼ Re: [OMPI users] Ompi-restart failed and process migration
On Mon, Apr 23, 2012 at 2:45 PM, kidd <q19860103_at_[hidden]> wrote:
> Hi ,Thank you For your reply.
>
> I have some problemsï¼
> (1)
> Now ,In the my platform , all nodes have the same path and LD_LIBRARY_PATH.
> Â I set in .bashrc
> /--------------------------------------------------------------------------------/
> #BLCR
> export PATH=$PATH:/usr/local/BLCR/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BLCR/lib
> #openMPI
> export PATH=$PATH:/root/kidd_openMPI/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/kidd_openMPI/lib
> /-------------------------------------------------------------------------------------------/
> but ,when I running mpirun , I have to add " -x LD_LIBRARY_PATH" ,or
> it can't run
>  example: mpirun -hostfile hosts -np 2 ./TEST .
> Â Error Message==>
> ./TEST: error while loading shared libraries: libcr.so.0: cannot open shared
> object file: No such file or directory
It sounds like something is still not quite right with your
environment and system setup. If you have set the PATH and
LD_LIBRARY_PATH appropriately on all nodes then you should not have to
pass the "-x LD_LIBRARY_PATH" option to mpirun. Additionally, the
error you are seeing is from BLCR. That error seems to indicate that
BLCR is not installed correctly on all nodes.
Some things to look into (in this order):
1) Make sure that you have BLCR and Open MPI installed in the same
location on all machines.
2) Make sure that BLCR works on all machines by checkpointing and
restarting a single process program
3) Make sure that Open MPI works on all machines -without-
checkpointing, and without passing the -x option.
4) Checkpoint/restart an MPI job
>  (2) BLCR need to unify linux-kernel of all the Node ?
>       Now ,I reset all Node.(using Ubuntu 10.04)
I do not understand what you are trying to ask here. Please rephrase.
> Â (3)
>    Now , My porgram using DLL . I implements some DLL ,MPI-Program
> calls DLLs .
>      Ompi can check/Restart Program contains DLL ?
I do not understand what you are trying to ask here. Please rephrase.
-- Josh
> ________________________________
>
> ________________________________
> å¯ä»¶è
ï¼ Josh Hursey <jjhursey_at_[hidden]>
> æ¶ä»¶è
ï¼ Open MPI Users <users_at_[hidden]>
> å¯ä»¶æ¥æï¼ 2012/4/23 (é±ä¸) 10:51 PM
> 主æ¨ï¼ Re: [OMPI users] Ompi-restart failed and process migration
>
> I wonder if the LD_LIBRARY_PATH is not being set properly upon
> restart. In your mpirun you pass the '-x LD_LIBRARY_PATH'.
> ompi-restart will not pass that variable along for you, so if you are
> using that to set the BLCR path this might be your problem.
>
> A couple solutions:
> - have the PATH and LD_LIBRARY_PATH set the same on all nodes
> - have ompi-restart pass the -x parameter to the underlying mpirun by
> using the -mpirun_opts command line switch:
> Â ompi-restart --mpirun_opts "-x LD_LIBRARY_PATH" ...
>
> Yes. ompi-restart will let you checkpoint a process on one node and
> restart it on another. You will have to restart the whole application
> since the ompi-migration operation is not available in the 1.5 series.
>
> -- Josh
>
> On Sat, Apr 21, 2012 at 4:11 AM, kidd <q19860103_at_[hidden]> wrote:
>> Hi all,
>> I have Some problems,I wana check/Restart Multiple process on 2 node.
>>
>>Â My environment:
>>Â BLCR= 0.8.4Â Â , openMPI= 1.5.5Â , OS = ubuntu 11.04
>> I have 2 Node :
>> Â N05(Master ,it have NFS shared file system),N07(slave
>>Â ,mount Master-Node).
>>
>>Â My configure format=./configure --prefix=/root/kidd_openMPI
>> --with-ft=cr --enable-ft-thread --with-blcr=/usr/local/BLCR
>>Â --with-blcr-libdir=/usr/local/BLCR/lib --enable-mpirun-prefix-by-default
>>Â --enable-static --enable-shared --enable-opal-multi-threads;
>>
>> I had also set ~/.openmpi/mca-params.conf->
>> Â Â Â crs_base_snapshot_dir=/root/kidd_openMPI/Tmp
>> Â Â Â snapc_base_global_snapshot_dir=/root/kidd_openMPI/checkpoints.
>>
>> the dir->kidd_openMPI is my nfs shared dir.
>>
>> Â My Command :
>>Â 1. mpicc -o TEST -DDEFSIZE=3000 -DDEF_PROC=2 -fopenmp MPIMatrix.c
>>
>>Â Â 2. mpirun -hostfile Hosts -am ft-enable-cr -x LD_LIBRARY_PATH
>>Â Â Â -np 2 ./TEST .
>>
>>Â I can restart process-0 on Master,but process-1 on N07 was failed.
>>
>>Â I checked my Node,it does not install the prelink,
>>Â so the error(restart-failed) is caused by other reasons.
>>
>>Â Error Message-->
>>
>> --------------------------------------------------------------------------
>>Â Â root_at_cuda05:~/kidd_openMPI/checkpoints#
>>Â ompi-restart -hostfile Hosts ompi_global_snapshot_2892.ckpt/
>>
>> --------------------------------------------------------------------------
>>Â Â Â Error: BLCR was not able to restart the process because exec failed.
>>Â Â Â Â Check the installation of BLCR on all of the machines in your
>>Â Â Â Â system. The following information may be of help:
>>Â Â Return Code : -1
>>Â Â BLCR Restart Command : cr_restart
>>Â Â Restart Command Line : cr_restart
>>Â /root/kidd_openMPI/checkpoints/ompi_global_snapshot_2892.ckpt/0/
>>Â opal_snapshot_1.ckpt/ompi_blcr_context.2704
>>
>> --------------------------------------------------------------------------
>>
>> --------------------------------------------------------------------------
>>Â Error: Unable to obtain the proper restart command to restart from the
>>Â Â Â Â Â Â Â checkpoint file (opal_snapshot_1.ckpt). Returned -1.
>>Â Â Â Â Â Â Â Check the installation of the blcr checkpoint/restart service
>>Â Â Â Â Â Â Â on all of the machines in your system.
>>
>> ###########################################################################
>>Â problem 2: I wana let MPI-process can migration to another Node.
>>     if Ompi-Restart Multiple-Node can be successful.
>>Â Â Â Â Â Can restart in another new node, rather than the original node?
>>Â Â Â Â Â Â Â Â Â Â Â Â example:
>>Â Â Â Â Â checkpoint (node1,node2,node3),then restart(node1,node3,node4).
>>Â Â Â Â Â or just restart(node1,node3(2-process) ).
>>
>> Â Â Please help me , thanks .
>>
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --
> Joshua Hursey
> Postdoctoral Research Associate
> Oak Ridge National Laboratory
> http://users.nccs.gov/~jjhursey
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Joshua Hursey
Postdoctoral Research Associate
Oak Ridge National Laboratory
http://users.nccs.gov/~jjhursey
_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users
|