You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by dr...@apache.org on 2022/09/06 17:44:37 UTC

[tvm] branch csinn_jenkins updated (b20440078a -> 8121225cba)

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

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


 discard b20440078a Update Build.groovy.j2 and Jenkinsfile
 discard 47ce0dc084 Merge branch 'main' into csinn_jenkins
 discard 486d80c75c Update Build.groovy.j2
 discard 874221608d Update tests/scripts/task_config_build_csinn2.sh
 discard 27b4775d04 Update tests/scripts/task_config_build_c906.sh
 discard 4764035ec5 [ci] Add CSI-NN2 build to Jenkins.
     add f7cc992a98 [MetaSchedule] Complete NCHW Conv2D Winograd Kernel Scheduling (#12648)
     add f114d55bee [TIR] Preserve annotations after lower opaque block (#12572)
     add c2824a84d5 [Testing] Allow NCHW layout in `relay_workload` (#12656)
     add acbbd9f15a [ETHOSN] Improve inferring new shape of the Reshape operator (#12594)
     add 0c374544a3 [TIR][TVMScript] Update printer / parser to make T.allocate return buffer var (#12412)
     add d54c0651ec [Torch][AArch64] Skip test_load_model___wrong_language__to_pytorch (#12660)
     add a399e6ce97 [ci] Add linter for PR title and body (#12367)
     add c6516a534f [TIR] Allow string/buffer arguments to Schedule cache_read/write (#12661)
     add aa6c7123d0 [ETHOSN] Fix tests pylint errors (#12649)
     add 38ba8c0bb6 [Relay] Extract intermediate node by its expression ID (#12646)
     add 038f15b5e2 [Hexagon] Implement fixed_point_multiply op through intrinsics. (#12659)
     add 32f9a5f4d4 [MetaSchedule] Fix autoinline for single const consumer block (#12668)
     add effcd2251b Add methods to get and set late-bound constants. (#12664)
     add e814f798ed [Adreno] Change compute/schedule for ToMixedPrecision pass (#12537)
     add 54786bbff3 [hexagon][tests] re-enable maxpool hardware test (#12676)
     add 50dad0d9a3 [HEXAGON][TOPI]Slice Op Argmax uint8 (#12472)
     add eecb7fd494 [MetaSchedule] Introduce `Union` and `OrderedUnion` in Database (#12628)
     add 8ca8f24d54 [TIR] Handle DeclBuffer in ToSSA (#12679)
     add 4acddb1d03 [COMMUNITY] Yaxing Cai -> Reviewer (#12683)
     add b2d6600064 [PyTorch] Fix aten::arange for pytorch (#12681)
     add bb56f2a972 [MetaSchedule][UX] Convenient Object Creation (#12643)
     add 445a14f4c6 [ETHOSN] Fix some more pylint issues (#12675)
     add 0549a08f4d [ETHOSN] Add support for concatenate with negative axis (#12686)
     add 7c7b0f7a2f [ci][tvmbot] Trigger GitHub Actions after merging (#12361)
     add 0cbf3aa6e2 [AutoTVM][Testing] Add `tune_relay` scripts (#12685)
     add 4ed6564f76 [ci] Add tests for PR linter (#12680)
     add 2734d044a2 [Adreno] Define memory_info for global.texture* (#12647)
     add 28cad58fd0 [Web][Emscripten] Update EMCC C++ standard to C++17 (#12693)
     add 5dcf62288b [ETHOSN] Use pytest parameterization for integration tests (#12688)
     add b3edb6e227 [Apps] Pin android_camera TensorFlow/Keras dependency version (#12710)
     add 832cffa1c1 [Hexagon][Runtime] Better support for 2-tier memory (#12574)
     add 744649e53b [TIR][StorageRewrite] Allow in-place buffer reuse of non-flat memory (#12655)
     add d4201a9d8e [COMMUNITY] ekalda -> Committer (#12715)
     new e0c8e0458d [ci] Add CSI-NN2 build to Jenkins
     new 1b5e177a22 Update tests/scripts/task_config_build_c906.sh
     new 53630ad2e0 Update tests/scripts/task_config_build_csinn2.sh
     new 33eb4b293c Update Build.groovy.j2
     new 1fb214c836 Update Build.groovy.j2 and Jenkinsfile
     new afb26d22d5 Update ci/jenkins/Build.groovy.j2
     new 5af0447384 remove comment code
     new 8121225cba fix Jenkinsfile

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   (b20440078a)
            \
             N -- N -- N   refs/heads/csinn_jenkins (8121225cba)

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 8 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:
 CONTRIBUTORS.md                                    |   2 +
 Jenkinsfile                                        |  32 +-
 apps/android_camera/models/requirements.txt        |   4 +-
 ci/jenkins/Build.groovy.j2                         |   9 +-
 ci/jenkins/Prepare.groovy.j2                       |  21 +-
 ci/scripts/check_pr.py                             | 145 ++++
 ci/scripts/git_skip_ci.py                          |   2 +-
 ci/scripts/github_tvmbot.py                        |  22 +-
 include/tvm/meta_schedule/database.h               |  16 +
 include/tvm/runtime/vm/executable.h                |  13 +
 include/tvm/target/target_info.h                   |   6 +-
 include/tvm/tir/stmt.h                             |   1 +
 python/tvm/auto_scheduler/testing/tune_relay.py    |   6 +
 .../cuda_graph => autotvm/testing}/__init__.py     |   1 +
 .../testing/tune_relay.py                          | 154 ++--
 python/tvm/meta_schedule/builder/__init__.py       |   2 +-
 python/tvm/meta_schedule/builder/builder.py        |  17 +
 python/tvm/meta_schedule/database/__init__.py      |   4 +-
 python/tvm/meta_schedule/database/database.py      |  41 +-
 python/tvm/meta_schedule/database/json_database.py |  31 +-
 .../database/ordered_union_database.py             | 112 +++
 .../tvm/meta_schedule/database/union_database.py   | 112 +++
 python/tvm/meta_schedule/runner/__init__.py        |  12 +-
 python/tvm/meta_schedule/runner/runner.py          |  22 +-
 .../tvm/meta_schedule/search_strategy/__init__.py  |   2 +-
 .../search_strategy/search_strategy.py             |  29 +
 .../tvm/meta_schedule/space_generator/__init__.py  |   2 +-
 .../space_generator/space_generator.py             |  28 +
 .../tvm/meta_schedule/task_scheduler/__init__.py   |   4 +-
 .../meta_schedule/task_scheduler/task_scheduler.py |  20 +
 python/tvm/meta_schedule/testing/relay_workload.py |  47 +-
 python/tvm/meta_schedule/testing/tune_relay.py     |   6 +
 python/tvm/relay/analysis/analysis.py              |  38 +
 python/tvm/relay/frontend/pytorch.py               |  32 +-
 python/tvm/relay/op/contrib/ethosn.py              |   2 -
 python/tvm/relay/op/strategy/adreno.py             | 142 +---
 python/tvm/runtime/vm.py                           |  10 +
 python/tvm/script/tir/scope_handler.py             |  57 +-
 python/tvm/tir/schedule/schedule.py                |  42 +-
 python/tvm/topi/adreno/conv2d_alter_op.py          |  48 +-
 python/tvm/topi/adreno/conv2d_nchw.py              | 117 ++-
 python/tvm/topi/adreno/conv2d_nchw_winograd.py     |  45 +-
 python/tvm/topi/adreno/conv2d_nhwc.py              | 111 ++-
 python/tvm/topi/adreno/conv2d_nhwc_winograd.py     |  45 +-
 python/tvm/topi/adreno/conv2d_winograd_common.py   |  19 +-
 python/tvm/topi/adreno/depthwise_conv2d_nchw.py    |  42 +-
 python/tvm/topi/adreno/depthwise_conv2d_nhwc.py    |  38 +-
 python/tvm/topi/adreno/utils.py                    |  14 +
 python/tvm/topi/cuda/conv2d_winograd.py            |   1 +
 python/tvm/topi/hexagon/__init__.py                |   1 +
 python/tvm/topi/hexagon/injective.py               |   7 +-
 python/tvm/topi/hexagon/slice_ops/argmax.py        |   7 +
 python/tvm/topi/hexagon/tensor_intrin.py           |  71 ++
 src/meta_schedule/database/json_database.cc        |  22 -
 .../database/ordered_union_database.cc             |  86 +++
 src/meta_schedule/database/union_database.cc       |  88 +++
 src/meta_schedule/schedule_rule/auto_inline.cc     |   5 +-
 src/meta_schedule/schedule_rule/winograd.cc        |  29 +-
 src/meta_schedule/utils.h                          |  22 +
 src/printer/tvmscript_printer.cc                   | 128 ++--
 src/relay/analysis/extract_intermediate_expr.cc    |  88 +++
 src/relay/backend/contrib/ethosn/ethosn_api.cc     |  25 +-
 src/runtime/hexagon/hexagon_buffer.cc              |  17 +-
 src/runtime/hexagon/hexagon_device_api.cc          |  47 +-
 src/runtime/vm/executable.cc                       |  24 +-
 src/tir/transforms/ir_utils.cc                     |   9 +
 src/tir/transforms/lower_opaque_block.cc           |  60 +-
 src/tir/transforms/storage_rewrite.cc              |  20 +-
 tests/lint/pylint.sh                               |   1 +
 tests/python/ci/sample_prs/pr10786-badci.json      | 130 ----
 .../ci/sample_prs/pr10786-changes-requested.json   | 131 ----
 tests/python/ci/sample_prs/pr10786-co-authors.json | 129 ----
 .../ci/sample_prs/pr10786-invalid-author.json      | 130 ----
 tests/python/ci/sample_prs/pr10786-merges.json     | 129 ----
 .../python/ci/sample_prs/pr10786-missing-job.json  | 129 ----
 .../python/ci/sample_prs/pr10786-nottriggered.json | 129 ----
 tests/python/ci/sample_prs/pr10786-oldreview.json  | 129 ----
 .../{pr10786-ignore-jobs.json => pr10786.json}     |   5 +-
 .../sample_prs/pr11244-unauthorized-comment.json   | 103 ---
 tests/python/ci/sample_prs/pr11267-no-review.json  | 144 ----
 tests/python/ci/sample_prs/pr11442-rerun-ci.json   | 183 -----
 tests/python/ci/test_ci.py                         | 846 +++++++++------------
 tests/python/ci/test_tvmbot.py                     | 400 ++++++----
 tests/python/ci/test_utils.py                      |  33 +-
 tests/python/contrib/test_ethosn/infrastructure.py |  53 +-
 .../python/contrib/test_ethosn/test_concatenate.py |  51 +-
 .../test_ethosn/test_constant_duplication.py       |  10 +-
 tests/python/contrib/test_ethosn/test_conv2d.py    | 409 +++++-----
 .../test_ethosn/test_convert_equivalents.py        |   1 +
 .../contrib/test_ethosn/test_depth_to_space.py     |  55 +-
 .../contrib/test_ethosn/test_fullyconnected.py     | 114 +--
 .../python/contrib/test_ethosn/test_leaky_relu.py  |   2 +
 tests/python/contrib/test_ethosn/test_mean.py      |   2 +
 tests/python/contrib/test_ethosn/test_multiply.py  |   3 +
 tests/python/contrib/test_ethosn/test_networks.py  |  27 +-
 .../contrib/test_ethosn/test_partition_params.py   |  24 +-
 tests/python/contrib/test_ethosn/test_pooling.py   |  81 +-
 tests/python/contrib/test_ethosn/test_relu.py      |  67 +-
 .../python/contrib/test_ethosn/test_requantize.py  |   5 +
 tests/python/contrib/test_ethosn/test_reshape.py   |  31 +-
 tests/python/contrib/test_ethosn/test_resize.py    |  42 +-
 tests/python/contrib/test_ethosn/test_sigmoid.py   |  79 +-
 tests/python/contrib/test_ethosn/test_split.py     |  58 +-
 tests/python/contrib/test_ethosn/test_tanh.py      |   4 +
 .../python/contrib/test_ethosn/test_topologies.py  | 106 +--
 .../test_ethosu/test_copy_compute_reordering.py    | 228 +++---
 .../contrib/test_ethosu/test_encode_constants.py   |  48 +-
 .../contrib/test_ethosu/test_hoist_allocates.py    |  75 +-
 .../contrib/test_ethosu/test_merge_constants.py    | 158 ++--
 .../test_ethosu/test_remove_concatenates.py        |   3 +-
 .../contrib/test_ethosu/test_replace_conv2d.py     |  18 +-
 .../contrib/test_ethosu/test_replace_copy.py       |   9 +-
 tests/python/contrib/test_ethosu/test_scheduler.py |  12 +-
 .../test_ethosu/test_tir_to_cs_translator.py       |  31 +-
 .../test_hexagon/test_fixed_point_multiply.py      | 140 ++++
 .../contrib/test_hexagon/test_memory_alloc.py      |  85 +++
 .../contrib/test_hexagon/topi/test_argmax_slice.py |  14 +-
 .../test_hexagon/topi/test_max_pool2d_slice.py     |   3 -
 tests/python/driver/tvmc/test_frontends.py         |   4 +
 .../test_analysis_extract_intermediate_expr.py     | 130 ++++
 tests/python/relay/test_conv2d_nchw_texture.py     |   4 +-
 tests/python/relay/test_conv2d_nhwc_texture.py     |   2 +-
 tests/python/relay/test_vm.py                      |  80 ++
 tests/python/unittest/test_link_params.py          |   9 +-
 .../python/unittest/test_meta_schedule_database.py |  37 +
 .../test_meta_schedule_postproc_verify_gpu_code.py |  24 +-
 ...test_meta_schedule_schedule_rule_auto_inline.py |  28 +
 .../unittest/test_meta_schedule_space_cuda.py      |  13 +-
 .../unittest/test_meta_schedule_tune_relay.py      |  36 +-
 .../test_tir_analysis_calculate_workspace.py       |  18 +-
 .../test_tir_analysis_detect_buffer_access_lca.py  |   2 +-
 tests/python/unittest/test_tir_ptx_mma.py          | 103 +--
 tests/python/unittest/test_tir_ptx_mma_sp.py       |  32 +-
 tests/python/unittest/test_tir_renew_defs.py       |   3 +-
 .../unittest/test_tir_schedule_cache_read_write.py |   8 +-
 .../unittest/test_tir_structural_equal_hash.py     |   2 +-
 .../test_tir_transform_convert_for_loops_serial.py |   4 +-
 .../test_tir_transform_extract_constants.py        |   9 +-
 .../unittest/test_tir_transform_flatten_buffer.py  |  36 +-
 .../test_tir_transform_inject_virtual_thread.py    |  12 +-
 .../test_tir_transform_lower_opaque_block.py       |  55 +-
 ...test_tir_transform_renormalize_split_pattern.py |  18 +-
 .../unittest/test_tir_transform_storage_flatten.py |   4 +-
 .../unittest/test_tir_transform_storage_rewrite.py | 122 ++-
 .../unittest/test_tir_transform_unroll_loop.py     |   6 +-
 tests/python/unittest/test_tir_usmp_algo.py        |  38 +-
 .../test_tir_usmp_analysis_extract_bufferinfo.py   | 146 ++--
 ...ransform_convert_pool_allocations_to_offsets.py |  49 +-
 tests/python/unittest/test_tir_usmp_utils.py       |  12 +-
 tests/python/unittest/test_tvmscript_roundtrip.py  |  82 +-
 tests/scripts/task_config_build_c906.sh            |   2 -
 tests/scripts/task_config_build_csinn2.sh          |   2 -
 web/Makefile                                       |   2 +-
 153 files changed, 4519 insertions(+), 3898 deletions(-)
 create mode 100755 ci/scripts/check_pr.py
 copy python/tvm/{contrib/cuda_graph => autotvm/testing}/__init__.py (95%)
 copy python/tvm/{auto_scheduler => autotvm}/testing/tune_relay.py (53%)
 create mode 100644 python/tvm/meta_schedule/database/ordered_union_database.py
 create mode 100644 python/tvm/meta_schedule/database/union_database.py
 create mode 100644 python/tvm/topi/hexagon/tensor_intrin.py
 create mode 100644 src/meta_schedule/database/ordered_union_database.cc
 create mode 100644 src/meta_schedule/database/union_database.cc
 create mode 100644 src/relay/analysis/extract_intermediate_expr.cc
 delete mode 100644 tests/python/ci/sample_prs/pr10786-badci.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-changes-requested.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-co-authors.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-invalid-author.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-merges.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-missing-job.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-nottriggered.json
 delete mode 100644 tests/python/ci/sample_prs/pr10786-oldreview.json
 rename tests/python/ci/sample_prs/{pr10786-ignore-jobs.json => pr10786.json} (78%)
 delete mode 100644 tests/python/ci/sample_prs/pr11244-unauthorized-comment.json
 delete mode 100644 tests/python/ci/sample_prs/pr11267-no-review.json
 delete mode 100644 tests/python/ci/sample_prs/pr11442-rerun-ci.json
 create mode 100644 tests/python/contrib/test_hexagon/test_fixed_point_multiply.py
 create mode 100644 tests/python/contrib/test_hexagon/test_memory_alloc.py
 create mode 100644 tests/python/relay/test_analysis_extract_intermediate_expr.py


[tvm] 03/08: Update tests/scripts/task_config_build_csinn2.sh

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

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

commit 53630ad2e0d1eb13324b867a4bfe5853792de146
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Wed Aug 31 09:49:16 2022 +0800

    Update tests/scripts/task_config_build_csinn2.sh
    
    Co-authored-by: driazati <94...@users.noreply.github.com>
---
 tests/scripts/task_config_build_csinn2.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/scripts/task_config_build_csinn2.sh b/tests/scripts/task_config_build_csinn2.sh
index 747c4493f9..4eb721f6dd 100755
--- a/tests/scripts/task_config_build_csinn2.sh
+++ b/tests/scripts/task_config_build_csinn2.sh
@@ -16,8 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-set -e
-set -u
+set -euxo pipefail
 
 BUILD_DIR=$1
 mkdir -p "$BUILD_DIR"


[tvm] 06/08: Update ci/jenkins/Build.groovy.j2

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

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

commit afb26d22d5b2150be2abdf2b2183f32bfb6ff932
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Thu Sep 1 09:07:48 2022 +0800

    Update ci/jenkins/Build.groovy.j2
    
    Co-authored-by: driazati <94...@users.noreply.github.com>
---
 ci/jenkins/Build.groovy.j2 | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ci/jenkins/Build.groovy.j2 b/ci/jenkins/Build.groovy.j2
index 85ba180477..75c0927794 100644
--- a/ci/jenkins/Build.groovy.j2
+++ b/ci/jenkins/Build.groovy.j2
@@ -266,11 +266,14 @@ stage('Build') {
           docker_init(ci_riscv)
           init_git()
           sh (
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86 &&
-                     ${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
-            label: 'Create CSINN2 x86 and c906 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
+            label: 'Create CSINN2 x86 cmake config',
           )
           make(ci_riscv, 'build-csinn2-x86', '-j2')
+          sh (
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 c906 cmake config',
+          )
           make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
         }
       }


[tvm] 02/08: Update tests/scripts/task_config_build_c906.sh

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

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

commit 1b5e177a2233da369bb523386be8bf916e8ccf80
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Wed Aug 31 09:49:08 2022 +0800

    Update tests/scripts/task_config_build_c906.sh
    
    Co-authored-by: driazati <94...@users.noreply.github.com>
---
 tests/scripts/task_config_build_c906.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/scripts/task_config_build_c906.sh b/tests/scripts/task_config_build_c906.sh
index 9488558acf..68f1cd4ae4 100755
--- a/tests/scripts/task_config_build_c906.sh
+++ b/tests/scripts/task_config_build_c906.sh
@@ -16,8 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-set -e
-set -u
+set -euxo pipefail
 
 BUILD_DIR=$1
 mkdir -p "$BUILD_DIR"


[tvm] 04/08: Update Build.groovy.j2

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

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

commit 33eb4b293c080ac56a5ef5c8c70cc603763a94c1
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Wed Aug 31 09:52:48 2022 +0800

    Update Build.groovy.j2
---
 ci/jenkins/Build.groovy.j2 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ci/jenkins/Build.groovy.j2 b/ci/jenkins/Build.groovy.j2
index 4823a62b16..a44cc85c7e 100644
--- a/ci/jenkins/Build.groovy.j2
+++ b/ci/jenkins/Build.groovy.j2
@@ -273,7 +273,6 @@ stage('Build') {
           )
           make(ci_riscv, 'build-csinn2-x86', '-j2')
           make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
-          {{ m.upload_artifacts(tag='riscv-csinn2', filenames=tvm_lib, folders=microtvm_template_projects) }}
         }
       }
      } else {


[tvm] 07/08: remove comment code

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

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

commit 5af04473841b1d8baa2ff4140bdc4620cff210ce
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Mon Sep 5 15:23:47 2022 +0800

    remove comment code
---
 tests/scripts/task_config_build_c906.sh   | 2 --
 tests/scripts/task_config_build_csinn2.sh | 2 --
 2 files changed, 4 deletions(-)

diff --git a/tests/scripts/task_config_build_c906.sh b/tests/scripts/task_config_build_c906.sh
index 68f1cd4ae4..d1baaf5f63 100755
--- a/tests/scripts/task_config_build_c906.sh
+++ b/tests/scripts/task_config_build_c906.sh
@@ -25,5 +25,3 @@ cp ../cmake/config.cmake .
 
 echo set\(USE_CPP_RPC ON\) >> config.cmake
 echo set\(USE_LIBBACKTRACE OFF\) >> config.cmake
-# echo set\(USE_CSINN "/opt/csi-nn2"\) >> config.cmake
-# echo set\(USE_CSINN_DEVICE_RUNTIME C906\) >> config.cmake
diff --git a/tests/scripts/task_config_build_csinn2.sh b/tests/scripts/task_config_build_csinn2.sh
index 4eb721f6dd..ba7909f42c 100755
--- a/tests/scripts/task_config_build_csinn2.sh
+++ b/tests/scripts/task_config_build_csinn2.sh
@@ -26,5 +26,3 @@ cp ../cmake/config.cmake .
 echo set\(USE_RPC ON\) >> config.cmake
 echo set\(USE_LLVM llvm-config-10\) >> config.cmake
 echo set\(USE_OPENMP gnu\) >> config.cmake
-# echo set\(USE_CSINN "/opt/csi-nn2"\) >> config.cmake
-# echo set\(USE_CSINN_DEVICE_RUNTIME X86\) >> config.cmake


[tvm] 01/08: [ci] Add CSI-NN2 build to Jenkins

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

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

commit e0c8e0458d27dcf51316721970cd1bf039834bc2
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Tue Aug 30 15:09:13 2022 +0800

    [ci] Add CSI-NN2 build to Jenkins
---
 Jenkinsfile                               | 56 ++++++++++++++++++++++++++++++-
 ci/jenkins/Build.groovy.j2                | 21 ++++++++++++
 tests/scripts/task_config_build_c906.sh   | 30 +++++++++++++++++
 tests/scripts/task_config_build_csinn2.sh | 31 +++++++++++++++++
 4 files changed, 137 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2b73508da0..b920282299 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,7 +45,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 2022-08-30T15:26:50.100067
+// Generated at 2022-08-31T10:03:05.681701
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
@@ -1252,6 +1252,60 @@ stage('Build') {
       Utils.markStageSkippedForConditional('BUILD: RISC-V')
     }
   },
+  'BUILD: CSINN2': {
+    if (!skip_ci && is_docs_only_build != 1) {
+      node('CPU-SMALL') {
+        ws("workspace/exec_${env.EXECUTOR_NUMBER}/tvm/build-csinn2") {
+          docker_init(ci_riscv)
+          init_git()
+          sh (
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
+            label: 'Create CSINN2 x86 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 c906 cmake config',
+          )
+          make(ci_riscv, 'build-csinn2-x86', '-j2')
+          make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
+          sh(
+            script: """
+              set -eux
+              retry() {
+                local max_retries=\$1
+                shift
+                local n=0
+                local backoff_max=30
+                until [ "\$n" -ge \$max_retries ]
+                do
+                    "\$@" && break
+                    n=\$((n+1))
+                    if [ "\$n" -eq \$max_retries ]; then
+                        echo "failed to update after attempt \$n / \$max_retries, giving up"
+                        exit 1
+                    fi
+
+                    WAIT=\$(python3 -c 'import random; print(random.randint(10, 30))')
+                    echo "failed to update \$n / \$max_retries, waiting \$WAIT to try again"
+                    sleep \$WAIT
+                done
+              }
+
+              md5sum build/libtvm.so
+              retry 3 aws s3 cp --no-progress build/libtvm.so s3://${s3_prefix}/riscv-csinn2/build/libtvm.so
+              md5sum build/libtvm_runtime.so
+              retry 3 aws s3 cp --no-progress build/libtvm_runtime.so s3://${s3_prefix}/riscv-csinn2/build/libtvm_runtime.so
+              md5sum build/config.cmake
+              retry 3 aws s3 cp --no-progress build/config.cmake s3://${s3_prefix}/riscv-csinn2/build/config.cmake
+              retry 3 aws s3 cp --no-progress build/microtvm_template_projects s3://${s3_prefix}/riscv-csinn2/build/microtvm_template_projects --recursive
+            """,
+            label: 'Upload artifacts to S3',
+          )
+
+        }
+      }
+     } else {
+      Utils.markStageSkippedForConditional('BUILD: CSINN2')
+    }
+  },
   )
 }
 }
diff --git a/ci/jenkins/Build.groovy.j2 b/ci/jenkins/Build.groovy.j2
index 51360b7d9c..4823a62b16 100644
--- a/ci/jenkins/Build.groovy.j2
+++ b/ci/jenkins/Build.groovy.j2
@@ -259,6 +259,27 @@ stage('Build') {
       Utils.markStageSkippedForConditional('BUILD: RISC-V')
     }
   },
+  'BUILD: CSINN2': {
+    if (!skip_ci && is_docs_only_build != 1) {
+      node('CPU-SMALL') {
+        ws({{ m.per_exec_ws('tvm/build-csinn2') }}) {
+          docker_init(ci_riscv)
+          init_git()
+          sh (
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
+            label: 'Create CSINN2 x86 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 c906 cmake config',
+          )
+          make(ci_riscv, 'build-csinn2-x86', '-j2')
+          make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
+          {{ m.upload_artifacts(tag='riscv-csinn2', filenames=tvm_lib, folders=microtvm_template_projects) }}
+        }
+      }
+     } else {
+      Utils.markStageSkippedForConditional('BUILD: CSINN2')
+    }
+  },
   )
 }
 }
diff --git a/tests/scripts/task_config_build_c906.sh b/tests/scripts/task_config_build_c906.sh
new file mode 100755
index 0000000000..9488558acf
--- /dev/null
+++ b/tests/scripts/task_config_build_c906.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -e
+set -u
+
+BUILD_DIR=$1
+mkdir -p "$BUILD_DIR"
+cd "$BUILD_DIR"
+cp ../cmake/config.cmake .
+
+echo set\(USE_CPP_RPC ON\) >> config.cmake
+echo set\(USE_LIBBACKTRACE OFF\) >> config.cmake
+# echo set\(USE_CSINN "/opt/csi-nn2"\) >> config.cmake
+# echo set\(USE_CSINN_DEVICE_RUNTIME C906\) >> config.cmake
diff --git a/tests/scripts/task_config_build_csinn2.sh b/tests/scripts/task_config_build_csinn2.sh
new file mode 100755
index 0000000000..747c4493f9
--- /dev/null
+++ b/tests/scripts/task_config_build_csinn2.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -e
+set -u
+
+BUILD_DIR=$1
+mkdir -p "$BUILD_DIR"
+cd "$BUILD_DIR"
+cp ../cmake/config.cmake .
+
+echo set\(USE_RPC ON\) >> config.cmake
+echo set\(USE_LLVM llvm-config-10\) >> config.cmake
+echo set\(USE_OPENMP gnu\) >> config.cmake
+# echo set\(USE_CSINN "/opt/csi-nn2"\) >> config.cmake
+# echo set\(USE_CSINN_DEVICE_RUNTIME X86\) >> config.cmake


[tvm] 05/08: Update Build.groovy.j2 and Jenkinsfile

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

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

commit 1fb214c8368adccc02143f75b6533a87dea5b185
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Wed Aug 31 10:09:24 2022 +0800

    Update Build.groovy.j2 and Jenkinsfile
---
 Jenkinsfile                | 41 +++--------------------------------------
 ci/jenkins/Build.groovy.j2 |  7 +++----
 2 files changed, 6 insertions(+), 42 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index b920282299..53dc716ac5 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1259,47 +1259,12 @@ stage('Build') {
           docker_init(ci_riscv)
           init_git()
           sh (
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
-            label: 'Create CSINN2 x86 cmake config',
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
-            label: 'Create CSINN2 c906 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86 &&
+                     ${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 x86 and c906 cmake config',
           )
           make(ci_riscv, 'build-csinn2-x86', '-j2')
           make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
-          sh(
-            script: """
-              set -eux
-              retry() {
-                local max_retries=\$1
-                shift
-                local n=0
-                local backoff_max=30
-                until [ "\$n" -ge \$max_retries ]
-                do
-                    "\$@" && break
-                    n=\$((n+1))
-                    if [ "\$n" -eq \$max_retries ]; then
-                        echo "failed to update after attempt \$n / \$max_retries, giving up"
-                        exit 1
-                    fi
-
-                    WAIT=\$(python3 -c 'import random; print(random.randint(10, 30))')
-                    echo "failed to update \$n / \$max_retries, waiting \$WAIT to try again"
-                    sleep \$WAIT
-                done
-              }
-
-              md5sum build/libtvm.so
-              retry 3 aws s3 cp --no-progress build/libtvm.so s3://${s3_prefix}/riscv-csinn2/build/libtvm.so
-              md5sum build/libtvm_runtime.so
-              retry 3 aws s3 cp --no-progress build/libtvm_runtime.so s3://${s3_prefix}/riscv-csinn2/build/libtvm_runtime.so
-              md5sum build/config.cmake
-              retry 3 aws s3 cp --no-progress build/config.cmake s3://${s3_prefix}/riscv-csinn2/build/config.cmake
-              retry 3 aws s3 cp --no-progress build/microtvm_template_projects s3://${s3_prefix}/riscv-csinn2/build/microtvm_template_projects --recursive
-            """,
-            label: 'Upload artifacts to S3',
-          )
-
         }
       }
      } else {
diff --git a/ci/jenkins/Build.groovy.j2 b/ci/jenkins/Build.groovy.j2
index a44cc85c7e..85ba180477 100644
--- a/ci/jenkins/Build.groovy.j2
+++ b/ci/jenkins/Build.groovy.j2
@@ -266,10 +266,9 @@ stage('Build') {
           docker_init(ci_riscv)
           init_git()
           sh (
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
-            label: 'Create CSINN2 x86 cmake config',
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
-            label: 'Create CSINN2 c906 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86 &&
+                     ${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 x86 and c906 cmake config',
           )
           make(ci_riscv, 'build-csinn2-x86', '-j2')
           make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')


[tvm] 08/08: fix Jenkinsfile

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

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

commit 8121225cba6fdc40ae8748041092a378fcbb9832
Author: alter-xp <xp...@linux.alibaba.com>
AuthorDate: Mon Sep 5 20:35:49 2022 +0800

    fix Jenkinsfile
---
 Jenkinsfile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 53dc716ac5..2482bbb279 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,7 +45,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 2022-08-31T10:03:05.681701
+// Generated at 2022-09-05T20:35:04.661727
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
@@ -1259,11 +1259,14 @@ stage('Build') {
           docker_init(ci_riscv)
           init_git()
           sh (
-            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86 &&
-                     ${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
-            label: 'Create CSINN2 x86 and c906 cmake config',
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_csinn2.sh build-csinn2-x86",
+            label: 'Create CSINN2 x86 cmake config',
           )
           make(ci_riscv, 'build-csinn2-x86', '-j2')
+          sh (
+            script: "${docker_run} ${ci_riscv} ./tests/scripts/task_config_build_c906.sh build-csinn2-c906",
+            label: 'Create CSINN2 c906 cmake config',
+          )
           make(ci_riscv, 'build-csinn2-c906', 'tvm_rpc -j2')
         }
       }