Scyld ClusterWare HPC: Reference Guide | ||
---|---|---|
<< Previous | Next >> |
beomap [-h, --help] [-V, --version] [--map node list] [--all-cpus] [--all-nodes] [--np processes] [--all-local]
[--no-local] [--exclude node list]
This program retrieves a job map from the currently installed beomap scheduler. This is the same job map that would be used by an integrated application (such as beorun, mpirun, or mpprun) started with the same scheduling parameters at that instant in time.
The beomap command may be used to generate a job map for applications that do not have their own scheduler interface, in scripts, or to examine the current scheduling state of the system.
You can influence the job map either by setting environment variables or by entering command line options. Note that command-line options take precedence over the environment variable settings.
The following general command line options are available to beomap. Also see the next section, which describes the job map parameters.
Print the command usage message and exit. If -h is in the option list, all other options will be ignored.
Print the command version number and exit. Any other options will be parsed and handled.
You can influence the beomap job map either by entering command line options or by setting environment variables. Following are the available command line options, with their equivalent environment variables; note that the command line options take precedence over the environment variables.
All of the beomap job map parameters listed below can also be used directly with beorun, mpirun, and mpprun.
Specify a process map consisting of a colon-delimited list of nodes. Each node in the list indicates where one process will be assigned. The number of entries in the job map implies the number of ranks in the job.
Listing a node more than once in the list will assign multiple processes to that node. Typically, this is done to assign one process to each processor or core on a node, but this can also be used to assign more processes to a node than it has processors or cores.
The --all-cpus, --all-nodes, --np processes, --all-local, --no-local, and --exclude parameters are not specified with the --map parameter.
The equivalent environment variable is BEOWULF_JOB_MAP=node list.
Create a process map consisting of all "up" nodes, with each node number repeated to represent the number of CPUs on that node. This parameter is not specified with the --map parameter.
The equivalent environment variable is ALL_CPUS.
Create a process map consisting of all "up" nodes, with 1 CPU mapped on each of the "up" nodes. This parameter is not specified with the --map parameter.
The equivalent environment variable is ALL_NODES.
NOTE: --all-nodes and ALL_NODES do not currently work as intended; this is a known issue in ClusterWare 4.1.0. Refer to the Release Notes for suggested workarounds.
Specify the number of processes to run. The beomap command attempts to place one process per processor or core, but will assign multiple processes per processor or core if there are not enough individual processors or cores available. This parameter is not specified with the --map parameter.
The equivalent environment variable is NP=processes.
Create a process map consisting entirely of master node entries. This option eliminates everything except node -1 from the pool of candidate node numbers, thus forcing the map to use node -1 for everything. This parameter is not specified with the --map parameter.
This option is a handy shortcut for troubleshooting connectivity problems or testing on an isolated head node before running a job on a "live" cluster.
The equivalent environment variable is ALL_LOCAL.
Exclude the master in the process map. This option is essentially a syntactic shortcut for including -1 in the --exclude node list option. For MPI jobs, this option puts the "rank 0" job on a compute node instead of the master. This parameter is not specified with the --map parameter.
The equivalent environment variable is NO_LOCAL.
Do not include the listed nodes in the process map; the nodes to be excluded are stated as a colon-delimited list. This parameter is not specified with the --map parameter.
The equivalent environment variable is EXCLUDE=node list.
The environment variables have an order of priority. The BEOWULF_JOB_MAP variable acts as a "master override" for the other environment variables. If BEOWULF_JOB_MAP is not set, the following priorities apply:
|
It is an error to use NO_LOCAL and ALL_LOCAL together. If both are used, ALL_LOCAL will take precedence. |
Find the set of machines available for use:
[user@cluster ~] $ beomap --all-cpus -1:0:1:2:3:4:5:6:7:8:9:10:11:12:13:14:15 |
Create a process map to run 20 processes on a cluster with 10 idle dual-processor compute nodes:
[user@cluster user] $ beomap --np 20 -1:0:0:1:1:2:2:3:3:4:4:5:5:6:6:7:7:8:8:9 |
Select an available machine to start up an application, while handling application termination or machine failure; note that the following works only for the sh family of shells (bash):
[user@cluster user] $ while :; do export NODE=`beomap --no-local -np 1`; bpsh $NODE application-to-run; done |
Provide an explicit map to run 5 processes on node 0:
[user@cluster user] $ beomap --np 5 --map 0:0:0:0:0 |
The underlying beomap system calls pluggable schedulers, which may use arbitrary scheduling inputs. The command line options replace and delete environment variables used by the Scyld-provided default schedulers/mappers, but other schedulers are free to ignore these advisory settings. Specifically, the beomap command does not confirm that the parameters, such as --no-local, are true in the resulting job map.
<< Previous | Home | Next >> |
beoconfig | Up | beonetconf |