Skip to content

Commit aa7d2bf

Browse files
authored
[CI] Modify test cases to accommodate the CI upgrades (#14651)
* [CI] update all the images * Update test_config * Fix llvm_codegen_test err * Update with newly built images * update pylintrc * Update i386 build * Don't use ninja for i386 * Update torch tests * Debug i386 platform * check ec2 instance type for i386 * Remove gluoncv ssd example * Update pylint * Update test images * Skip torch jit trace issue for arm * Fix pylint * update tests * update i386 build * update s3.py to skip non-existing files * update pylint * Update pylint * Fix tests * update clang-format to 15 * update tests for clang-format-15 * run with newly images * skip oom test for i386 * Upgrade for DGL sample * fix black * Ignore a warning in doc * New run with newly images * Use newly generated tlcpackstaging images
1 parent 133807f commit aa7d2bf

File tree

149 files changed

+380
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+380
-510
lines changed

apps/bundle_deploy/demo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int main(int argc, char** argv) {
129129
getFunc<void(void*, const char*, void*)>(bundle, "tvm_runtime_set_input")(handle, "data", &input);
130130
gettimeofday(&t2, 0);
131131

132-
auto* ftvm_runtime_run = (auto (*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
132+
auto* ftvm_runtime_run = (auto(*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
133133
assert(!dlerror());
134134
ftvm_runtime_run(handle);
135135
gettimeofday(&t3, 0);

apps/bundle_deploy/test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int main(int argc, char** argv) {
124124
getFunc<void(void*, const char*, void*)>(bundle, "tvm_runtime_set_input")(handle, "x", &input);
125125
gettimeofday(&t2, 0);
126126

127-
auto* ftvm_runtime_run = (auto (*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
127+
auto* ftvm_runtime_run = (auto(*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
128128
assert(!dlerror());
129129
ftvm_runtime_run(handle);
130130
gettimeofday(&t3, 0);

apps/microtvm/zephyr/template_project/src/host_driven/fvp/semihost.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ uint32_t semihost_cmd(uint32_t opcode, void* arg) {
3434
"mov r1, %[arg]\n\t"
3535
"bkpt #0xab\n\r"
3636
"mov %[ret_val], r0"
37-
: [ ret_val ] "=r"(ret_val)
38-
: [ opcode ] "r"(opcode), [ arg ] "r"(arg)
37+
: [ret_val] "=r"(ret_val)
38+
: [opcode] "r"(opcode), [arg] "r"(arg)
3939
: "r1", "memory");
4040

4141
return ret_val;

ci/jenkins/docker-images.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
# This data file is read during when Jenkins runs job to determine docker images.
1919
[jenkins]
20-
ci_arm: tlcpack/ci-arm:20230314-060145-ccc0b9162
21-
ci_cortexm: tlcpackstaging/ci_cortexm:20230124-233207-fd3f8035c
22-
ci_cpu: tlcpack/ci_cpu:20230409-060118-a84a2cbe0
23-
ci_gpu: tlcpack/ci-gpu:20230318-060139-2ff41c615
24-
ci_hexagon: tlcpack/ci_hexagon:20230127-185848-95fa22308
25-
ci_i386: tlcpack/ci-i386:20221013-060115-61c9742ea
26-
ci_lint: tlcpack/ci_lint:20230322-060120-46fb2ff35
27-
ci_minimal: tlcpack/ci-minimal:20230117-070124-125886350
28-
ci_riscv: tlcpack/ci-riscv:20221013-060115-61c9742ea
29-
ci_wasm: tlcpack/ci-wasm:20221013-060115-61c9742ea
20+
ci_arm: tlcpackstaging/ci_arm:20230504-142417-4d37a0a0
21+
ci_cortexm: tlcpackstaging/ci_cortexm:20230504-142417-4d37a0a0
22+
ci_cpu: tlcpackstaging/ci_cpu:20230504-142417-4d37a0a0
23+
ci_gpu: tlcpackstaging/ci_gpu:20230504-142417-4d37a0a0
24+
ci_hexagon: tlcpackstaging/ci_hexagon:20230504-142417-4d37a0a0
25+
ci_i386: tlcpackstaging/ci_i386:20230504-142417-4d37a0a0
26+
ci_lint: tlcpackstaging/ci_lint:20230504-142417-4d37a0a0
27+
ci_minimal: tlcpackstaging/ci_minimal:20230504-142417-4d37a0a0
28+
ci_riscv: tlcpackstaging/ci_riscv:20230504-142417-4d37a0a0
29+
ci_wasm: tlcpackstaging/ci_wasm:20230504-142417-4d37a0a0

ci/scripts/jenkins/s3.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,19 @@ def s3(source: str, destination: str, recursive: bool) -> List[str]:
118118

119119
if args.items is None:
120120
if args.action == "upload":
121-
logging.error(f"Cannot upload without --items")
121+
logging.error("Cannot upload without --items")
122122
exit(1)
123123
else:
124124
# Download the whole prefix
125125
items = ["."]
126126

127127
else:
128-
items = args.items
128+
items = []
129+
for item in args.items:
130+
if not Path(item).exists():
131+
logging.warning(f"The path doesn't exist: {item}")
132+
else:
133+
items.append(item)
129134

130135
for item in items:
131136
if action == Action.DOWNLOAD:

docs/Doxyfile

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,6 @@ TAB_SIZE = 8
247247

248248
ALIASES =
249249

250-
# This tag can be used to specify a number of word-keyword mappings (TCL only).
251-
# A mapping has the form "name=value". For example adding "class=itcl::class"
252-
# will allow you to use the command class in the itcl::class meaning.
253-
254-
TCL_SUBST =
255-
256250
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
257251
# only. Doxygen will then generate output that is more tailored for C. For
258252
# instance, some of the names that are used will be different. The list of all
@@ -1025,13 +1019,6 @@ VERBATIM_HEADERS = YES
10251019

10261020
ALPHABETICAL_INDEX = YES
10271021

1028-
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
1029-
# which the alphabetical index list will be split.
1030-
# Minimum value: 1, maximum value: 20, default value: 5.
1031-
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1032-
1033-
COLS_IN_ALPHA_INDEX = 5
1034-
10351022
# In case all classes in a project start with a common prefix, all classes will
10361023
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
10371024
# can be used to specify a prefix (or a list of prefixes) that should be ignored
@@ -2057,12 +2044,6 @@ EXTERNAL_GROUPS = YES
20572044

20582045
#EXTERNAL_PAGES = YES
20592046

2060-
# The PERL_PATH should be the absolute path and name of the perl script
2061-
# interpreter (i.e. the result of 'which perl').
2062-
# The default file (with absolute path) is: /usr/bin/perl.
2063-
2064-
PERL_PATH = /usr/bin/perl
2065-
20662047
#---------------------------------------------------------------------------
20672048
# Configuration options related to the dot tool
20682049
#---------------------------------------------------------------------------
@@ -2076,15 +2057,6 @@ PERL_PATH = /usr/bin/perl
20762057

20772058
CLASS_DIAGRAMS = YES
20782059

2079-
# You can define message sequence charts within doxygen comments using the \msc
2080-
# command. Doxygen will then run the mscgen tool (see:
2081-
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
2082-
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
2083-
# the mscgen tool resides. If left empty the tool is assumed to be found in the
2084-
# default search path.
2085-
2086-
MSCGEN_PATH =
2087-
20882060
# You can include diagrams made with dia in doxygen documentation. Doxygen will
20892061
# then run dia to produce the diagram and insert it in the documentation. The
20902062
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
@@ -2319,7 +2291,7 @@ MSCFILE_DIRS =
23192291
# Minimum value: 0, maximum value: 10000, default value: 50.
23202292
# This tag requires that the tag HAVE_DOT is set to YES.
23212293

2322-
DOT_GRAPH_MAX_NODES = 50
2294+
DOT_GRAPH_MAX_NODES = 300
23232295

23242296
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
23252297
# generated by dot. A depth value of 3 means that only nodes reachable from the

docs/legacy_redirect.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@
140140
"../../how_to/deploy_models/deploy_quantized.html",
141141
],
142142
["tutorials/frontend/deploy_sparse.html", "../../how_to/deploy_models/deploy_sparse.html"],
143-
[
144-
"tutorials/frontend/deploy_ssd_gluoncv.html",
145-
"../../how_to/deploy_models/deploy_ssd_gluoncv.html",
146-
],
147143
[
148144
"tutorials/dev/bring_your_own_datatypes.html",
149145
"../../how_to/extend_tvm/bring_your_own_datatypes.html",

gallery/how_to/deploy_models/deploy_ssd_gluoncv.py

Lines changed: 0 additions & 132 deletions
This file was deleted.

gallery/how_to/tune_with_autoscheduler/tune_conv2d_layer_cuda.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def conv2d_layer(N, H, W, CO, CI, KH, KW, stride, padding):
119119
# file and apply it.
120120

121121
# Run auto-tuning (search)
122-
task.tune(tune_option)
122+
# We do not run the tuning in our webpage server since it takes too long.
123+
# Uncomment the following line to run it by yourself.
124+
# task.tune(tune_option)
123125
# Apply the best schedule
124126
sch, args = task.apply_best(log_file)
125127

@@ -209,4 +211,6 @@ def resume_search(task, log_file):
209211
del measure_ctx
210212

211213

212-
resume_search(task, log_file)
214+
# We do not run the tuning in our webpage server since it takes too long.
215+
# Uncomment the following line to run it by yourself.
216+
# resume_search(task, log_file)

0 commit comments

Comments
 (0)