pbsdsh.1B 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbsdsh 1B "13 October 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B pbsdsh
  39. \- distribute tasks to vnodes under PBS
  40. .SH SYNOPSIS
  41. .B pbsdsh
  42. [-c <copies>] [-s] [-v] [-o] -- <program> [<program args>]
  43. .br
  44. .B pbsdsh
  45. [-n <vnode index>] [-s] [-v] [-o] -- <program> [<program args>]
  46. .br
  47. .B pbsdsh
  48. --version
  49. .SH DESCRIPTION
  50. The
  51. .B pbsdsh
  52. command allows you to distribute and execute a task on each of the vnodes
  53. assigned to your job by executing (spawning) the application on each
  54. vnode. The
  55. .B pbsdsh
  56. command uses the PBS Task Manager, or TM, to distribute the program on
  57. the allocated vnodes.
  58. When run without the
  59. .I -c
  60. or the
  61. .I -n
  62. option,
  63. .B pbsdsh
  64. will spawn the program
  65. on all vnodes allocated to the PBS job. The spawns take place concurrently;
  66. all execute at (about) the same time.
  67. Note that the double dash must come after the options and before the
  68. program and arguments. The double dash is only required for Linux.
  69. The
  70. .B pbsdsh
  71. command runs one task for each line in the $PBS_NODEFILE. Each MPI rank
  72. gets a single line in the $PBS_NODEFILE, so if you are running multiple
  73. MPI ranks on the same host, you still get multiple
  74. .B pbsdsh
  75. tasks on that host.
  76. .B Example
  77. .br
  78. The following example shows the
  79. .B pbsdsh
  80. command inside of a PBS batch job. The options indicate that the user wants
  81. .B pbsdsh
  82. to run the myapp program with one argument (app-arg1) on all four vnodes
  83. allocated to the job (i.e. the default behavior).
  84. .RS 5
  85. #!/bin/sh
  86. .br
  87. #PBS -l select=4:ncpus=1
  88. .br
  89. #PBS -l walltime=1:00:00
  90. pbsdsh ./myapp app-arg1
  91. .RE
  92. .SH OPTIONS
  93. .IP "-c copies"
  94. The program is spawned
  95. .I copies
  96. times on the vnodes allocated, one per vnode, unless
  97. .I copies
  98. is greater than the number of vnodes.
  99. If
  100. .I copies
  101. is greater than the number of vnodes,
  102. it wraps around, running multiple instances on some vnodes.
  103. This option is mutually exclusive with
  104. .I -n.
  105. .IP "-n <vnode index>"
  106. The program is spawned only on a single vnode, which is the
  107. .I vnode index -th
  108. vnode allocated. This option is mutually exclusive with
  109. .I -c.
  110. .IP -o
  111. No obit request is made for spawned tasks. The program does not wait for
  112. the tasks to finish.
  113. .IP -s
  114. Te program is run in turn on each vnode, one after the other.
  115. .IP -v
  116. Produces verbose output about error conditions and task exit status.
  117. .IP --version
  118. The
  119. .B pbsdsh
  120. command returns its PBS version information and exits.
  121. This option can only be used alone
  122. .SH OPERANDS
  123. .IP program
  124. The first operand,
  125. .I program ,
  126. is the program to execute. The double dash must precede the
  127. .I program
  128. under Linux.
  129. .LP
  130. .IP "program args"
  131. Additional operands,
  132. .I program args ,
  133. are passed as arguments to the
  134. .I program.
  135. .SH STANDARD ERROR
  136. The
  137. .B pbsdsh
  138. command writes a diagnostic message to standard error for
  139. each error occurrence.
  140. .SH SEE ALSO
  141. The
  142. .B PBS Professional User's Guide,
  143. the
  144. .B PBS Professional Administrator's Guide,
  145. qsub(1B), tm(3).