Set libva driver path in env on sles15 (#384)

此提交包含在:
Sam Wu
2024-07-17 09:06:35 -06:00
提交者 GitHub
父節點 a36dd186df
當前提交 64fd81c413
+3
查看文件
@@ -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"