pbsrun_wrap(8B)
π NAME π
okay so bestie, this is pbsrun_wrap(8B) β literally the general-purpose script for wrapping mpirun in pbsrun. π«Ά
β¨ SYNOPSIS β¨
pbsrun_wrap [-s] <path to actual mpirun> pbsrun.<mpirun version/flavor>
pbsrun_wrap --version
πΈ DESCRIPTION πΈ
The pbsrun_wrap script is used to wrap any of several versions of mpirun in pbsrun. It creates a symbolic link with the same path and name as the mpirun being wrapped. That link calls pbsrun, which uses pbs_attach to give MoM control of jobs. The result is transparent to the user; when mpirun is called from inside a PBS job, PBS can monitor and control the job, but when mpirun is called from outside of a PBS job, it behaves as it would normally. See the pbs_attach(8B) and pbsrun(8B) man pages.
Use pbsrun_unwrap to reverse the process.
Heads up: usingpbsrun_wrapwith Intel MPI is deprecated as of13.0.
Linux only, bestie: this is available only under Linux.
π USAGE π
Syntax:
pbsrun_wrap [-s] <path to actual mpirun> pbsrun.<mpirun version/flavor>
Any mpirun version/flavor that can be wrapped has an initialization script ending in .init, found in $PBS_EXEC/lib/MPI:
$PBS_EXEC/lib/MPI/pbsrun.<mpirun version/flavor>.init
The pbsrun_wrap script instantiates the pbsrun wrapper script as pbsrun.<mpirun version/flavor> in the same directory where pbsrun is located, and sets up the link to actual mpirun call via the symbolic link:
$PBS_EXEC/lib/MPI/pbsrun.<mpirun version/flavor>.link
For example, running:
pbsrun_wrap /opt/mpich-gm/bin/mpirun.ch_gm pbsrun.ch_gm
causes the following actions:
- Save original
mpirun.ch_gmscript:
mv /opt/mpich-gm/bin/mpirun.ch_gm
/opt/mpich/gm/bin/mpirun.ch_gm.actual
- Instantiate
pbsrunwrapper script aspbsrun.ch_gm:
cp $PBS_EXEC/bin/pbsrun $PBS_EXEC/bin/pbsrun.ch_gm
- Link
"mpirun.ch_gm"to actually call"pbsrun.ch_gm":
ln -s $PBS_EXEC/bin/pbsrun.ch_gm /opt/mpich-gm/bin/mpirun.ch_gm
- Create a link so that
"pbsrun.ch_gm"calls"mpirun.ch_gm.actual":
ln -s /opt/mpich-gm/bin/mpirun.ch_gm.actual
$PBS_EXEC/lib/MPI/pbsrun.ch_gm.link
π OPTIONS π
-sβ sets the"strict_pbs"options in the various initialization scripts (e.g.pbsrun.bgl.init,pbsrun.ch_gm.init, etc...) to1from the default0. This means that thempirunbeing wrapped bypbsrunwill only be executed if inside a PBS environment. Otherwise, the user gets the error:
Not running under PBS exiting since strict_pbs is enabled; execute only in PBS
--versionβ thepbsrun_wrapcommand returns its PBS version information and exits. This option can only be used alone.
π¦ REQUIREMENTS π¦
The mpirun being wrapped must be installed and working on all the nodes in the PBS complex.
π SEE ALSO π
pbs_attach(8B), pbsrun(8B), pbsrun_unwrap(8B)
okay thatβs the whole vibe π this pageβs footer energy is Local, dated 3 June 2020, for pbsrun_wrap(8B) β mwah, bestie π
π¦ 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