Use a GPU for Analysis

This section describes how to use a GPU to accelerate analysis tasks.

To use a GPU to accelerate analysis tasks

  1. Open the Media Server configuration file in a text editor.
  2. In the [Server] section, set the following configuration parameters:

    CUDAVersion Specifies whether to enable GPU support for analysis and which CUDA version to use. Set this parameter to 10.
    GPUDeviceID

    (Optional) If the server has more than one GPU, set this parameter to the device ID of the GPU to use. You can find the device ID for each graphics card in the application log when Media Server starts. To find out which GPU device ID corresponds to which GPU, match the PCI Bus ID logged by Media Server to the PCI Bus ID output by the nvidia-smi command, which also provides the GPU name.

    For example:

    [Server]
    ...
    CUDAVersion=10
  3. Save and close the configuration file.

Verify that Media Server is Using the GPU

To determine whether Media Server is using a GPU for analysis, start Media Server and open the application log. The log should show the following after Media Server starts:

GPU devices available for use
GPU deviceID 0 (Hex PCIBusId: ..)
GPU deviceID 1 (Hex PCIBusId: ..)
GPU deviceID 2 (Hex PCIBusId: ..)
GPU deviceID 3 (Hex PCIBusId: ..)
GPU mode used for MediaServer
GPU Memory: ... bytes free ... bytes total
GPU deviceID currently used: 2 (Hex PCIBusId: ..)

If installation was unsuccessful, Media Server does not start and logs the reason to the application log.