You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by sy...@apache.org on 2024/01/19 08:02:23 UTC
(tvm) branch test_all_cases_on_unity updated (0c0212fc2d -> 6ac15713c5)
This is an automated email from the ASF dual-hosted git repository.
syfeng pushed a change to branch test_all_cases_on_unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
discard 0c0212fc2d downgrade cmake version requirement
discard d4451d8ba7 update jenkisfile to enable non-unity tests
discard be827eecf1 [Unity][Fix] Fix mismatched intrinsic name
discard c8f2e304ab Merge branch 'main' into test-merge-unity
add cbe9c14879 [Bugfix][Unity] Recover MSVC/NVCC/ROCm/Vulkan (#16414)
add a763b22119 [Unity][Transform] Replace eligible operators with in-place versions in dataflow blocks (#16129)
add c470e1a922 [Unity][Fix] Fix mismatched intrinsic name (#16418)
add 7336379dea [Unity][Frontend][NN] Better support for dynamic convolutions (#16427)
add 7ef521fad6 [COMMUNITY] Add new key for release signing (#16419)
add a5e883e846 [RUNTIME][CLML] Fix for Softmax op for 4D tensors (#16328)
add e1c430c7e3 [Relay][Frontend][Torch] fix pytorch frontend linspace op (#16417)
add 827beed0d6 [CMake] Enable cuda lang if USE_CUDA is on (#16426)
add 614a7a9e31 [CI][WASM] Update emsdk and nodejs version (#16420)
add 5a2949bd70 Merge branch 'main' of into branch 'unity'
new 7cb6296e3b update jenkisfile to enable non-unity tests
new 6ac15713c5 downgrade cmake version requirement
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 (0c0212fc2d)
\
N -- N -- N refs/heads/test_all_cases_on_unity (6ac15713c5)
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 2 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:
KEYS | 59 ++
cmake/modules/CUDA.cmake | 5 +-
docker/install/ubuntu_install_emscripten.sh | 4 +-
docker/install/ubuntu_install_nodejs.sh | 2 +-
include/tvm/relax/transform.h | 10 +
include/tvm/runtime/logging.h | 18 +-
python/tvm/relax/__init__.py | 8 +-
python/tvm/relax/backend/contrib/cutlass.py | 5 +
python/tvm/relax/frontend/nn/modules.py | 8 +-
python/tvm/relax/testing/transform.py | 98 +-
python/tvm/relax/transform/__init__.py | 1 +
python/tvm/relax/transform/transform.py | 16 +
python/tvm/relay/frontend/pytorch.py | 2 +-
python/tvm/relay/op/contrib/clml.py | 3 +-
src/relax/transform/dataflow_inplace.cc | 1040 ++++++++++++++++++++
src/runtime/contrib/clml/clml_runtime.cc | 62 +-
src/script/printer/relax/call.cc | 19 +-
src/support/pipe.h | 14 +-
src/target/spirv/codegen_spirv.cc | 2 +
src/target/spirv/intrin_rule_spirv.cc | 3 +
.../transforms/merge_shared_memory_allocations.cc | 5 +
src/tir/transforms/storage_rewrite.cc | 7 +-
tests/python/contrib/test_clml/test_ops.py | 86 +-
tests/python/frontend/pytorch/test_forward.py | 5 +
tests/python/relax/test_codegen_cutlass.py | 33 +-
tests/python/relax/test_dataflow_inplace.py | 644 ++++++++++++
tests/python/relax/test_frontend_nn_modules.py | 37 +
tests/python/relax/test_tvmscript_parser.py | 36 +
tests/python/relax/test_tvmscript_printer_relax.py | 25 +
29 files changed, 2180 insertions(+), 77 deletions(-)
create mode 100644 src/relax/transform/dataflow_inplace.cc
create mode 100644 tests/python/relax/test_dataflow_inplace.py
(tvm) 01/02: update jenkisfile to enable non-unity tests
Posted by sy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
syfeng pushed a commit to branch test_all_cases_on_unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 7cb6296e3beedd35cbcfa18e8f37594d8a90d888
Author: Siyuan Feng <hz...@sjtu.edu.cn>
AuthorDate: Wed Jan 17 14:14:43 2024 +0800
update jenkisfile to enable non-unity tests
---
ci/jenkins/generated/arm_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/cortexm_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/cpu_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/docker_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/gpu_jenkinsfile.groovy | 11 +++--------
ci/jenkins/generated/hexagon_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/i386_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/lint_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/minimal_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/riscv_jenkinsfile.groovy | 5 -----
ci/jenkins/generated/wasm_jenkinsfile.groovy | 5 -----
12 files changed, 3 insertions(+), 63 deletions(-)
diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy
index 919b39e402..80b2e59a81 100644
--- a/ci/jenkins/generated/arm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/arm_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy
index c195f0b0e7..c7b4527230 100644
--- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy
index 7010d60191..f26a69109f 100644
--- a/ci/jenkins/generated/cpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy
index 091751bfb0..2aa6a17362 100644
--- a/ci/jenkins/generated/docker_jenkinsfile.groovy
+++ b/ci/jenkins/generated/docker_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/gpu_jenkinsfile.groovy b/ci/jenkins/generated/gpu_jenkinsfile.groovy
index 32fbeab3ba..7454bb0d90 100644
--- a/ci/jenkins/generated/gpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/gpu_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
@@ -565,7 +560,7 @@ def build(node_type) {
cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
make_standalone_crt("${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/libvta_fsim.so build/libtvm_runtime.so build/config.cmake build/libtvm_allvisible.so build/microtvm_template_projects build/crttest build/standalone_crt build/build.ninja",
+ script: "./${jenkins_scripts_root}/s3.py --action upload --bucket ${s3_bucket} --prefix ${s3_prefix}/gpu --items build/libtvm.so build/libvta_fsim.so build/libtvm_runtime.so build/config.cmake build/libtvm_allvisible.so build/microtvm_template_projects build/crttest build/standalone_crt build/build.ninja 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',
)
@@ -576,7 +571,7 @@ def build(node_type) {
cmake_build("${ci_gpu} --no-gpu", 'build', '-j2')
make_standalone_crt("${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 build/crttest build/standalone_crt build/build.ninja",
+ 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 build/crttest build/standalone_crt build/build.ninja 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',
)
})
@@ -589,7 +584,7 @@ def build(node_type) {
}
}
try {
- build('CPU-SMALL-SPOT')
+ build('CPU')
} catch (Exception ex) {
build('CPU-SMALL')
}
diff --git a/ci/jenkins/generated/hexagon_jenkinsfile.groovy b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
index c86389d1bd..e63f6fb14b 100644
--- a/ci/jenkins/generated/hexagon_jenkinsfile.groovy
+++ b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/i386_jenkinsfile.groovy b/ci/jenkins/generated/i386_jenkinsfile.groovy
index 4afc8fb64f..c6eeba1861 100644
--- a/ci/jenkins/generated/i386_jenkinsfile.groovy
+++ b/ci/jenkins/generated/i386_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/lint_jenkinsfile.groovy b/ci/jenkins/generated/lint_jenkinsfile.groovy
index 88bec7fc4c..64cda41994 100644
--- a/ci/jenkins/generated/lint_jenkinsfile.groovy
+++ b/ci/jenkins/generated/lint_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy b/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
index f26eaace67..6a878b21ee 100644
--- a/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
+++ b/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/minimal_jenkinsfile.groovy b/ci/jenkins/generated/minimal_jenkinsfile.groovy
index 89e6a0c59e..cdca556bd0 100644
--- a/ci/jenkins/generated/minimal_jenkinsfile.groovy
+++ b/ci/jenkins/generated/minimal_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/riscv_jenkinsfile.groovy b/ci/jenkins/generated/riscv_jenkinsfile.groovy
index fce33f230e..d378a7a599 100644
--- a/ci/jenkins/generated/riscv_jenkinsfile.groovy
+++ b/ci/jenkins/generated/riscv_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
diff --git a/ci/jenkins/generated/wasm_jenkinsfile.groovy b/ci/jenkins/generated/wasm_jenkinsfile.groovy
index e47fdd4cd5..1dea6599d0 100644
--- a/ci/jenkins/generated/wasm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/wasm_jenkinsfile.groovy
@@ -54,11 +54,6 @@
// - Periodically cleanup the old versions on local workers
//
-// unity: Skip less relevant tests
-// to reduce ci time and resource cost
-// (DO NOT UPSTREAM TO MAIN)
-return
-
// ============================= IMPORTANT NOTE =============================
// This file is generated by 'jenkins/generate.py'. Do not edit this file directly!
// Make edits to 'jenkins/Jenkinsfile.j2' and regenerate this with
(tvm) 02/02: downgrade cmake version requirement
Posted by sy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
syfeng pushed a commit to branch test_all_cases_on_unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 6ac15713c568e2f8a1726890b6568a424ff42962
Author: Siyuan Feng <hz...@sjtu.edu.cn>
AuthorDate: Thu Jan 18 11:10:03 2024 +0800
downgrade cmake version requirement
---
CMakeLists.txt | 2 +-
cmake/modules/CUDA.cmake | 3 +++
tests/scripts/task_config_build_gpu.sh | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7fd92e25a..058f477dbd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.24)
+cmake_minimum_required(VERSION 3.18)
project(tvm C CXX)
# Utility functions
diff --git a/cmake/modules/CUDA.cmake b/cmake/modules/CUDA.cmake
index 6128743283..84f466f591 100644
--- a/cmake/modules/CUDA.cmake
+++ b/cmake/modules/CUDA.cmake
@@ -40,6 +40,9 @@ if(USE_CUDA)
list(APPEND TVM_RUNTIME_LINKER_LIBS ${CUDA_NVRTC_LIBRARY})
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
+ if(CMAKE_VERSION VERSION_LESS "3.24")
+ message(FATAL_ERROR "CMAKE_CUDA_ARCHITECTURES not set. Please upgrade cmake to 3.24 to use native, or set CMAKE_CUDA_ARCHITECTURES manually")
+ endif()
message(STATUS "CMAKE_CUDA_ARCHITECTURES not set, using native")
set(CMAKE_CUDA_ARCHITECTURES native)
endif()
diff --git a/tests/scripts/task_config_build_gpu.sh b/tests/scripts/task_config_build_gpu.sh
index 37ab0a87f1..e68e646ce1 100755
--- a/tests/scripts/task_config_build_gpu.sh
+++ b/tests/scripts/task_config_build_gpu.sh
@@ -54,3 +54,4 @@ echo set\(USE_PIPELINE_EXECUTOR ON\) >> config.cmake
echo set\(USE_CUTLASS ON\) >> config.cmake
echo set\(USE_CMSISNN ON\) >> config.cmake
echo set\(USE_MSC ON\) >> config.cmake
+echo set\(CMAKE_CUDA_ARCHITECTURES 75\) >> config.cmake