You are here: Appendices > Appendix A Commands Overview > qgpumode

A.10 qgpumode

(GPU mode)

A.10.1 Synopsis

qgpumode -H host -g gpuid -m mode

A.10.2 Description

The qgpumode command specifies the mode for the GPU. This command triggers an immediate update of the pbs_server.

For additional information about options for configuring GPUs, see NVIDIA GPUs in the Moab Workload Manager Administrator Guide.

A.10.3 Options

Option Description
-H Specifies the host where the GPU is located.
-g Specifies the ID of the GPU. This varies depending on the version of the Nvidia driver used. For driver 260.x, it is 0, 1, and so on. For driver 270.x, it is the PCI bus address, i.e., 0:5:0.
-m

Specifies the new mode for the GPU:

  • 0 (Default/Shared): Default/shared compute mode. Multiple threads can use cudaSetDevice() with this device.
  • 1 (Exclusive Thread): Compute-exclusive-thread mode. Only one thread in one process is able to use cudaSetDevice() with this device.
  • 2 (Prohibited): Compute-prohibited mode. No threads can use cudaSetDevice() with this device.
  • 3 (Exclusive Process): Compute-exclusive-process mode. Many threads in one process are able to use cudaSetDevice() with this device.
qgpumode -H node01 -g 0 -m 1

This puts the first GPU on node01 into mode 1 (exclusive)

qgpumode -H node01 -g 0 -m 0

This puts the first GPU on node01 into mode 0 (shared)

Related Topics 

© 2015 Adaptive Computing