Skip to content
Open
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
25 changes: 19 additions & 6 deletions .jenkins/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down