Skip to content

Commit

Permalink
[CI] Modify test cases to accommodate the CI upgrades (apache#14651)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
yongwww authored May 5, 2023
1 parent 133807f commit aa7d2bf
Show file tree
Hide file tree
Showing 149 changed files with 380 additions and 510 deletions.
2 changes: 1 addition & 1 deletion apps/bundle_deploy/demo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int main(int argc, char** argv) {
getFunc<void(void*, const char*, void*)>(bundle, "tvm_runtime_set_input")(handle, "data", &input);
gettimeofday(&t2, 0);

auto* ftvm_runtime_run = (auto (*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
auto* ftvm_runtime_run = (auto(*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
assert(!dlerror());
ftvm_runtime_run(handle);
gettimeofday(&t3, 0);
Expand Down
2 changes: 1 addition & 1 deletion apps/bundle_deploy/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int main(int argc, char** argv) {
getFunc<void(void*, const char*, void*)>(bundle, "tvm_runtime_set_input")(handle, "x", &input);
gettimeofday(&t2, 0);

auto* ftvm_runtime_run = (auto (*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
auto* ftvm_runtime_run = (auto(*)(void*)->void)dlsym(bundle, "tvm_runtime_run");
assert(!dlerror());
ftvm_runtime_run(handle);
gettimeofday(&t3, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ uint32_t semihost_cmd(uint32_t opcode, void* arg) {
"mov r1, %[arg]\n\t"
"bkpt #0xab\n\r"
"mov %[ret_val], r0"
: [ ret_val ] "=r"(ret_val)
: [ opcode ] "r"(opcode), [ arg ] "r"(arg)
: [ret_val] "=r"(ret_val)
: [opcode] "r"(opcode), [arg] "r"(arg)
: "r1", "memory");

return ret_val;
Expand Down
20 changes: 10 additions & 10 deletions ci/jenkins/docker-images.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

# This data file is read during when Jenkins runs job to determine docker images.
[jenkins]
ci_arm: tlcpack/ci-arm:20230314-060145-ccc0b9162
ci_cortexm: tlcpackstaging/ci_cortexm:20230124-233207-fd3f8035c
ci_cpu: tlcpack/ci_cpu:20230409-060118-a84a2cbe0
ci_gpu: tlcpack/ci-gpu:20230318-060139-2ff41c615
ci_hexagon: tlcpack/ci_hexagon:20230127-185848-95fa22308
ci_i386: tlcpack/ci-i386:20221013-060115-61c9742ea
ci_lint: tlcpack/ci_lint:20230322-060120-46fb2ff35
ci_minimal: tlcpack/ci-minimal:20230117-070124-125886350
ci_riscv: tlcpack/ci-riscv:20221013-060115-61c9742ea
ci_wasm: tlcpack/ci-wasm:20221013-060115-61c9742ea
ci_arm: tlcpackstaging/ci_arm:20230504-142417-4d37a0a0
ci_cortexm: tlcpackstaging/ci_cortexm:20230504-142417-4d37a0a0
ci_cpu: tlcpackstaging/ci_cpu:20230504-142417-4d37a0a0
ci_gpu: tlcpackstaging/ci_gpu:20230504-142417-4d37a0a0
ci_hexagon: tlcpackstaging/ci_hexagon:20230504-142417-4d37a0a0
ci_i386: tlcpackstaging/ci_i386:20230504-142417-4d37a0a0
ci_lint: tlcpackstaging/ci_lint:20230504-142417-4d37a0a0
ci_minimal: tlcpackstaging/ci_minimal:20230504-142417-4d37a0a0
ci_riscv: tlcpackstaging/ci_riscv:20230504-142417-4d37a0a0
ci_wasm: tlcpackstaging/ci_wasm:20230504-142417-4d37a0a0
9 changes: 7 additions & 2 deletions ci/scripts/jenkins/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,19 @@ def s3(source: str, destination: str, recursive: bool) -> List[str]:

if args.items is None:
if args.action == "upload":
logging.error(f"Cannot upload without --items")
logging.error("Cannot upload without --items")
exit(1)
else:
# Download the whole prefix
items = ["."]

else:
items = args.items
items = []
for item in args.items:
if not Path(item).exists():
logging.warning(f"The path doesn't exist: {item}")
else:
items.append(item)

for item in items:
if action == Action.DOWNLOAD:
Expand Down
30 changes: 1 addition & 29 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,6 @@ TAB_SIZE = 8

ALIASES =

# This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class"
# will allow you to use the command class in the itcl::class meaning.

TCL_SUBST =

# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
Expand Down Expand Up @@ -1025,13 +1019,6 @@ VERBATIM_HEADERS = YES

ALPHABETICAL_INDEX = YES

# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
# which the alphabetical index list will be split.
# Minimum value: 1, maximum value: 20, default value: 5.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.

COLS_IN_ALPHA_INDEX = 5

# In case all classes in a project start with a common prefix, all classes will
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
# can be used to specify a prefix (or a list of prefixes) that should be ignored
Expand Down Expand Up @@ -2057,12 +2044,6 @@ EXTERNAL_GROUPS = YES

#EXTERNAL_PAGES = YES

# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of 'which perl').
# The default file (with absolute path) is: /usr/bin/perl.

PERL_PATH = /usr/bin/perl

#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
Expand All @@ -2076,15 +2057,6 @@ PERL_PATH = /usr/bin/perl

CLASS_DIAGRAMS = YES

# You can define message sequence charts within doxygen comments using the \msc
# command. Doxygen will then run the mscgen tool (see:
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
# the mscgen tool resides. If left empty the tool is assumed to be found in the
# default search path.

MSCGEN_PATH =

# You can include diagrams made with dia in doxygen documentation. Doxygen will
# then run dia to produce the diagram and insert it in the documentation. The
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
Expand Down Expand Up @@ -2319,7 +2291,7 @@ MSCFILE_DIRS =
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.

DOT_GRAPH_MAX_NODES = 50
DOT_GRAPH_MAX_NODES = 300

# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
Expand Down
4 changes: 0 additions & 4 deletions docs/legacy_redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@
"../../how_to/deploy_models/deploy_quantized.html",
],
["tutorials/frontend/deploy_sparse.html", "../../how_to/deploy_models/deploy_sparse.html"],
[
"tutorials/frontend/deploy_ssd_gluoncv.html",
"../../how_to/deploy_models/deploy_ssd_gluoncv.html",
],
[
"tutorials/dev/bring_your_own_datatypes.html",
"../../how_to/extend_tvm/bring_your_own_datatypes.html",
Expand Down
132 changes: 0 additions & 132 deletions gallery/how_to/deploy_models/deploy_ssd_gluoncv.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def conv2d_layer(N, H, W, CO, CI, KH, KW, stride, padding):
# file and apply it.

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

Expand Down Expand Up @@ -209,4 +211,6 @@ def resume_search(task, log_file):
del measure_ctx


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

0 comments on commit aa7d2bf

Please sign in to comment.