You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2025/02/08 18:12:14 UTC

(tvm) branch ci updated (67729dc478 -> a1be3c4a71)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a change to branch ci
in repository https://gitbox.apache.org/repos/asf/tvm.git


 discard 67729dc478 [CI] Improve build time
     new a1be3c4a71 [CI] Improve build time

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (67729dc478)
            \
             N -- N -- N   refs/heads/ci (a1be3c4a71)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ci/jenkins/generated/arm_jenkinsfile.groovy    | 4 ++--
 ci/jenkins/templates/arm_jenkinsfile.groovy.j2 | 2 +-
 ci/jenkins/unity_jenkinsfile.groovy            | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)


(tvm) 01/01: [CI] Improve build time

Posted by tq...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch ci
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit a1be3c4a71df903ff6ab866d6e35beab79fa7f2a
Author: tqchen <tq...@gmail.com>
AuthorDate: Sat Feb 8 12:32:22 2025 -0500

    [CI] Improve build time
    
    This PR tries to improve the build time by changing the build
    step to use a node with more CPU, note that as the spot price
    charges per second, the speedup gained by parallelization
    can help offset the cost of the larger node.
---
 ci/jenkins/generated/arm_jenkinsfile.groovy        |  6 +++---
 ci/jenkins/generated/cpu_jenkinsfile.groovy        | 10 +++++-----
 ci/jenkins/generated/docker_jenkinsfile.groovy     |  4 ++--
 ci/jenkins/generated/gpu_jenkinsfile.groovy        |  8 ++++----
 ci/jenkins/generated/hexagon_jenkinsfile.groovy    | 10 +++++-----
 ci/jenkins/generated/i386_jenkinsfile.groovy       | 10 +++++-----
 ci/jenkins/generated/lint_jenkinsfile.groovy       |  4 ++--
 ci/jenkins/generated/wasm_jenkinsfile.groovy       | 10 +++++-----
 ci/jenkins/templates/arm_jenkinsfile.groovy.j2     |  2 +-
 ci/jenkins/templates/cpu_jenkinsfile.groovy.j2     |  4 ++--
 ci/jenkins/templates/gpu_jenkinsfile.groovy.j2     |  4 ++--
 ci/jenkins/templates/hexagon_jenkinsfile.groovy.j2 |  4 ++--
 ci/jenkins/templates/i386_jenkinsfile.groovy.j2    |  4 ++--
 ci/jenkins/templates/utils/Build.groovy.j2         |  2 +-
 ci/jenkins/templates/wasm_jenkinsfile.groovy.j2    |  4 ++--
 ci/jenkins/unity_jenkinsfile.groovy                | 14 +++++++-------
 16 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy
index 95b1bb24a6..b83ac4bf3f 100644
--- a/ci/jenkins/generated/arm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/arm_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-07T09:50:07.174590
+// Generated at 2025-02-08T13:11:23.944306
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -530,7 +530,7 @@ def run_build(node_type) {
           script: "${docker_run} ${ci_arm} ./tests/scripts/task_config_build_arm.sh build",
           label: 'Create ARM cmake config',
         )
