pbs_gpumode(3B)
π 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 version270. π
π¦ 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
- epel 9: torque-devel 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms