⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻
字号:
			       README for MPD-2			 Ralph Butler and Rusty LuskGeneral-------MPD is a process management system for starting parallel jobs,especially MPICH jobs.  Before running a job (with mpiexec), thempd daemons must be running on each host and connected into a ring.This README explains how to do that and also test and manage the daemons after they have been started.You need to have Python version 2.2 or later installed to run the mpd.You can type    which pythonto make sure you have it installed, and     pythonto find out what your version is.  The current version can be obtainedfrom  www.python.org.Type     mpdhelpfor a list of mpd-related commands.  Each command can be run with the--help argument for usage information.How to use MPD-------------------------You can start one mpd on the current host by running   mpd &This starts a ring of one mpd.  Other mpd's join the ring by being runwith host and port arguments for the first mpd.  You can automate thisprocess by using mpdboot. Make a file with machine names in it.  This file should *not* include thelocal machine.  It will be handy to use the default, which is ./mpd.hosts .donner% cat ./mpd.hostsfoo.mcs.anl.govshakey.mcs.anl.govterra.mcs.anl.govdonner% After mpich is built, the mpd commands are in mpich2/bin, or the binsubdirectory of the install directory if you have done an install.You should put this (bin) directory in your PATH in your .cshrc or .bashrc, so that it will be picked up by the mpd's thatare started remotely:Put in .cshrc:  setenv PATH /home/you/mpich2/bin:$PATHPut in .bashrc: export PATH=/home/you/mpich2/bin:$PATHTo start some mpds, use mpdboot.  It uses the mpd.hosts file:donner% mpdboot -n 4 donner%This command starts a total of 4 daemons, one on the local machine and therest on machines in the mpd.hosts file.  You can specify another file (-f) oranother mpd command (-m).  The mpdboot command uses ssh to start the mpd oneach machine in the mpd.hosts file.You can use mpdtrace to see where your mpd's are running:donner% mpdtracedonnerfooshakeydonner% You can run something with mpdrundonner% mpdrun -np 2 hostname donner.mcs.anl.govfoo.mcs.anl.govdonner%You can run an mpich2 job:donner% mpiexec -np 10 /home/lusk/hellowHello world from process 0 of 10Hello world from process 1 of 10Hello world from process 2 of 10Hello world from process 3 of 10Hello world from process 4 of 10Hello world from process 5 of 10Hello world from process 6 of 10Hello world from process 7 of 10Hello world from process 9 of 10Hello world from process 8 of 10donner% You can take down the daemons:donner% mpdallexitdonner%If things go bad and daemons seem to be in a bad state, you can remove theUnix sockets on all the machines in mpd.hosts by doing a cleanup:donner% mpdcleanupHere is the usage information for all of the mpd commands:********************************************************************** mpdhelp The following mpd commands are available.  For usage of any specific one,invoke it with the single argument --help .mpd           start an mpd daemonmpdtrace      show all mpd's in ringmpdboot       start a ring of daemons all at oncempdringtest   test how long it takes for a message to circle the ring mpdallexit    take down all daemons in ringmpdcleanup    repair local Unix socket if ring crashed badlympdrun        start a parallel jobmpdlistjobs   list processes of jobs (-a or --all: all jobs for all users)mpdkilljob    kill all processes of a single jobmpdsigjob     deliver a specific signal to the application processes of a jobEach command can be invoked with the --help argument, which prints usageinformation for the command without running it.  ********************************************************************** mpd mpd version (0, 1, 3, 'supercomputing prerelease')usage: /home/lusk/mpich2-nov16/bin/mpd -h -p -t -n -e -d -b -i   or: /home/lusk/mpich2-nov16/bin/mpd --host --port --trace --noconsole --echo --daemon --bulletproof --idmyhosthost and port must be specified together and tell where to enter a ring;  if they are not coded, the mpd forms a stand-alone ring that other mpds  may enter latertrace yields lots of traces thru mpd routines; not generally usefulnoconsole is useful for running 2 mpds on the same machine; only one of  them can have a unix socket which a console program can connect toecho says to echo the listener port for the mpd; useful in scriptsdaemon causes mpd to run backgrounded, with no controlling ttybulletproof says to turn bulletproofing on (experimental)idmyhost specifies an alternate hostname for the host this mpd is running on.mpd.conf file must be present in home directory with read and write access  only for user, and must contain at least a line with password=<password>  ********************************************************************** mpdboot mpdboot [-h] [-f <hostsfile>] [-r <rshcmd>] [-u <user>] [-m <mpdcmd>] [-n n_to_start] Long options:  --help --file=<hostsfile> --rsh=<rshcmd> --user=<user> --mpd=<mpdcmd> --totalnum=<n_to_start> --loccons --remconsmpdboot starts one mpd locally and (n_to_start - 1) others as computed fromthe -n (--totalnum) option; at least the one local mpd will be started by default;the machines to use are specified by the --file option (default is mpd.hosts).You may find it useful to specify the full pathname of mpd on remote hosts (-r) ifthey are not in your path.The --loccons and --remcons options indicate that you do NOT want a console availableon local and remote mpds, respectively.  ********************************************************************** mpdtrace usage: mpdtrace [-l]Lists the (short) hostname of each of the mpds in the ringThe -l (ell) option shows full hostnames and listening ports  ********************************************************************** mpdallexit usage: mpdallexit (no args)causes all mpds in the ring to exit  ********************************************************************** mpdcleanup usage: mpdcleanup [-f <hostsfile>] [-r <rshcmd>] [-u <user>] [-c <cleancmd>] or   or: mpdcleanup [--file=<hostsfile>] [--rsh=<rshcmd>] [-user=<user>] [-clean=<cleancmd>]Removes the Unix socket on local (the default) and remote machinesThis is useful in case the mpd crashed badly and did not remove it, which it normally does  ********************************************************************** mpdkilljob usage: mpdkilljob  jobnum  [mpdid]  # as obtained from mpdlistjobs   or: mpdkilljob  -a jobalias      # as obtained from mpdlistjobs    mpdid is mpd contacted by mpdrun to start the job (defaults to here)  ********************************************************************** mpdlistjobs usage: mpdlistjobs [-u | --user username] [-a | --alias jobalias]  [-j | --jobid jobid]  (only use one of jobalias or jobid)lists jobs being run by an mpd ring, all by default, or filteredby user, mpd job id, or alias assigned when the job was submitted  ********************************************************************** mpdringtest usage: mpdringtest [number of loops]Times a single message going around the ring of mpds [num] times (default once)  ********************************************************************** mpdrun mpdrun for mpd version: (0, 1, 3, 'supercomputing prerelease')usage: mpdrun [args] pgm_to_execute [pgm_args]   where args may be: -a alias -np nprocs -cpm master_copgm -cpr remote_copgm -l -1       (-l means attach line labels identifying which client prints each line)       (-1 means do NOT start the first process locally)       (-a means assign this alias to the job)or:    mpdrun -f filename   where filename contains all the arguments in xml format  ********************************************************************** mpiexec mpdrun for mpd version: (0, 1, 3, 'supercomputing prerelease')usage: mpdrun [args] pgm_to_execute [pgm_args]   where args may be: -a alias -np nprocs -cpm master_copgm -cpr remote_copgm -l -1       (-l means attach line labels identifying which client prints each line)       (-1 means do NOT start the first process locally)       (-a means assign this alias to the job)or:    mpdrun -f filename   where filename contains all the arguments in xml format 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -