pbsdsh(1B)
okay bestie, welcome to pbsdsh(1B) from PBS Professional πβ¨ this one is all about spreading tasks across your vnodes like confetti.
π NAME π
pbsdsh β distribute tasks to vnodes under PBS π¦
β¨ SYNOPSIS β¨
pbsdsh [-c <copies>] [-s] [-v] [-o] -- <program> [<program args>]
pbsdsh [-n <vnode index>] [-s] [-v] [-o] -- <program> [<program args>]
pbsdsh --version
π¦ DESCRIPTION π¦
The pbsdsh command lets you distribute and execute a task on each of the vnodes assigned to your job by executing (spawning) the application on each vnode. It uses the PBS Task Manager, or TM, to distribute the program on the allocated vnodes. No cap.
When you run it without the -c or the -n option, pbsdsh will spawn the program on all vnodes allocated to the PBS job. The spawns take place concurrently; all execute at (about) the same time. It's giving group project, but everyone actually shows up π
β οΈ bestie, the double dash must come after the options and before the program and arguments. The double dash is only required for Linux. iykyk.
The pbsdsh command runs one task for each line in the $PBS_NODEFILE. Each MPI rank gets a single line in the $PBS_NODEFILE, so if you are running multiple MPI ranks on the same host, you still get multiple pbsdsh tasks on that host. periodt.
πΈ Example πΈ
The following example shows the pbsdsh command inside of a PBS batch job. The options indicate that the user wants pbsdsh to run the myapp program with one argument (app-arg1) on all four vnodes allocated to the job (i.e. the default behavior).
#!/bin/sh
#PBS -l select=4:ncpus=1
#PBS -l walltime=1:00:00
pbsdsh ./myapp app-arg1
π OPTIONS π
-ccopies β The program is spawned copies times on the vnodes allocated, one per vnode, unless copies is greater than the number of vnodes. If copies is greater than the number of vnodes, it wraps around, running multiple instances on some vnodes. This option is mutually exclusive with-n. π₯-n <vnode index>β The program is spawned only on a single vnode, which is the<vnode index>-th vnode allocated. This option is mutually exclusive with-c.-oβ No obit request is made for spawned tasks. The program does not wait for the tasks to finish. lowkey detached vibes π«Ά-sβ The program is run in turn on each vnode, one after the other.-vβ Produces verbose output about error conditions and task exit status.--versionβ Thepbsdshcommand returns its PBS version information and exits. This option can only be used alone.
π OPERANDS π
programβ The first operand,program, is the program to execute. The double dash must precede the program under Linux.program argsβ Additional operands,program args, are passed as arguments to the program.
π¨ STANDARD ERROR π¨
The pbsdsh command writes a diagnostic message to standard error for each error occurrence.
π SEE ALSO π
qsub(1B), tm(3).
bye bestie! that's the whole local pbsdsh(1B) page, dated 6 May 2020 β go slay those vnodes π
β¨
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms