From 7ca8fb7878e50673b349ad8e17b4f711978d76c9 Mon Sep 17 00:00:00 2001 From: Sam Wu <22262939+samjwu@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:06:35 -0600 Subject: [PATCH] Set libva driver path in env on sles15 (#384) [ROCm/rocdecode commit: 64fd81c413616a7e39daec567d44f90cfbcdb61a] --- projects/rocdecode/.jenkins/common.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/rocdecode/.jenkins/common.groovy b/projects/rocdecode/.jenkins/common.groovy index f2b559ad9f..33e92a7f90 100644 --- a/projects/rocdecode/.jenkins/common.groovy +++ b/projects/rocdecode/.jenkins/common.groovy @@ -26,17 +26,20 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s def runTestCommand (platform, project) { String libLocation = '' + String libvaDriverPath = "" if (platform.jenkinsLabel.contains('rhel')) { libLocation = ':/usr/local/lib' } else if (platform.jenkinsLabel.contains('sles')) { libLocation = ':/usr/local/lib' + libvaDriverPath = "export LIBVA_DRIVERS_PATH=/opt/amdgpu/lib64/dri" } def command = """#!/usr/bin/env bash set -ex export HOME=/home/jenkins + ${libvaDriverPath} echo make test cd ${project.paths.project_build_prefix}/build/release LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/rocm/lib${libLocation} make test ARGS="-VV --rerun-failed --output-on-failure"