CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
97 lines
3.7 KiB
Groovy
97 lines
3.7 KiB
Groovy
// This file is for internal AMD use.
|
|
// If you are interested in running your own Jenkins, please raise a github issue for assistance.
|
|
|
|
def runCompileCommand(platform, project, jobName, boolean sameOrg=false, boolean isStatic=false)
|
|
{
|
|
project.paths.construct_build_prefix()
|
|
|
|
String compiler = 'hipcc'
|
|
String hipClang = ''
|
|
String debug = project.buildName.contains('Debug') ? '-g' : ''
|
|
String centos = platform.jenkinsLabel.contains('centos') ? 'source scl_source enable devtoolset-7' : ''
|
|
String dynamicOptions = ''
|
|
List<String> options = []
|
|
Boolean withSparse = true
|
|
|
|
if (env.BRANCH_NAME ==~ /PR-\d+/)
|
|
{
|
|
pullRequest.labels.each
|
|
{
|
|
if (it == "noOptimizations")
|
|
{
|
|
options << "-n"
|
|
}
|
|
else if (it == "ci:no-sparse")
|
|
{
|
|
options << "--no-sparse"
|
|
withSparse = false
|
|
}
|
|
}
|
|
// in PRs targeting develop branch build ONLY what CI pipeline will test, unless github gfxall label or debug job
|
|
if (env.CHANGE_TARGET == "develop" && !pullRequest.labels.contains("gfxall") && !project.buildName.contains("Debug"))
|
|
{
|
|
|
|
// requires at command execution time ${auxiliary.gfxTargetParser()} to set gfx_var variable
|
|
dynamicOptions = dynamicOptions + ' -a \$gfx_arch'
|
|
// TODO if enabling address sanitizer
|
|
// dynamicOptions = dynamicOptions + ' -a \$gfx_arch:xnack+'
|
|
}
|
|
}
|
|
|
|
List<String> getDeps = []
|
|
getDeps << auxiliary.getLibrary('hipBLAS-common', platform.jenkinsLabel, null, sameOrg)
|
|
if (isStatic == false)
|
|
{
|
|
getDeps << auxiliary.getLibrary('hipBLASLt', platform.jenkinsLabel, null, sameOrg)
|
|
}
|
|
getDeps << auxiliary.getLibrary('rocBLAS', platform.jenkinsLabel, null, sameOrg)
|
|
if (withSparse)
|
|
{
|
|
getDeps << auxiliary.getLibrary('rocSPARSE', platform.jenkinsLabel, null, sameOrg)
|
|
}
|
|
getDeps << auxiliary.getLibrary('rocPRIM', platform.jenkinsLabel, null, sameOrg)
|
|
def command = """#!/usr/bin/env bash
|
|
set -x
|
|
export VERBOSE=1
|
|
cd ${project.paths.project_build_prefix}
|
|
${getDeps.join('\\n')}
|
|
${auxiliary.exitIfNotSuccess()}
|
|
${centos}
|
|
${auxiliary.gfxTargetParser()}
|
|
${project.paths.build_command} ${hipClang} ${debug} ${options.join(' ')} ${dynamicOptions}
|
|
${auxiliary.exitIfNotSuccess()}
|
|
"""
|
|
platform.runCommand(this, command)
|
|
}
|
|
|
|
def runTestCommand (platform, project, gfilter)
|
|
{
|
|
String buildType = project.buildName.contains('Debug') ? 'debug' : 'release'
|
|
String hmmTestCommand = platform.jenkinsLabel.contains('gfx90a') ? 'HSA_XNACK=1 ./rocsolver-test --gtest_filter=*MANAGED_MALLOC* || true' : ''
|
|
|
|
def command = """#!/usr/bin/env bash
|
|
set -ex
|
|
cd ${project.paths.project_build_prefix}/build/${buildType}/clients/staging
|
|
./rocsolver-test --gtest_output=xml --gtest_color=yes --gtest_filter=${gfilter}
|
|
if [ -f ./test-rocsolver-dlopen ]; then
|
|
./test-rocsolver-dlopen --gtest_color=yes
|
|
fi
|
|
${hmmTestCommand}
|
|
cd ../..
|
|
CTEST_OUTPUT_ON_FAILURE=1 ctest -R '^test-rocsolver-bench'
|
|
"""
|
|
|
|
|
|
platform.runCommand(this, command)
|
|
}
|
|
|
|
def runPackageCommand(platform, project)
|
|
{
|
|
String buildType = project.buildName.contains('Debug') ? 'debug' : 'release'
|
|
def packageHelper = platform.makePackage(platform.jenkinsLabel, "${project.paths.project_build_prefix}/build/${buildType}")
|
|
platform.runCommand(this, packageHelper[0])
|
|
platform.archiveArtifacts(this, packageHelper[1])
|
|
}
|
|
|
|
return this
|