qgpumode

(GPU mode)

Synopsis

qgpumode -H host -g gpuid -m mode

Description

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

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 

© 2014 Adaptive Computing