qgpumode(1B)

πŸ“¦ version 6.1.3, in epel 9, nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

Bestie, meet qgpumode(1B) from the PBS manual β€” the little command that literally changes GPU mode. It is giving β€œflip the switch on an Nvidia GPU” energy, and honestly? Iconic. πŸ’…


✨ SYNOPSIS ✨

qgpumode -H host -g gpuid -m mode

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the tea: the qgpumode command will request a MOM to change the mode on one of its Nvidia GPUs. The GPU’s mode is changed by sending a GPU Control batch request to the batch server. No cap, that’s the whole vibe. πŸ”₯

Changing the GPU mode requires PBS Operator or Manager privilege. It also requires that Torque be configured with --enable-nvidia-gpu.

Privilege check, bestie β€” this is not a β€œjust anyone can do it” situation. You need the right PBS Operator or Manager access, and Torque has to be built/configured with --enable-nvidia-gpu. 🫢

πŸŽ€ OPTIONS πŸŽ€

  • -H host β€” Specifies the host within the cluster on which the GPU is located. The argument is the name of a host that is a member of the cluster of hosts managed by the server.
  • -g gpuid β€” Specifies the ID of the GPU.
  • -m mode β€” Specifies the new mode of the GPU. Valid Nvidia GPU modes are:
    • 0 β€” Normal mode.
    • 1 β€” COMPUTE exclusive thread mode (only one COMPUTE thread is allowed to run on the GPU).
    • 2 β€” COMPUTE prohibited mode (no COMPUTE contexts are allowed to run on the GPU).
    • 3 β€” COMPUTE exclusive process mode (only one COMPUTE process is allowed to run on the GPU). This mode is new with Nvidia driver version 270.

🌸 OPERANDS 🌸

None. Like, zero operands. Periodt. πŸ’€


😭 STANDARD ERROR 😭

The qgpumode command will write diagnostic messages to standard error for each error occurrence.


πŸ‘‘ EXIT STATUS πŸ‘‘

Upon successful processing of all the operands presented to the qgpumode command, the exit status will be a value of zero.

If the qgpumode command fails to process any operand, the command exits with a value greater than zero.


🌈 SEE ALSO 🌈

Check out pbs_mom(8B) and pbs_server(8B) β€” those are the besties in the SEE ALSO section. 🫢


Signed off from the Local source/version tag in the footer, with qgpumode(1B) energy at the very end β€” and no date printed on the footer, so that’s the whole story, bestie. πŸŽ€βœ¨

πŸ“¦ where this page comes from