diff --git a/docs/source/dev_guide/gpu_device_selection.md b/docs/source/dev_guide/gpu_device_selection.md index 8da09dad..2edeb4ea 100644 --- a/docs/source/dev_guide/gpu_device_selection.md +++ b/docs/source/dev_guide/gpu_device_selection.md @@ -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 @@ -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/), diff --git a/tests/scripts/installation-on-host-entrypoint-fedora.sh b/tests/scripts/installation-on-host-entrypoint-fedora.sh index 2dec1bd6..5ecac550 100755 --- a/tests/scripts/installation-on-host-entrypoint-fedora.sh +++ b/tests/scripts/installation-on-host-entrypoint-fedora.sh @@ -1,6 +1,6 @@ #!/bin/bash # ============================================================================== -# Copyright (C) 2024-2025 Intel Corporation +# Copyright (C) 2024-2026 Intel Corporation # # SPDX-License-Identifier: MIT # ============================================================================== @@ -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" @@ -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" @@ -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" diff --git a/tests/scripts/installation-on-host-entrypoint.sh b/tests/scripts/installation-on-host-entrypoint.sh index 02e57bbe..934e48a0 100755 --- a/tests/scripts/installation-on-host-entrypoint.sh +++ b/tests/scripts/installation-on-host-entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash # ============================================================================== -# Copyright (C) 2024-2025 Intel Corporation +# Copyright (C) 2024-2026 Intel Corporation # # SPDX-License-Identifier: MIT # ============================================================================== @@ -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" @@ -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" @@ -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"