Skip to content

Commit

Permalink
[CI][Jenkins] Enable rebooting in CI stages for CI stages with GPU use (
Browse files Browse the repository at this point in the history
#2420)

* conf_reboot

* configs_chg
  • Loading branch information
reidkwja authored Sep 28, 2023
1 parent 3413d2d commit 6d539ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def buildHipClangJobAndReboot(Map conf=[:]){
throw e
}
finally{
if (conf.get("needs_reboot", false)) {
if (conf.get("needs_reboot", true)) {
reboot()
}
}
Expand Down Expand Up @@ -544,7 +544,7 @@ pipeline {
stage("HIP Package") {
agent{ label rocmnode("nogpu") }
steps{
buildHipClangJobAndReboot( package_build: "true", needs_gpu:false)
buildHipClangJobAndReboot( package_build: "true", needs_gpu:false, needs_reboot:false)
}
}
}
Expand All @@ -561,7 +561,7 @@ pipeline {
build_cmd = "make -j\$(nproc) -k analyze"
}
steps{
buildHipClangJobAndReboot(setup_cmd: setup_cmd, build_cmd: build_cmd, needs_gpu:false)
buildHipClangJobAndReboot(setup_cmd: setup_cmd, build_cmd: build_cmd, needs_gpu:false, needs_reboot:false)
}
}
stage('Clang Format') {
Expand All @@ -588,7 +588,7 @@ pipeline {
build_cmd = "make -j\$(nproc) "
}
steps{
buildHipClangJobAndReboot(build_fin: "ON", needs_gpu:false, build_install: "true")
buildHipClangJobAndReboot(build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true")
}
}
stage('Perf DB Validity Test') {
Expand All @@ -598,7 +598,7 @@ pipeline {

}
steps{
CheckPerfDbValid(setup_flags: fin_flags, config_targets: "all", build_fin: "ON", needs_gpu:false, build_install: "true")
CheckPerfDbValid(setup_flags: fin_flags, config_targets: "all", build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true")
}
}
stage('HipNoGPU Debug Build Test') {
Expand All @@ -612,7 +612,7 @@ pipeline {
build_cmd = "make -j\$(nproc)"
}
steps{
buildHipClangJob( build_type: 'debug', setup_flags: HipNoGPU_flags, build_cmd: build_cmd, needs_gpu:false)
buildHipClangJob( build_type: 'debug', setup_flags: HipNoGPU_flags, build_cmd: build_cmd, needs_gpu:false, needs_reboot:false)
}
}
}
Expand Down

0 comments on commit 6d539ee

Please sign in to comment.