Skip to content

Commit

Permalink
[ci] fix GPU other build
Browse files Browse the repository at this point in the history
fix issuses apache#12777
  • Loading branch information
thead_iot_autotest authored and alter-xp committed Nov 14, 2022
1 parent b8384d1 commit 514c2e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions ci/jenkins/Build.groovy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def fsim_test(image) {

def cmake_build(image, path, make_flag) {
sh (
script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod",
script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
label: 'Run cmake build',
)
}
Expand Down Expand Up @@ -93,8 +93,9 @@ stage('Build') {
{{ m.upload_artifacts(tag='gpu', filenames=tvm_multilib, folders=microtvm_template_projects) }}

// compiler test
sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu_other.sh build2"
make("${ci_gpu} --no-gpu", 'build2', '-j2')
sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_clean.sh build",
sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu_other.sh build"
make("${ci_gpu} --no-gpu", 'build', '-j2')
{{ m.upload_artifacts(tag='gpu2', filenames=tvm_multilib) }}
{% endcall %}

Expand Down

0 comments on commit 514c2e4

Please sign in to comment.