pbs_mpihp.8B 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 pbs_mpihp 8B "23 October 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B pbs_mpihp
  39. \- run an MPI application in a PBS job with HP MPI
  40. .SH SYNOPSIS
  41. .B pbs_mpihp
  42. [-h <host>] [-np <number>] [<other HP mpirun options>] <program> [<args>]
  43. .B pbs_mpihp
  44. [<HP mpirun options>] -f <appfile> [-- [<extra_args>]]
  45. .B pbs_mpihp
  46. --version
  47. .SH DESCRIPTION
  48. The PBS command
  49. .B pbs_mpihp
  50. replaces the standard
  51. .I mpirun
  52. command in a PBS
  53. HP MPI job, for executing programs.
  54. .B pbs_mpihp
  55. is a front end to the HP MPI version of mpirun.
  56. When
  57. .B pbs_mpihp
  58. is invoked from a PBS job, it
  59. processes the command line arguments, then calls standard HP mpirun to
  60. actually start the MPI ranks. The ranks created are mapped onto
  61. CPUs on the vnodes allocated to the PBS job. The environment variable
  62. .B MPI_REMSH
  63. is set to
  64. .I $PBS_EXEC/bin/pbs_tmrsh.
  65. This causes
  66. the processes that are created to become part of the PBS job.
  67. The path to standard HP mpirun is found by checking to see if a link
  68. exists with the name
  69. .I "PBS_EXEC/etc/pbs_mpihp".
  70. If this link exists,
  71. it points to standard HP mpirun. If it does not exist, a call
  72. to
  73. .I "mpirun -version"
  74. is made to determine whether it is HP mpirun.
  75. If so, the call is made to "mpirun" without an absolute path.
  76. If HP mpirun cannot be found, an error is output, all temp
  77. files are cleaned up and the script exits with value 127.
  78. If
  79. .B pbs_mpihp
  80. is invoked from outside a PBS job, it passes all of
  81. its arguments directly to standard HP mpirun without further processing.
  82. .B Configuration
  83. .br
  84. When HP MPI is wrapped with pbs_mpihp, "rsh" is the default used to
  85. start the mpids. If you wish to use "ssh" or something else,
  86. be sure to set the following in $PBS_HOME/pbs_environment:
  87. .RS 5
  88. .I PBS_RSHCOMMAND=ssh
  89. .RE
  90. or put the following in the job script:
  91. .RS 5
  92. .I export PBS_RSHCOMMAND=<rsh_cmd>
  93. .RE
  94. .SH USAGE
  95. Usage is the same as for HP
  96. .I mpirun.
  97. .B pbs_mpihp <program>
  98. allows one executable to be specified.
  99. .B pbs_mpihp -f <appfile>
  100. uses an
  101. .I appfile
  102. to list multiple executables.
  103. The format is described in the HP mpirun man page. If this form
  104. is used from inside a PBS job, the file is read to determine
  105. what executables are to be run and how many processes are
  106. started for each.
  107. Executing
  108. .B pbs_mpihp
  109. with the
  110. .I -client
  111. option is not supported under PBS.
  112. .SH OPTIONS
  113. All options except the following are passed directly to HP mpirun
  114. with no modification.
  115. .IP "-client" 15
  116. Not supported.
  117. .IP "-f <appfile>"
  118. The specified
  119. .I appfile
  120. is read by
  121. .B pbs_mpihp.
  122. .IP "-h <host>" 15
  123. Ignored by
  124. .B pbs_mpihp.
  125. .IP "-l <user>"
  126. Ignored by pbs_mpihp.
  127. .IP "-np <number>" 15
  128. Specifies the
  129. .I number
  130. of processes to run on the PBS vnodes.
  131. .IP "--version" 15
  132. The
  133. .B pbs_mpihp
  134. command returns its PBS version information and exits.
  135. This option can only be used alone.
  136. .SH EXIT VALUES
  137. .IP 127 15
  138. If HP
  139. .B mpirun
  140. cannot be found
  141. .SH SEE ALSO
  142. The
  143. .B PBS Professional Administrator's Guide
  144. .LP
  145. mpirun(1)