Open topic with navigation

# Install HPE Media Server with GPU Support

HPE Media Server can use a graphics card (GPU) to perform some processing tasks. Using a GPU rather than the CPU can significantly increase the speed of training and analysis tasks that use Convolutional Neural Networks.

Tasks that use Convolutional Neural Networks are:

- Image classification (when you use a Convolutional Neural Network classifier).
- Face demographics analysis.
- Face recognition.
- Object detection.
- Vehicle make recognition.
- Number plate recognition.

## Install HPE Media Server

Before starting, ensure that your server has a GPU that meets the system requirements.

HPE Media Server with GPU support is available only on the Linux x86-64 platform and is supported only with Ubuntu 14.04. You can download HPE Media Server with GPU support from the Big Data Download Center. The HPE Media Server executable installed by the IDOL Server installer does not include GPU support.

Note: HPE recommends that you install a headless version of Ubuntu 14.04.

To install HPE Media Server, run the installation program and follow the on-screen instructions.

## Install the NVIDIA CUDA Driver

To use a GPU to accelerate processing, you must install the NVIDIA CUDA driver version 7.5, which is included in the CUDA Toolkit version 7.5.

The following procedure explains how to install the NVIDIA CUDA driver. For more detailed information about how to install the driver, refer to the NVIDIA CUDA driver installation instructions.

To install the NVIDIA CUDA driver

1. Verify that your machine is running a supported operating system. Run the following command:

       lsb_release -a

   The operating system is described:

       Distributor ID: Ubuntu
       Description:    Ubuntu 14.04.3 LTS
       Release:        14.04
       Codename:       trusty

2. Verify that a CUDA-compatible card is available. Run the following command:

       lspci | grep -i nvidia | grep -i VGA

   This should produce output similar to:

       0f:00.0 VGA compatible controller: NVIDIA Corporation GF106GL [Quadro 2000] (rev a1)
       28:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K6000] (rev a1)

   You must verify that one or more of these GPUs support CUDA version 3.0 to 5.0. In the previous example, the Quadro 2000 GPU is not supported.

3. Install the essential utilities required to install the NVIDIA driver, by running the following command. For more information, refer to the NVIDIA CUDA driver installation instructions.

       sudo apt-get install build-essential

4. Obtain the CUDA driver from NVIDIA. Go to https://developer.nvidia.com/cuda-75-downloads-archive, and download the driver for the Linux operating system that you have installed.

5. Start the script that installs the NVIDIA driver and follow the instructions.

       username@servername:~ $ sudo sh ./cuda_7.5.7_rc_linux.run
       Do you accept the previously read EULA? (accept/decline/quit): accept
       Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.07? ((y)es/(n)o/(q)uit): y
       Do you want to install the OpenGL libraries? ((y)es/(n)o/(q)uit) [ default is yes ]: n
       Install the CUDA 7.5 Toolkit? ((y)es/(n)o/(q)uit): n
       Install the CUDA 7.5 Samples? ((y)es/(n)o/(q)uit): n
       Installing the NVIDIA display driver...

   The driver is installed and you should see the following message:

       Installation of the NVIDIA Accelerated Graphics Driver for
       Linux-x86_64 (version: 352.07) is now complete.

6. Verify that the driver installation was successful by running the `nvidia-smi` command. The driver version must be reported as:

       352.07

## Verify that HPE Media Server is Using the GPU

To determine whether HPE Media Server can use your GPU, start HPE Media Server and open the application log. The log should show the following after HPE 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 ... bytes free to allocate
    GPU deviceID currently used: 2 (Hex PCIBusId: ..)

If the machine has more than one GPU, you might need to set the configuration parameter `GPUDeviceID`, to specify which GPU to use. To find out which GPU device ID corresponds to which GPU, match the PCI Bus ID logged by HPE Media Server to the PCI Bus ID output by the `nvidia-smi` command, which also provides the GPU name.

If installation was unsuccessful, the application log shows this message instead:

    CPU mode used for MediaServer

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm