pbs_gpumode(3B)

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

πŸ’… pbs_gpumode(3B) β€” NAME πŸ’…

okay so welcome to pbs_gpumode(3B), the PBS manual page, bestie. This one is literally pbs_gpumode β€” change GPU mode. That's the name and the whole assignment. 🫢

✨ SYNOPSIS ✨

#include <pbs_error.h>
#include <pbs_ifl.h>

int pbs_gpumode(int connect, char *mom_node, int gpu_id, int gpu_mode)

🌸 DESCRIPTION 🌸

okay so what this function does: it issues a batch request for pbs_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 pipeline. πŸ”₯

bestie, heads up: this call requires PBS Operator or Manager privilege. It also requires that Torque be configured with --enable-nvidia-gpu. so like, don't skip that config, fr fr. 🚨
  • mom_node β€” specifies the host within the cluster on which the GPU is located. This argument is the name of a host that is a member of the cluster of hosts managed by the server. πŸ“
  • gpu_id β€” specifies the ID of the GPU on the MOM node. πŸ”’
  • gpu_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. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • qgpumode(1B) β€” that's the other page you should peek at, iykyk. πŸ’–

πŸ’€ DIAGNOSTICS πŸ’€

When the batch request generated by the pbs_gpumode() function has been completed successfully by a batch server, the routine will return 0 (zero). Otherwise, a non zero error is returned. The error number is also set in pbs_errno. πŸ˜­βœ…


Cute sign-off time: source/version is Local, the page is pbs_gpumode(3B), and that footer has no date on it, so we're not gonna invent one. Bye bestie, go change that GPU mode responsibly πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from