Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions docs/source/dev_guide/gpu_device_selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@

This article describes how to select a GPU device on a multi-GPU system.

## 1. Media (VAAPI based) elements

The [GStreamer VAAPI plugin](https://gstreamer.freedesktop.org/documentation/vaapi/index.html)
supports the `GST_VAAPI_DRM_DEVICE` environment variable, which allows
selecting a GPU device for VAAPI elements (and `decodebin3` element in case
it internally works on VAAPI elements).

The `GST_VAAPI_DRM_DEVICE` environment variable expects the GPU device
driver path. The `/dev/dri/renderD128` path typically represents the first
GPU device on the system, `/dev/dri/renderD129` represents the second, etc.

For example, the following command forces VAAPI elements (and
`decodebin3`) to use the second GPU device:

```bash
export GST_VAAPI_DRM_DEVICE=/dev/dri/renderD129
```

## 2. Inference (OpenVINO™ based) elements
## 1. Inference (OpenVINO™ based) elements

### Explicit selection

Expand Down Expand Up @@ -49,7 +31,7 @@ export GST_VAAPI_DRM_DEVICE=/dev/dri/renderD129
gst-launch-1.0 "... ! decodebin3 ! gvadetect device=GPU ! ..."
```

## 3. Media and Inference elements for GStreamer 1.24.0 and later versions
## 2. Media and Inference elements for GStreamer 1.24.0 and later versions

> **NOTE:** Starting with
> [GStreamer 1.24 version](https://gstreamer.freedesktop.org/releases/1.24/),
Expand Down
10 changes: 3 additions & 7 deletions tests/scripts/installation-on-host-entrypoint-fedora.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# ==============================================================================
# Copyright (C) 2024-2025 Intel Corporation
# Copyright (C) 2024-2026 Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================
Expand Down Expand Up @@ -90,8 +90,6 @@ unset GST_VA_ALL_DRIVERS
unset MODEL_PROC_PATH
unset PYTHONPATH
unset TERM
unset GST_VAAPI_DRM_DEVICE
unset GST_VAAPI_ALL_DRIVERS

# Display the values of the environment variables
echo_color "Displaying the values of the environment variables:" "blue"
Expand All @@ -103,8 +101,7 @@ echo "GST_VA_ALL_DRIVERS: ${GST_VA_ALL_DRIVERS}"
echo "MODEL_PROC_PATH: ${MODEL_PROC_PATH}"
echo "PYTHONPATH: ${PYTHONPATH}"
echo "TERM: ${TERM}"
echo "GST_VAAPI_DRM_DEVICE: ${GST_VAAPI_DRM_DEVICE}"
echo "GST_VAAPI_ALL_DRIVERS: ${GST_VAAPI_ALL_DRIVERS}"


# set environment variables
echo_color "Setting the environment variables" "blue"
Expand All @@ -130,8 +127,7 @@ echo "GST_VA_ALL_DRIVERS: ${GST_VA_ALL_DRIVERS}"
echo "MODEL_PROC_PATH: ${MODEL_PROC_PATH}"
echo "PYTHONPATH: ${PYTHONPATH}"
echo "TERM: ${TERM}"
echo "GST_VAAPI_DRM_DEVICE: ${GST_VAAPI_DRM_DEVICE}"
echo "GST_VAAPI_ALL_DRIVERS: ${GST_VAAPI_ALL_DRIVERS}"


if gst-inspect-1.0 gvadetect &> /dev/null; then
echo_color " DL Streamer verification successful" "green"
Expand Down
9 changes: 2 additions & 7 deletions tests/scripts/installation-on-host-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# ==============================================================================
# Copyright (C) 2024-2025 Intel Corporation
# Copyright (C) 2024-2026 Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================
Expand Down Expand Up @@ -136,8 +136,7 @@ unset GST_VA_ALL_DRIVERS
unset MODEL_PROC_PATH
unset PYTHONPATH
unset TERM
unset GST_VAAPI_DRM_DEVICE
unset GST_VAAPI_ALL_DRIVERS


# Display the values of the environment variables
echo_color "Displaying the values of the environment variables:" "blue"
Expand All @@ -149,8 +148,6 @@ echo "GST_VA_ALL_DRIVERS: ${GST_VA_ALL_DRIVERS}"
echo "MODEL_PROC_PATH: ${MODEL_PROC_PATH}"
echo "PYTHONPATH: ${PYTHONPATH}"
echo "TERM: ${TERM}"
echo "GST_VAAPI_DRM_DEVICE: ${GST_VAAPI_DRM_DEVICE}"
echo "GST_VAAPI_ALL_DRIVERS: ${GST_VAAPI_ALL_DRIVERS}"

# set environment variables
echo_color "Setting the environment variables" "blue"
Expand All @@ -173,8 +170,6 @@ echo "GST_VA_ALL_DRIVERS: ${GST_VA_ALL_DRIVERS}"
echo "MODEL_PROC_PATH: ${MODEL_PROC_PATH}"
echo "PYTHONPATH: ${PYTHONPATH}"
echo "TERM: ${TERM}"
echo "GST_VAAPI_DRM_DEVICE: ${GST_VAAPI_DRM_DEVICE}"
echo "GST_VAAPI_ALL_DRIVERS: ${GST_VAAPI_ALL_DRIVERS}"

if gst-inspect-1.0 gvadetect &> /dev/null; then
echo_color " DL Streamer verification successful" "green"
Expand Down