-        cmake_build(ci_arm, 'build', '-j4')
+        cmake_build(ci_arm, 'build')
         make_cpp_tests(ci_arm, 'build')
         sh(
             script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/arm --items build/libtvm.so build/libtvm_runtime.so build/config.cmake build/cpptest build/build.ninja build/CMakeFiles/rules.ninja",
diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy
index 2b2a17d951..5b77249627 100644
--- a/ci/jenkins/generated/cpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-07T09:50:07.191497
+// Generated at 2025-02-08T12:31:09.835239
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -530,7 +530,7 @@ def run_build(node_type) {
           script: "${docker_run} ${ci_cpu} ./tests/scripts/task_config_build_cpu.sh build",
           label: 'Create CPU cmake config',
         )
-        cmake_build(ci_cpu, 'build', '-j2')
+        cmake_build(ci_cpu, 'build')
         make_cpp_tests(ci_cpu, 'build')
         sh(
             script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/cpu --items build/libtvm.so build/libtvm_runtime.so build/config.cmake build/libtvm_allvisible.so build/cpptest build/build.ninja build/CMakeFiles/rules.ninja",
@@ -553,13 +553,13 @@ def run_build(node_type) {
 def build() {
   stage('Build') {
     try {
-        run_build('CPU-SMALL-SPOT')
+        run_build('CPU-SPOT')
     } catch (Throwable ex) {
         // mark the current stage as success
         // and try again via on demand node
         echo 'Exception during SPOT run ' + ex.toString() + ' retry on-demand'
         currentBuild.result = 'SUCCESS'
-        run_build('CPU-SMALL')
+        run_build('CPU')
     }
   }
 }
diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy
index 553678b38c..59dcf89af9 100644
--- a/ci/jenkins/generated/docker_jenkinsfile.groovy
+++ b/ci/jenkins/generated/docker_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-06T12:16:02.541252
+// Generated at 2025-02-08T12:31:09.767578
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
diff --git a/ci/jenkins/generated/gpu_jenkinsfile.groovy b/ci/jenkins/generated/gpu_jenkinsfile.groovy
index 63e68cb072..931f519a7f 100644
--- a/ci/jenkins/generated/gpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/gpu_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-07T09:50:07.217941
+// Generated at 2025-02-08T12:31:09.859697
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -527,7 +527,7 @@ def run_build(node_type) {
             'PLATFORM=gpu',
             ], {
             sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu.sh build"
-        cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
+        cmake_build("${ci_gpu} --no-gpu", 'build')
         sh(
             script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/gpu --items build/libtvm.so build/libtvm_runtime.so build/config.cmake build/libtvm_allvisible.so build/3rdparty/libflash_attn/src/libflash_attn.so build/3rdparty/cutlass_fpA_intB_gemm/cutlass_kernels/libfpA_intB_gemm.so",
             label: 'Upload artifacts to S3',
@@ -537,7 +537,7 @@ def run_build(node_type) {
         // compiler test
         sh "rm -rf build"
         sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu_other.sh build"
-        cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
+        cmake_build("${ci_gpu} --no-gpu", 'build')
         sh(
             script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/gpu2 --items build/libtvm.so build/libtvm_runtime.so build/config.cmake",
             label: 'Upload artifacts to S3',
diff --git a/ci/jenkins/generated/hexagon_jenkinsfile.groovy b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
index 75331a6718..f9bcee9a79 100644
--- a/ci/jenkins/generated/hexagon_jenkinsfile.groovy
+++ b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-07T09:50:07.160234
+// Generated at 2025-02-08T12:31:09.807572
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -530,7 +530,7 @@ def run_build(node_type) {
           script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_config_build_hexagon.sh build",
           label: 'Create Hexagon cmake config',
         )
-        cmake_build(ci_hexagon, 'build', '-j2')
+        cmake_build(ci_hexagon, 'build')
         make_cpp_tests(ci_hexagon, 'build')
         sh (
           script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh",
@@ -552,13 +552,13 @@ def run_build(node_type) {
 def build() {
   stage('Build') {
     try {
-        run_build('CPU-SMALL-SPOT')
+        run_build('CPU-SPOT')
     } catch (Throwable ex) {
         // mark the current stage as success
         // and try again via on demand node
         echo 'Exception during SPOT run ' + ex.toString() + ' retry on-demand'
         currentBuild.result = 'SUCCESS'
-        run_build('CPU-SMALL')
+        run_build('CPU')
     }
   }
 }
diff --git a/ci/jenkins/generated/i386_jenkinsfile.groovy b/ci/jenkins/generated/i386_jenkinsfile.groovy
index 183245838c..4587b991ff 100644
--- a/ci/jenkins/generated/i386_jenkinsfile.groovy
+++ b/ci/jenkins/generated/i386_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-07T09:50:07.135264
+// Generated at 2025-02-08T12:31:09.782928
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -530,7 +530,7 @@ def run_build(node_type) {
           script: "${docker_run} ${ci_i386} ./tests/scripts/task_config_build_i386.sh build",
           label: 'Create i386 cmake config',
         )
-        cmake_build(ci_i386, 'build', '-j2')
+        cmake_build(ci_i386, 'build')
         make_cpp_tests(ci_i386, 'build')
         sh(
             script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/i386 --items build/libtvm.so build/libtvm_runtime.so build/config.cmake build/cpptest build/build.ninja build/CMakeFiles/rules.ninja",
@@ -548,13 +548,13 @@ def run_build(node_type) {
 def build() {
   stage('Build') {
     try {
-        run_build('CPU-SMALL-SPOT')
+        run_build('CPU-SPOT')
     } catch (Throwable ex) {
         // mark the current stage as success
         // and try again via on demand node
         echo 'Exception during SPOT run ' + ex.toString() + ' retry on-demand'
         currentBuild.result = 'SUCCESS'
-        run_build('CPU-SMALL')
+        run_build('CPU')
     }
   }
 }
diff --git a/ci/jenkins/generated/lint_jenkinsfile.groovy b/ci/jenkins/generated/lint_jenkinsfile.groovy
index bc8118c546..4042eb8152 100644
--- a/ci/jenkins/generated/lint_jenkinsfile.groovy
+++ b/ci/jenkins/generated/lint_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-06T12:16:02.571072
+// Generated at 2025-02-08T12:31:09.795535
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
diff --git a/ci/jenkins/generated/wasm_jenkinsfile.groovy b/ci/jenkins/generated/wasm_jenkinsfile.groovy
index 4cf67de233..b6ad3a1ffa 100644
--- a/ci/jenkins/generated/wasm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/wasm_jenkinsfile.groovy
@@ -60,7 +60,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 2025-02-06T20:53:50.442520
+// Generated at 2025-02-08T12:31:09.848878
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // These are set at runtime from data in ci/jenkins/docker-images.yml, update
@@ -494,7 +494,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
@@ -530,7 +530,7 @@ def run_build(node_type) {
           script: "${docker_run} ${ci_wasm} ./tests/scripts/task_config_build_wasm.sh build",
           label: 'Create WASM cmake config',
         )
-        cmake_build(ci_wasm, 'build', '-j2')
+        cmake_build(ci_wasm, 'build')
         make_cpp_tests(ci_wasm, 'build')
         cpp_unittest(ci_wasm)
         ci_setup(ci_wasm)
@@ -550,13 +550,13 @@ def run_build(node_type) {
 def build() {
   stage('Build') {
     try {
-        run_build('CPU-SMALL-SPOT')
+        run_build('CPU-SPOT')
     } catch (Throwable ex) {
         // mark the current stage as success
         // and try again via on demand node
         echo 'Exception during SPOT run ' + ex.toString() + ' retry on-demand'
         currentBuild.result = 'SUCCESS'
-        run_build('CPU-SMALL')
+        run_build('CPU')
     }
   }
 }
diff --git a/ci/jenkins/templates/arm_jenkinsfile.groovy.j2 b/ci/jenkins/templates/arm_jenkinsfile.groovy.j2
index 418f786743..303260d0fa 100644
--- a/ci/jenkins/templates/arm_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/arm_jenkinsfile.groovy.j2
@@ -29,7 +29,7 @@
     script: "${docker_run} ${ci_arm} ./tests/scripts/task_config_build_arm.sh build",
     label: 'Create ARM cmake config',
   )
-  cmake_build(ci_arm, 'build', '-j4')
+  cmake_build(ci_arm, 'build')
   make_cpp_tests(ci_arm, 'build')
   {{ m.upload_artifacts(tag='arm', filenames=tvm_lib + cpptest) }}
 {% endcall %}
diff --git a/ci/jenkins/templates/cpu_jenkinsfile.groovy.j2 b/ci/jenkins/templates/cpu_jenkinsfile.groovy.j2
index 7e578884f8..9456e6a0c5 100644
--- a/ci/jenkins/templates/cpu_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/cpu_jenkinsfile.groovy.j2
@@ -19,7 +19,7 @@
 
 {% call m.invoke_build(
   name='BUILD: CPU',
-  node='CPU-SMALL',
+  node='CPU',
   condition='!skip_ci && is_docs_only_build != 1',
   ws='tvm/build-cpu',
   docker_image='ci_cpu',
@@ -29,7 +29,7 @@
     script: "${docker_run} ${ci_cpu} ./tests/scripts/task_config_build_cpu.sh build",
     label: 'Create CPU cmake config',
   )
-  cmake_build(ci_cpu, 'build', '-j2')
+  cmake_build(ci_cpu, 'build')
   make_cpp_tests(ci_cpu, 'build')
   {{ m.upload_artifacts(tag='cpu', filenames=tvm_lib + tvm_allvisible + cpptest) }}
   ci_setup(ci_cpu)
diff --git a/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2 b/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
index fdef5c96e6..e57e8c0433 100644
--- a/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
@@ -26,13 +26,13 @@
   platform="gpu",
 ) %}
   sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu.sh build"
-  cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
+  cmake_build("${ci_gpu} --no-gpu", 'build')
   {{ m.upload_artifacts(tag='gpu', filenames=tvm_lib + tvm_allvisible + tvm_lib_gpu_extra) }}
 
   // compiler test
   sh "rm -rf build"
   sh "${docker_run} --no-gpu ${ci_gpu} ./tests/scripts/task_config_build_gpu_other.sh build"
-  cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
+  cmake_build("${ci_gpu} --no-gpu", 'build')
   {{ m.upload_artifacts(tag='gpu2', filenames=tvm_lib) }}
 {% endcall %}
 
diff --git a/ci/jenkins/templates/hexagon_jenkinsfile.groovy.j2 b/ci/jenkins/templates/hexagon_jenkinsfile.groovy.j2
index 1d3f37131c..91d3ce9ece 100644
--- a/ci/jenkins/templates/hexagon_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/hexagon_jenkinsfile.groovy.j2
@@ -19,7 +19,7 @@
 
 {% call m.invoke_build(
   name='BUILD: Hexagon',
-  node='CPU-SMALL',
+  node='CPU',
   condition='!skip_ci && is_docs_only_build != 1',
   ws='tvm/build-hexagon',
   docker_image='ci_hexagon',
@@ -29,7 +29,7 @@
     script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_config_build_hexagon.sh build",
     label: 'Create Hexagon cmake config',
   )
-  cmake_build(ci_hexagon, 'build', '-j2')
+  cmake_build(ci_hexagon, 'build')
   make_cpp_tests(ci_hexagon, 'build')
   sh (
     script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh",
diff --git a/ci/jenkins/templates/i386_jenkinsfile.groovy.j2 b/ci/jenkins/templates/i386_jenkinsfile.groovy.j2
index 382e3bfbe6..2c9aa3234f 100644
--- a/ci/jenkins/templates/i386_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/i386_jenkinsfile.groovy.j2
@@ -19,7 +19,7 @@
 
 {% call m.invoke_build(
   name='BUILD: i386',
-  node='CPU-SMALL',
+  node='CPU',
   condition='!skip_ci && is_docs_only_build != 1',
   ws='tvm/build-i386',
   docker_image='ci_i386',
@@ -29,7 +29,7 @@
     script: "${docker_run} ${ci_i386} ./tests/scripts/task_config_build_i386.sh build",
     label: 'Create i386 cmake config',
   )
-  cmake_build(ci_i386, 'build', '-j2')
+  cmake_build(ci_i386, 'build')
   make_cpp_tests(ci_i386, 'build')
   {{ m.upload_artifacts(tag='i386', filenames=tvm_lib + cpptest) }}
 {% endcall %}
diff --git a/ci/jenkins/templates/utils/Build.groovy.j2 b/ci/jenkins/templates/utils/Build.groovy.j2
index cf3cb61e7a..8e8310aea6 100644
--- a/ci/jenkins/templates/utils/Build.groovy.j2
+++ b/ci/jenkins/templates/utils/Build.groovy.j2
@@ -26,7 +26,7 @@ def make_cpp_tests(image, build_dir) {
   )
 }
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
     label: 'Run cmake build',
diff --git a/ci/jenkins/templates/wasm_jenkinsfile.groovy.j2 b/ci/jenkins/templates/wasm_jenkinsfile.groovy.j2
index df33e91eac..e3ef79c276 100644
--- a/ci/jenkins/templates/wasm_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/wasm_jenkinsfile.groovy.j2
@@ -19,7 +19,7 @@
 
 {% call m.invoke_build(
   name='BUILD: WASM',
-  node='CPU-SMALL',
+  node='CPU',
   condition='!skip_ci && is_docs_only_build != 1',
   ws='tvm/build-wasm',
   docker_image='ci_wasm',
@@ -29,7 +29,7 @@
     script: "${docker_run} ${ci_wasm} ./tests/scripts/task_config_build_wasm.sh build",
     label: 'Create WASM cmake config',
   )
-  cmake_build(ci_wasm, 'build', '-j2')
+  cmake_build(ci_wasm, 'build')
   make_cpp_tests(ci_wasm, 'build')
   cpp_unittest(ci_wasm)
   ci_setup(ci_wasm)
diff --git a/ci/jenkins/unity_jenkinsfile.groovy b/ci/jenkins/unity_jenkinsfile.groovy
index a0c1120fa3..d1562248cc 100755
--- a/ci/jenkins/unity_jenkinsfile.groovy
+++ b/ci/jenkins/unity_jenkinsfile.groovy
@@ -225,10 +225,10 @@ try {
 // Run make. First try to do an incremental make from a previous workspace in hope to
 // accelerate the compilation. If something is wrong, clean the workspace and then
 // build from scratch.
-def make(docker_type, path, make_flag) {
+def make(docker_type, path) {
   timeout(time: max_time, unit: 'MINUTES') {
     try {
-      cmake_build(docker_type, path, make_flag)
+      cmake_build(docker_type, path)
       // always run cpp test when build
       // sh "${docker_run} ${docker_type} ./tests/scripts/task_cpp_unittest.sh"
     } catch (hudson.AbortException ae) {
@@ -241,7 +241,7 @@ def make(docker_type, path, make_flag) {
         script: "${docker_run} ${docker_type} ./tests/scripts/task_clean.sh ${path}",
         label: 'Clear old cmake workspace',
       )
-      cmake_build(docker_type, path, make_flag)
+      cmake_build(docker_type, path)
       cpp_unittest(docker_type)
     }
   }
@@ -310,7 +310,7 @@ def python_unittest(image) {
 }
 
 
-def cmake_build(image, path, make_flag) {
+def cmake_build(image, path) {
   sh (
     script: "${docker_run} ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2",
     label: 'Run cmake build',
@@ -342,17 +342,17 @@ stage('Build and Test') {
           init_git()
           sh "${docker_run} ${ci_gpu} nvidia-smi"
           sh "${docker_run}  ${ci_gpu} ./tests/scripts/task_config_build_gpu.sh build"
-          make("${ci_gpu}", 'build', '-j2')
+          make("${ci_gpu}", 'build')
           sh "${docker_run} ${ci_gpu} ./tests/scripts/unity/task_python_relax_gpuonly.sh"
         }
       }
     },
     'BUILD: CPU': {
-      node('CPU-SMALL') {
+      node('CPU') {
         ws(per_exec_ws('tvm/build-cpu')) {
           init_git()
           sh "${docker_run} ${ci_cpu} ./tests/scripts/task_config_build_cpu.sh build"
-          make(ci_cpu, 'build', '-j2')
+          make(ci_cpu, 'build')
           sh "${docker_run} ${ci_cpu} ./tests/scripts/unity/task_python_relax.sh"
         }
       }