1pbs_gpumode(3B) PBS pbs_gpumode(3B)
2
3
4
6 pbs_gpumode - change GPU mode
7
9 #include <pbs_error.h>
10 #include <pbs_ifl.h>
11
12 int pbs_gpumode(int connect, char *mom_node, int gpu_id, int gpu_mode)
13
15 Issue a batch request for the pbs_mom to change the mode on one of it's
16 Nvidia GPUs. The GPU's mode is changed by sending a GPU Control batch
17 request to the batch server.
18
19 This call requires PBS Operator or Manager privilege. It also requires
20 that Torque be configured with --enable-nvidia-gpu.
21
22 The argument, mom_node, specifies the host within the cluster on which
23 the GPU is located. The argument is the name of a host that is a member
24 of the cluster of hosts managed by the server.
25
26 The argument, gpu_id, specifies ID of the GPU on the MOM node.
27
28 The argument, gpu_mode, specifies new mode of the GPU. Valid Nvidia GPU
29 modes are:
30
31 0 - Normal mode.
32
33 1 - COMPUTE exclusive thread mode (only one COMPUTE thread is
34 allowed to run on the GPU).
35
36 2 - COMPUTE prohibited mode (no COMPUTE contexts are allowed to
37 run on the GPU).
38
39 3 - COMPUTE exclusive process mode (only one COMPUTE process is
40 allowed to run on the GPU). This mode is new with Nvidia
41 driver version 270.
42
44 qgpumode(1B)
45
47 When the batch request generated by the pbs_gpumode() function has been
48 completed successfully by a batch server, the routine will return 0
49 (zero). Otherwise, a non zero error is returned. The error number is
50 also set in pbs_errno.
51
52
53
54
55
56Local pbs_gpumode(3B)