diff --git a/.jenkins/common.groovy b/.jenkins/common.groovy index 028e204a..f09cbbce 100644 --- a/.jenkins/common.groovy +++ b/.jenkins/common.groovy @@ -33,12 +33,25 @@ def runTestCommand (platform, project) String centos = platform.jenkinsLabel.contains('centos') ? '3' : '' def testCommand = "ctest${centos} --output-on-failure" - def command = """#!/usr/bin/env bash - set -x - cd ${project.paths.project_build_prefix} - cd ${project.testDirectory} - ${sudo} LD_LIBRARY_PATH=/opt/rocm/lib ${testCommand} - """ + def hmmTestCommand = '' + + if (platform.jenkinsLabel.contains('gfx90a')) + { + hmmTestCommand = """ + export HSA_XNACK=1 + export HIPCUB_USE_HMM=1 + ${testCommand} + """ + } + + def command = """ + #!/usr/bin/env bash + set -x + cd ${project.paths.project_build_prefix} + cd ${project.testDirectory} + ${testCommand} + ${hmmTestCommand} + """ platform.runCommand(this, command) }