From cf99741e243b9f8086864e5435225cba2401fced Mon Sep 17 00:00:00 2001 From: alter-xp Date: Wed, 2 Nov 2022 09:04:04 +0800 Subject: [PATCH] Revert "[skip ci] Revert "fix GPU other build (#13235)" (#13261)" This reverts commit 87f52af48a23e2e94ac13863b1fa378b0d4cc846. --- Jenkinsfile | 24 +++++------------------- ci/jenkins/Build.groovy.j2 | 8 ++++---- 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 135f64dc1d94..496887479c87 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,7 +45,7 @@ // 'python3 jenkins/generate.py' // Note: This timestamp is here to ensure that updates to the Jenkinsfile are // always rebased on main before merging: -// Generated at 2022-10-19T13:44:32.119961 +// Generated at 2022-11-01T15:54:54.217190 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> @@ -677,7 +677,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', ) } @@ -761,23 +761,9 @@ stage('Build') { // 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( - script: """ - set -eux - . ci/scripts/retry.sh - md5sum build/libtvm.so - retry 3 aws s3 cp --no-progress build/libtvm.so s3://${s3_prefix}/gpu2/build/libtvm.so - md5sum build/libvta_fsim.so - retry 3 aws s3 cp --no-progress build/libvta_fsim.so s3://${s3_prefix}/gpu2/build/libvta_fsim.so - md5sum build/libtvm_runtime.so - retry 3 aws s3 cp --no-progress build/libtvm_runtime.so s3://${s3_prefix}/gpu2/build/libtvm_runtime.so - md5sum build/config.cmake - retry 3 aws s3 cp --no-progress build/config.cmake s3://${s3_prefix}/gpu2/build/config.cmake - """, - label: 'Upload artifacts to S3', - ) + 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') } } } diff --git a/ci/jenkins/Build.groovy.j2 b/ci/jenkins/Build.groovy.j2 index 49cffacdc16e..315057c5d5cc 100644 --- a/ci/jenkins/Build.groovy.j2 +++ b/ci/jenkins/Build.groovy.j2 @@ -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', ) } @@ -93,9 +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') - {{ m.upload_artifacts(tag='gpu2', filenames=tvm_multilib) }} + 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') {% endcall %} {% call m.build_step(