Skip to content

Commit d361585

Browse files
authored
[release][v0.9] Remove VTA submodule (#11992)
1 parent 2737063 commit d361585

File tree

14 files changed

+58
-146
lines changed

14 files changed

+58
-146
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
[submodule "3rdparty/rang"]
88
path = 3rdparty/rang
99
url = https://github.com/agauniyal/rang.git
10-
[submodule "3rdparty/vta-hw"]
11-
path = 3rdparty/vta-hw
12-
url = https://github.com/apache/tvm-vta.git
1310
[submodule "3rdparty/libbacktrace"]
1411
path = 3rdparty/libbacktrace
1512
url = https://github.com/tlc-pack/libbacktrace.git

3rdparty/vta-hw

Lines changed: 0 additions & 1 deletion
This file was deleted.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ if(USE_PIPELINE_EXECUTOR)
456456
endif(USE_PIPELINE_EXECUTOR)
457457

458458
# Module rules
459-
include(cmake/modules/VTA.cmake)
459+
# include(cmake/modules/VTA.cmake)
460460
include(cmake/modules/StandaloneCrt.cmake)
461461
include(cmake/modules/Zephyr.cmake)
462462
include(cmake/modules/Arduino.cmake)

Jenkinsfile

Lines changed: 13 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
tvm_path = Path(os.pardir)
5353

5454
sys.path.insert(0, str(tvm_path.resolve() / "python"))
55-
sys.path.insert(0, str(tvm_path.resolve() / "vta" / "python"))
55+
# sys.path.insert(0, str(tvm_path.resolve() / "vta" / "python"))
5656
sys.path.insert(0, str(tvm_path.resolve() / "docs"))
5757

5858
# -- General configuration ------------------------------------------------
@@ -220,7 +220,7 @@ def git_describe_version(original_version):
220220
tvm_path.joinpath("gallery", "how_to", "tune_with_autoscheduler"),
221221
tvm_path.joinpath("gallery", "how_to", "work_with_microtvm"),
222222
tvm_path.joinpath("gallery", "how_to", "extend_tvm"),
223-
tvm_path.joinpath("vta", "tutorials"),
223+
# tvm_path.joinpath("vta", "tutorials"),
224224
]
225225

226226
gallery_dirs = [
@@ -234,16 +234,17 @@ def git_describe_version(original_version):
234234
"how_to/tune_with_autoscheduler",
235235
"how_to/work_with_microtvm",
236236
"how_to/extend_tvm",
237-
"topic/vta/tutorials",
237+
# "topic/vta/tutorials",
238238
]
239239

240240
subsection_order = ExplicitOrder(
241-
str(p)
242-
for p in [
243-
tvm_path / "vta" / "tutorials" / "frontend",
244-
tvm_path / "vta" / "tutorials" / "optimize",
245-
tvm_path / "vta" / "tutorials" / "autotvm",
246-
]
241+
# str(p)
242+
# for p in [
243+
# tvm_path / "vta" / "tutorials" / "frontend",
244+
# tvm_path / "vta" / "tutorials" / "optimize",
245+
# tvm_path / "vta" / "tutorials" / "autotvm",
246+
# ]
247+
[]
247248
)
248249

249250
# Explicitly define the order within a subsection.
@@ -399,7 +400,7 @@ def force_gc(gallery_conf, fname):
399400
header_links = [
400401
("Community", "https://tvm.apache.org/community"),
401402
("Download", "https://tvm.apache.org/download"),
402-
("VTA", "https://tvm.apache.org/vta"),
403+
# ("VTA", "https://tvm.apache.org/vta"),
403404
("Blog", "https://tvm.apache.org/blog"),
404405
("Docs", "https://tvm.apache.org/docs"),
405406
("Conference", "https://tvmconf.org"),

jenkins/Build.groovy.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def python_unittest(image) {
1313
}
1414

1515
def fsim_test(image) {
16-
sh (
17-
script: "${docker_run} ${image} ./tests/scripts/task_python_vta_fsim.sh",
18-
label: 'Run VTA tests in FSIM',
19-
)
16+
// sh (
17+
// script: "${docker_run} ${image} ./tests/scripts/task_python_vta_fsim.sh",
18+
// label: 'Run VTA tests in FSIM',
19+
// )
2020
}
2121

2222
def cmake_build(image, path, make_flag) {

jenkins/Jenkinsfile.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
9494
// Filenames for stashing between build and test steps
9595
{% set tvm_runtime = ['build/libtvm_runtime.so', 'build/config.cmake'] %}
9696
{% set tvm_lib = ['build/libtvm.so'] + tvm_runtime %}
97-
{% set tvm_multilib = ['build/libtvm.so', 'build/libvta_fsim.so'] + tvm_runtime %}
98-
{% set tvm_multilib_tsim = ['build/libvta_tsim.so'] + tvm_multilib %}
97+
{# comment #}{% set tvm_multilib = ['build/libtvm.so', 'build/libvta_fsim.so'] + tvm_runtime %}{# endcomment #}
98+
{% set tvm_multilib = ['build/libtvm.so'] + tvm_runtime %}
99+
{# comment #}{% set tvm_multilib_tsim = ['build/libvta_tsim.so'] + tvm_multilib %}{# endcomment #}
100+
{% set tvm_multilib_tsim = [] + tvm_multilib %}
99101
{% set microtvm_template_projects = ['build/microtvm_template_projects',] %}
100102
{% set hexagon_api = ['build/hexagon_api_output',] %}
101103
s3_prefix = "tvm-jenkins-artifacts-prod/tvm/${env.BRANCH_NAME}/${env.BUILD_NUMBER}"

jenkins/Prepare.groovy.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def init_git() {
1515

1616
// Determine merge commit to use for all stages
1717
sh (
18-
script: 'git fetch origin main',
18+
script: 'git fetch origin v0.9.0',
1919
label: 'Fetch upstream',
2020
)
2121
if (upstream_revision == null) {
@@ -27,7 +27,7 @@ def init_git() {
2727
}
2828
sh (
2929
script: "git -c user.name=TVM-Jenkins -c user.email=jenkins@tvm.apache.org merge ${upstream_revision}",
30-
label: 'Merge to origin/main'
30+
label: 'Merge to origin/v0.9.0'
3131
)
3232

3333
sh(
@@ -98,8 +98,8 @@ def should_skip_slow_tests(pr_number) {
9898
}
9999

100100
def cancel_previous_build() {
101-
// cancel previous build if it is not on main.
102-
if (env.BRANCH_NAME != 'main') {
101+
// cancel previous build if it is not on v0.9.0.
102+
if (env.BRANCH_NAME != 'v0.9.0') {
103103
def buildNumber = env.BUILD_NUMBER as int
104104
// Milestone API allows us to cancel previous build
105105
// with the same milestone number

jenkins/Test.groovy.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ stage('Test') {
211211
cpp_unittest(ci_cpu)
212212
python_unittest(ci_cpu)
213213
fsim_test(ci_cpu)
214-
sh (
215-
script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta_tsim.sh",
216-
label: 'Run VTA tests in TSIM',
217-
)
214+
// sh (
215+
// script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta_tsim.sh",
216+
// label: 'Run VTA tests in TSIM',
217+
// )
218218
{% endcall %}
219219
{% call m.test_step(
220220
name="test: QEMU",

tests/python/contrib/test_verilator/test_mobilenet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def is_tflite_available():
215215
return False
216216

217217

218-
@pytest.mark.skipif(skip_test(), reason="Skip because Verilator codegen is not available")
218+
@pytest.mark.skip(reason="Skip because Verilator codegen is not available")
219219
def tmobilenet(lanes):
220220
"""Mobilenet test template.
221221
Paramters
@@ -239,6 +239,7 @@ def tmobilenet(lanes):
239239
print_test_info(lanes, values["cycle_counter"])
240240

241241

242+
@pytest.mark.skip(reason="Skip because Verilator codegen is not available")
242243
def test_mobilenet():
243244
"""Mobilenet tests."""
244245
tmobilenet(4)

0 commit comments

Comments
 (0)