Skip to content

Commit

Permalink
[ci][2/2] Shard frontend: GPU job into 2 jobs (apache#10414)
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati authored and pfk-beta committed Apr 11, 2022
1 parent aa65f0e commit 84a61a7
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ stage('Test') {
Utils.markStageSkippedForConditional('topi: GPU')
}
},
'frontend: GPU': {
'frontend: GPU 1': {
if (!skip_ci && is_docs_only_build != 1) {
node('GPU') {
ws(per_exec_ws('tvm/frontend-python-gpu')) {
Expand All @@ -598,8 +598,31 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh",
label: 'Run Python frontend tests',
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 1",
label: 'Run Python frontend tests (shard 1)',
)
}
} finally {
junit 'build/pytest-results/*.xml'
}
}
}
} else {
Utils.markStageSkippedForConditional('frontend: GPU 1')
}
},
'frontend: GPU 2': {
if (!skip_ci && is_docs_only_build != 1) {
node('GPU') {
ws(per_exec_ws('tvm/frontend-python-gpu')) {
try {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 2",
label: 'Run Python frontend tests (shard 2)',
)
}
} finally {
Expand All @@ -608,7 +631,7 @@ stage('Test') {
}
}
} else {
Utils.markStageSkippedForConditional('frontend: GPU')
Utils.markStageSkippedForConditional('frontend: GPU 2')
}
},
'frontend: CPU': {
Expand Down

0 comments on commit 84a61a7

Please sign in to comment.