[tvm] branch main updated (e1b49c8cb6 -> 2eeb37eef0)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from e1b49c8cb6 [TOPI] Fix data race of batch multibox detection (#14343) add 2eeb37eef0 [Arith][Bugfix] Simplify "x - 1 < y" into "x <= y" (#14528) No new revisions were added by this update. Summary of changes: src/arith/rewrite_simplify.cc | 54 -- .../python/unittest/test_arith_rewrite_simplify.py | 21 - 2 files changed, 59 insertions(+), 16 deletions(-)
[tvm] 01/01: Add overall-jenkins build as a test.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git commit 6419dbf4216f1785b512bbe5a5092edbf493d196 Author: Andrew Reusch AuthorDate: Thu Apr 6 09:43:49 2023 -0700 Add overall-jenkins build as a test. --- ci/jenkins/generated/overall_jenkinsfile.groovy| 586 + ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 61 +++ 2 files changed, 647 insertions(+) diff --git a/ci/jenkins/generated/overall_jenkinsfile.groovy b/ci/jenkins/generated/overall_jenkinsfile.groovy new file mode 100644 index 00..1aaa3d8f7b --- /dev/null +++ b/ci/jenkins/generated/overall_jenkinsfile.groovy @@ -0,0 +1,586 @@ +// 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. +// -*- mode: groovy -*- + +// 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. + +// Jenkins pipeline +// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/ + +// Docker env used for testing +// Different image may have different version tag +// because some of them are more stable than anoter. +// +// Docker images are maintained by PMC, cached in dockerhub +// and remains relatively stable over the time. +// Flow for upgrading docker env(need commiter) +// +// - Send PR to upgrade build script in the repo +// - Build the new docker image +// - Tag the docker image with a new version and push to a binary cache. +// - Update the version in the Jenkinsfile, send a PR +// - Fix any issues wrt to the new image version in the PR +// - Merge the PR and now we are in new version +// - Tag the new version as the lates +// - Periodically cleanup the old versions on local workers +// + +// = 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 +// '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 2023-04-06T10:10:52.666312 + +import org.jenkinsci.plugins.pipeline.modeldefinition.Utils +// These are set at runtime from data in ci/jenkins/docker-images.yml, update +// image tags in that file +ci_lint = '' +ci_gpu = '' +ci_cpu = '' +ci_minimal = '' +ci_wasm = '' +ci_i386 = '' +ci_cortexm = '' +ci_arm = '' +ci_hexagon = '' +ci_riscv = '' + +// Parameters to allow overriding (in Jenkins UI), the images +// to be used by a given build. When provided, they take precedence +// over default values above. +properties([ + parameters([ +string(name: 'ci_arm_param', defaultValue: ''), +string(name: 'ci_cortexm_param', defaultValue: ''), +string(name: 'ci_cpu_param', defaultValue: ''), +string(name: 'ci_gpu_param', defaultValue: ''), +string(name: 'ci_hexagon_param', defaultValue: ''), +string(name: 'ci_i386_param', defaultValue: ''), +string(name: 'ci_lint_param', defaultValue: ''), +string(name: 'ci_minimal_param', defaultValue: ''), +str
[tvm] branch areusch/overall-jenkins updated (41fec3a50c -> 6419dbf421)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git discard 41fec3a50c Add overall-jenkins build as a test. new 6419dbf421 Add overall-jenkins build as a test. 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 (41fec3a50c) \ N -- N -- N refs/heads/areusch/overall-jenkins (6419dbf421) 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 1 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: ci/jenkins/generated/overall_jenkinsfile.groovy| 6 +++--- ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
[tvm] 01/01: Add overall-jenkins build as a test.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git commit 41fec3a50ceb608a141ec2af81849c7c09c131e7 Author: Andrew Reusch AuthorDate: Thu Apr 6 09:43:49 2023 -0700 Add overall-jenkins build as a test. --- ci/jenkins/generated/overall_jenkinsfile.groovy| 586 + ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 61 +++ 2 files changed, 647 insertions(+) diff --git a/ci/jenkins/generated/overall_jenkinsfile.groovy b/ci/jenkins/generated/overall_jenkinsfile.groovy new file mode 100644 index 00..bcffaf9ed5 --- /dev/null +++ b/ci/jenkins/generated/overall_jenkinsfile.groovy @@ -0,0 +1,586 @@ +// 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. +// -*- mode: groovy -*- + +// 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. + +// Jenkins pipeline +// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/ + +// Docker env used for testing +// Different image may have different version tag +// because some of them are more stable than anoter. +// +// Docker images are maintained by PMC, cached in dockerhub +// and remains relatively stable over the time. +// Flow for upgrading docker env(need commiter) +// +// - Send PR to upgrade build script in the repo +// - Build the new docker image +// - Tag the docker image with a new version and push to a binary cache. +// - Update the version in the Jenkinsfile, send a PR +// - Fix any issues wrt to the new image version in the PR +// - Merge the PR and now we are in new version +// - Tag the new version as the lates +// - Periodically cleanup the old versions on local workers +// + +// = 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 +// '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 2023-04-06T10:07:53.456788 + +import org.jenkinsci.plugins.pipeline.modeldefinition.Utils +// These are set at runtime from data in ci/jenkins/docker-images.yml, update +// image tags in that file +ci_lint = '' +ci_gpu = '' +ci_cpu = '' +ci_minimal = '' +ci_wasm = '' +ci_i386 = '' +ci_cortexm = '' +ci_arm = '' +ci_hexagon = '' +ci_riscv = '' + +// Parameters to allow overriding (in Jenkins UI), the images +// to be used by a given build. When provided, they take precedence +// over default values above. +properties([ + parameters([ +string(name: 'ci_arm_param', defaultValue: ''), +string(name: 'ci_cortexm_param', defaultValue: ''), +string(name: 'ci_cpu_param', defaultValue: ''), +string(name: 'ci_gpu_param', defaultValue: ''), +string(name: 'ci_hexagon_param', defaultValue: ''), +string(name: 'ci_i386_param', defaultValue: ''), +string(name: 'ci_lint_param', defaultValue: ''), +string(name: 'ci_minimal_param', defaultValue: ''), +str
[tvm] branch areusch/overall-jenkins updated (1c9c1fb631 -> 41fec3a50c)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git discard 1c9c1fb631 Add overall-jenkins build as a test. new 41fec3a50c Add overall-jenkins build as a test. 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 (1c9c1fb631) \ N -- N -- N refs/heads/areusch/overall-jenkins (41fec3a50c) 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 1 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: ci/jenkins/generated/overall_jenkinsfile.groovy| 4 ++-- ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
[tvm] 01/01: Add overall-jenkins build as a test.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git commit 1c9c1fb631f742ba76eec848c5265a8a73fb1d3e Author: Andrew Reusch AuthorDate: Thu Apr 6 09:43:49 2023 -0700 Add overall-jenkins build as a test. --- ci/jenkins/generated/overall_jenkinsfile.groovy| 586 + ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 61 +++ 2 files changed, 647 insertions(+) diff --git a/ci/jenkins/generated/overall_jenkinsfile.groovy b/ci/jenkins/generated/overall_jenkinsfile.groovy new file mode 100644 index 00..1bb81ae167 --- /dev/null +++ b/ci/jenkins/generated/overall_jenkinsfile.groovy @@ -0,0 +1,586 @@ +// 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. +// -*- mode: groovy -*- + +// 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. + +// Jenkins pipeline +// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/ + +// Docker env used for testing +// Different image may have different version tag +// because some of them are more stable than anoter. +// +// Docker images are maintained by PMC, cached in dockerhub +// and remains relatively stable over the time. +// Flow for upgrading docker env(need commiter) +// +// - Send PR to upgrade build script in the repo +// - Build the new docker image +// - Tag the docker image with a new version and push to a binary cache. +// - Update the version in the Jenkinsfile, send a PR +// - Fix any issues wrt to the new image version in the PR +// - Merge the PR and now we are in new version +// - Tag the new version as the lates +// - Periodically cleanup the old versions on local workers +// + +// = 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 +// '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 2023-04-06T10:06:28.605888 + +import org.jenkinsci.plugins.pipeline.modeldefinition.Utils +// These are set at runtime from data in ci/jenkins/docker-images.yml, update +// image tags in that file +ci_lint = '' +ci_gpu = '' +ci_cpu = '' +ci_minimal = '' +ci_wasm = '' +ci_i386 = '' +ci_cortexm = '' +ci_arm = '' +ci_hexagon = '' +ci_riscv = '' + +// Parameters to allow overriding (in Jenkins UI), the images +// to be used by a given build. When provided, they take precedence +// over default values above. +properties([ + parameters([ +string(name: 'ci_arm_param', defaultValue: ''), +string(name: 'ci_cortexm_param', defaultValue: ''), +string(name: 'ci_cpu_param', defaultValue: ''), +string(name: 'ci_gpu_param', defaultValue: ''), +string(name: 'ci_hexagon_param', defaultValue: ''), +string(name: 'ci_i386_param', defaultValue: ''), +string(name: 'ci_lint_param', defaultValue: ''), +string(name: 'ci_minimal_param', defaultValue: ''), +str
[tvm] branch areusch/overall-jenkins updated (f86a6ec250 -> 1c9c1fb631)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git discard f86a6ec250 Add overall-jenkins build as a test. new 1c9c1fb631 Add overall-jenkins build as a test. 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 (f86a6ec250) \ N -- N -- N refs/heads/areusch/overall-jenkins (1c9c1fb631) 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 1 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: ci/jenkins/generated/overall_jenkinsfile.groovy| 4 ++-- ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
[tvm] branch areusch/overall-jenkins updated (4cb0503502 -> f86a6ec250)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git discard 4cb0503502 Add overall-jenkins build as a test. new f86a6ec250 Add overall-jenkins build as a test. 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 (4cb0503502) \ N -- N -- N refs/heads/areusch/overall-jenkins (f86a6ec250) 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 1 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: ci/jenkins/generated/overall_jenkinsfile.groovy| 545 - ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 20 +- 2 files changed, 563 insertions(+), 2 deletions(-)
[tvm] 01/01: Add overall-jenkins build as a test.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git commit f86a6ec250f7dd12e6ffd4bb4cb7548c2d0579ef Author: Andrew Reusch AuthorDate: Thu Apr 6 09:43:49 2023 -0700 Add overall-jenkins build as a test. --- ci/jenkins/generated/overall_jenkinsfile.groovy| 586 + ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 61 +++ 2 files changed, 647 insertions(+) diff --git a/ci/jenkins/generated/overall_jenkinsfile.groovy b/ci/jenkins/generated/overall_jenkinsfile.groovy new file mode 100644 index 00..5f0f40ea1e --- /dev/null +++ b/ci/jenkins/generated/overall_jenkinsfile.groovy @@ -0,0 +1,586 @@ +// 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. +// -*- mode: groovy -*- + +// 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. + +// Jenkins pipeline +// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/ + +// Docker env used for testing +// Different image may have different version tag +// because some of them are more stable than anoter. +// +// Docker images are maintained by PMC, cached in dockerhub +// and remains relatively stable over the time. +// Flow for upgrading docker env(need commiter) +// +// - Send PR to upgrade build script in the repo +// - Build the new docker image +// - Tag the docker image with a new version and push to a binary cache. +// - Update the version in the Jenkinsfile, send a PR +// - Fix any issues wrt to the new image version in the PR +// - Merge the PR and now we are in new version +// - Tag the new version as the lates +// - Periodically cleanup the old versions on local workers +// + +// = 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 +// '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 2023-04-06T10:05:00.313930 + +import org.jenkinsci.plugins.pipeline.modeldefinition.Utils +// These are set at runtime from data in ci/jenkins/docker-images.yml, update +// image tags in that file +ci_lint = '' +ci_gpu = '' +ci_cpu = '' +ci_minimal = '' +ci_wasm = '' +ci_i386 = '' +ci_cortexm = '' +ci_arm = '' +ci_hexagon = '' +ci_riscv = '' + +// Parameters to allow overriding (in Jenkins UI), the images +// to be used by a given build. When provided, they take precedence +// over default values above. +properties([ + parameters([ +string(name: 'ci_arm_param', defaultValue: ''), +string(name: 'ci_cortexm_param', defaultValue: ''), +string(name: 'ci_cpu_param', defaultValue: ''), +string(name: 'ci_gpu_param', defaultValue: ''), +string(name: 'ci_hexagon_param', defaultValue: ''), +string(name: 'ci_i386_param', defaultValue: ''), +string(name: 'ci_lint_param', defaultValue: ''), +string(name: 'ci_minimal_param', defaultValue: ''), +str
[tvm] 01/01: Add overall-jenkins build as a test.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git commit 4cb0503502aa10eab274f78e546cc9be1e92ae31 Author: Andrew Reusch AuthorDate: Thu Apr 6 09:43:49 2023 -0700 Add overall-jenkins build as a test. --- ci/jenkins/generated/overall_jenkinsfile.groovy| 43 ++ ci/jenkins/templates/overall_jenkinsfile.groovy.j2 | 43 ++ 2 files changed, 86 insertions(+) diff --git a/ci/jenkins/generated/overall_jenkinsfile.groovy b/ci/jenkins/generated/overall_jenkinsfile.groovy new file mode 100644 index 00..c7ce6b8385 --- /dev/null +++ b/ci/jenkins/generated/overall_jenkinsfile.groovy @@ -0,0 +1,43 @@ +def findSha1(b) { + for (hudson.scm.SCM s : b.getProperties().get("SCMs")) { +try { + hudson.plugins.git.GitSCM gs = (hudson.plugins.git.GitSCM)s; + hudson.plugins.git.util.BuildData bd = gs.getBuildData(b); + return bd.getLastBuiltRevision().getSha1String(); +} catch (ClassCastException e) { +} + } + return ""; +} + + +def getBuilds(jobNames, branch, sha1) { + var jobs = {}; + for (String ciBuildName : jobNames) { +job = Jenkins.instance.getItemByFullName(ciBuildName).getItem(branch); +int num = 0; +for (org.jenkinsci.plugins.workflow.job.WorkflowRun b : job.getNewBuilds()) { + num++; + if (findSha1(b) == sha1) { +jobs[ciBuildName] = b; +break; + } +} + } + return jobs; +} + +PROJECT_NAMES = ["tvm-cortexm", "tvm-cpu"]); + +if (!env.BRANCH_NAME.startsWith("PR-")) { + waitUntil { +var jobs = getBuilds(PROJECT_NAMES, env.BRANCH_NAME, env.COMMIT_ID) +if (jobs.size() != PROJECT_NAMES.length()) { + return false; +} + } + + for (var j : jobs.keySet()) { +waitForBuild j + } +} diff --git a/ci/jenkins/templates/overall_jenkinsfile.groovy.j2 b/ci/jenkins/templates/overall_jenkinsfile.groovy.j2 new file mode 100644 index 00..c7ce6b8385 --- /dev/null +++ b/ci/jenkins/templates/overall_jenkinsfile.groovy.j2 @@ -0,0 +1,43 @@ +def findSha1(b) { + for (hudson.scm.SCM s : b.getProperties().get("SCMs")) { +try { + hudson.plugins.git.GitSCM gs = (hudson.plugins.git.GitSCM)s; + hudson.plugins.git.util.BuildData bd = gs.getBuildData(b); + return bd.getLastBuiltRevision().getSha1String(); +} catch (ClassCastException e) { +} + } + return ""; +} + + +def getBuilds(jobNames, branch, sha1) { + var jobs = {}; + for (String ciBuildName : jobNames) { +job = Jenkins.instance.getItemByFullName(ciBuildName).getItem(branch); +int num = 0; +for (org.jenkinsci.plugins.workflow.job.WorkflowRun b : job.getNewBuilds()) { + num++; + if (findSha1(b) == sha1) { +jobs[ciBuildName] = b; +break; + } +} + } + return jobs; +} + +PROJECT_NAMES = ["tvm-cortexm", "tvm-cpu"]); + +if (!env.BRANCH_NAME.startsWith("PR-")) { + waitUntil { +var jobs = getBuilds(PROJECT_NAMES, env.BRANCH_NAME, env.COMMIT_ID) +if (jobs.size() != PROJECT_NAMES.length()) { + return false; +} + } + + for (var j : jobs.keySet()) { +waitForBuild j + } +}
[tvm] branch areusch/overall-jenkins created (now 4cb0503502)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/overall-jenkins in repository https://gitbox.apache.org/repos/asf/tvm.git at 4cb0503502 Add overall-jenkins build as a test. This branch includes the following new commits: new 4cb0503502 Add overall-jenkins build as a test. The 1 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.
[tvm] branch v0.11.0 updated: [Release] Adjust version to 0.11.1 (#14300)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch v0.11.0 in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/v0.11.0 by this push: new 046910a410 [Release] Adjust version to 0.11.1 (#14300) 046910a410 is described below commit 046910a4100c5a822133ade5dfe851a1eb0ad95a Author: Leandro Nunes AuthorDate: Tue Mar 14 22:53:59 2023 + [Release] Adjust version to 0.11.1 (#14300) * Adjust version numbers for source package release, which does not contain git metadata to infer the release version. Change-Id: Ica12161b509a406cfe0ff26dd545b9a7ad20f89a --- conda/recipe/meta.yaml | 2 +- include/tvm/runtime/c_runtime_api.h | 2 +- python/tvm/_ffi/libinfo.py | 2 +- version.py | 2 +- web/package.json| 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conda/recipe/meta.yaml b/conda/recipe/meta.yaml index 519b84c570..e435d78719 100644 --- a/conda/recipe/meta.yaml +++ b/conda/recipe/meta.yaml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -{% set version = '0.11.dev0' %} +{% set version = '0.11.1' %} {% set pkg_name = 'tvm' %} {% set cuda_tag = cuda_version | replace('.', '') %} # [cuda] {% set pkg_name = pkg_name + '-cu' + cuda_tag %} # [cuda] diff --git a/include/tvm/runtime/c_runtime_api.h b/include/tvm/runtime/c_runtime_api.h index cd11466977..d15dbbdef2 100644 --- a/include/tvm/runtime/c_runtime_api.h +++ b/include/tvm/runtime/c_runtime_api.h @@ -66,7 +66,7 @@ #endif // TVM version -#define TVM_VERSION "0.11.dev0" +#define TVM_VERSION "0.11.1" // TVM Runtime is DLPack compatible. #include diff --git a/python/tvm/_ffi/libinfo.py b/python/tvm/_ffi/libinfo.py index fdd888a470..f1b7da47cc 100644 --- a/python/tvm/_ffi/libinfo.py +++ b/python/tvm/_ffi/libinfo.py @@ -220,4 +220,4 @@ def find_include_path(name=None, search_path=None, optional=False): # We use the version of the incoming release for code # that is under development. # The following line is set by tvm/python/update_version.py -__version__ = "0.11.dev0" +__version__ = "0.11.1" diff --git a/version.py b/version.py index 6381c0a856..7b7594b542 100644 --- a/version.py +++ b/version.py @@ -44,7 +44,7 @@ import subprocess # Two tag formats are supported: # - vMAJ.MIN.PATCH (e.g. v0.8.0) or # - vMAJ.MIN.devN (e.g. v0.8.dev0) -__version__ = "0.11.dev0" +__version__ = "0.11.1" # --- diff --git a/web/package.json b/web/package.json index 4cc88dc4c5..c216d936d8 100644 --- a/web/package.json +++ b/web/package.json @@ -2,7 +2,7 @@ "name": "tvmjs", "displayName": "TVM Wasm JS runtime", "license": "Apache-2.0", - "version": "0.11.0-dev0", + "version": "0.11.1", "scripts": { "prepwasm": "make && python3 tests/python/prepare_test_libs.py", "build": "tsc -b && make rmtypedep",
[tvm] branch main updated (91dc8efe0f -> a42e98b195)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 91dc8efe0f [TIR] Fix typo in doc (#14178) add a42e98b195 [microTVM] Use QNN schedules to give SOTA performance (#13752) No new revisions were added by this update. Summary of changes: include/tvm/relay/transform.h | 7 + python/tvm/relay/op/nn/_nn.py | 17 - python/tvm/relay/qnn/op/_qnn.py| 60 +++- python/tvm/relay/qnn/strategy/arm_cpu.py | 73 +++- python/tvm/topi/arm_cpu/__init__.py| 3 +- .../arm_cpu/mprofile/dsp/micro_kernel/tensordot.py | 9 +- python/tvm/topi/arm_cpu/qnn.py | 358 +++ python/tvm/topi/arm_cpu/qnn_alter_op.py| 228 +--- python/tvm/topi/arm_cpu/qnn_legalize.py| 382 + python/tvm/topi/hexagon/qnn/nn.py | 2 +- python/tvm/topi/nn/qnn.py | 35 +- src/relay/backend/utils.cc | 1 + src/relay/transforms/simplify_expr.cc | 23 ++ src/target/source/codegen_c.cc | 4 +- tests/python/relay/qnn/test_clip_legalization.py | 87 + .../python/relay/qnn/test_qnn_channel_stripping.py | 299 .../strategy/arm_cpu/test_quantized_convolution.py | 71 +++- .../topi/python/test_topi_conv2d_tensordot_opts.py | 6 +- 18 files changed, 1499 insertions(+), 166 deletions(-) create mode 100644 python/tvm/topi/arm_cpu/qnn_legalize.py create mode 100644 tests/python/relay/qnn/test_clip_legalization.py create mode 100644 tests/python/relay/qnn/test_qnn_channel_stripping.py
[tvm] branch v0.11.0 updated: Fix release-branch Jenkins builds (#14121)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch v0.11.0 in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/v0.11.0 by this push: new cd9193a7eb Fix release-branch Jenkins builds (#14121) cd9193a7eb is described below commit cd9193a7ebd40c5662cae73e985a360855101d2a Author: Andrew Reusch AuthorDate: Fri Feb 24 21:58:23 2023 -0800 Fix release-branch Jenkins builds (#14121) * bring back Jenkins makefile and requirements.txt * Try using CHANGE_ID to identify pull requests everywhere. * Remove slashes from dockerfile tag Authored-by: David Riazati --- ci/jenkins/Makefile | 27 ++ ci/jenkins/generated/arm_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/cpu_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/docker_jenkinsfile.groovy| 28 +++ ci/jenkins/generated/gpu_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/i386_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/lint_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/minimal_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/riscv_jenkinsfile.groovy | 26 ++--- ci/jenkins/generated/wasm_jenkinsfile.groovy | 26 ++--- ci/jenkins/requirements.txt | 1 + ci/jenkins/templates/docker_jenkinsfile.groovy.j2 | 2 +- ci/jenkins/templates/utils/Prepare.groovy.j2 | 24 +-- 15 files changed, 185 insertions(+), 157 deletions(-) diff --git a/ci/jenkins/Makefile b/ci/jenkins/Makefile new file mode 100644 index 00..5c9e0ac540 --- /dev/null +++ b/ci/jenkins/Makefile @@ -0,0 +1,27 @@ +# 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. + +_venv: requirements.txt + rm -rf _venv + python3 -mvenv _venv + _venv/bin/pip3 install -r requirements.txt + +all: _venv + _venv/bin/python3 generate.py + +.PHONY: all venv +.DEFAULT_GOAL=all diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..6a61ee38cb 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:59:48.308906 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,12 +145,12 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { -// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. + if (!env.CHANGE_ID) { +// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to a branch. update_upstream_revision("HEAD") } else { -// This is PR branch so merge with latest main. -merge_with_main() +// This is PR branch so merge with latest upstream. +merge_with_upstream() } sh( @@ -174,15 +174,15 @@ def update_upstream_revision(git_ref) { } } -def merge_with_main() { +def merge_with_upstream() { sh ( -script: 'git fetch origin main', -label: 'Fetch upstream', +script: "git fetch origin ${env.CHANGE_TARGET}", +label: "Fetch upstream branch ${env.CHANGE_TARGET}", ) update_upstream_revision("FETCH_HEAD") sh ( script: "git -c user.name=TVM-Jenkins -c user.email=jenk...@tvm.apache.org merge ${upstream_revision}", -label: 'Merge to origin/main' +
[tvm] branch areusch/fix-branch-release-ci updated (e58ee9fd8d -> ddd5f065e6)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git discard e58ee9fd8d Remove slashes from dockerfile tag omit 853b18d4b1 Try using CHANGE_ID to identify pull requests everywhere. omit c91ff47bc6 bring back Jenkins makefile and requirements.txt add 83fed93cee bring back Jenkins makefile and requirements.txt add f4e1ecb6cd Try using CHANGE_ID to identify pull requests everywhere. add ddd5f065e6 Remove slashes from dockerfile tag 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 (e58ee9fd8d) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (ddd5f065e6) 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. No new revisions were added by this update. Summary of changes:
[tvm] branch areusch/fix-branch-release-ci updated (23d4939536 -> e58ee9fd8d)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git discard 23d4939536 Remove slashes from dockerfile tag add e58ee9fd8d Remove slashes from dockerfile tag 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 (23d4939536) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (e58ee9fd8d) 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. No new revisions were added by this update. Summary of changes:
[tvm] branch areusch/fix-branch-release-ci updated (9b7bf3945e -> 23d4939536)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git omit 9b7bf3945e Remove slashes from dockerfile tag add 23d4939536 Remove slashes from dockerfile tag 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 (9b7bf3945e) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (23d4939536) 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. No new revisions were added by this update. Summary of changes:
[tvm] 01/01: Try using CHANGE_ID to identify pull requests everywhere.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit 853b18d4b19f228f8119c5235564f8b017cbaab2 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:37 2023 -0800 Try using CHANGE_ID to identify pull requests everywhere. --- ci/jenkins/generated/arm_jenkinsfile.groovy | 26 - ci/jenkins/generated/cortexm_jenkinsfile.groovy | 26 - ci/jenkins/generated/cpu_jenkinsfile.groovy | 26 - ci/jenkins/generated/docker_jenkinsfile.groovy | 26 - ci/jenkins/generated/gpu_jenkinsfile.groovy | 26 - ci/jenkins/generated/hexagon_jenkinsfile.groovy | 26 - ci/jenkins/generated/i386_jenkinsfile.groovy| 26 - ci/jenkins/generated/lint_jenkinsfile.groovy| 26 - ci/jenkins/generated/minimal_jenkinsfile.groovy | 26 - ci/jenkins/generated/riscv_jenkinsfile.groovy | 26 - ci/jenkins/generated/wasm_jenkinsfile.groovy| 26 - ci/jenkins/templates/utils/Prepare.groovy.j2| 24 +++ 12 files changed, 155 insertions(+), 155 deletions(-) diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..6a61ee38cb 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:59:48.308906 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,12 +145,12 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { -// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. + if (!env.CHANGE_ID) { +// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to a branch. update_upstream_revision("HEAD") } else { -// This is PR branch so merge with latest main. -merge_with_main() +// This is PR branch so merge with latest upstream. +merge_with_upstream() } sh( @@ -174,15 +174,15 @@ def update_upstream_revision(git_ref) { } } -def merge_with_main() { +def merge_with_upstream() { sh ( -script: 'git fetch origin main', -label: 'Fetch upstream', +script: "git fetch origin ${env.CHANGE_TARGET}", +label: "Fetch upstream branch ${env.CHANGE_TARGET}", ) update_upstream_revision("FETCH_HEAD") sh ( script: "git -c user.name=TVM-Jenkins -c user.email=jenk...@tvm.apache.org merge ${upstream_revision}", -label: 'Merge to origin/main' +label: "Merge to ${env.CHANGE_TARGET}" ) } @@ -275,8 +275,8 @@ def should_skip_slow_tests(pr_number) { } def cancel_previous_build() { - // cancel previous build if it is not on main. - if (env.BRANCH_NAME != 'main') { + // cancel previous build if it is for a PR. + if (env.CHANGE_ID) { def buildNumber = env.BUILD_NUMBER as int // Milestone API allows us to cancel previous build // with the same milestone number @@ -287,7 +287,7 @@ def cancel_previous_build() { def checkout_trusted_files() { // trust everything from branch builds - if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) { + if (!env.CHANGE_ID) { return; } @@ -310,7 +310,7 @@ def checkout_trusted_files() { } def should_skip_ci(pr_number) { - if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) { + if (!env.CHANGE_ID) { // never skip CI on build sourced from a branch return false } diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy index 25846f5b4b..a634e6c078 100644 --- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy +++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.437899 +// Generated at 2023-02-24T10:59:48.195517 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,12 +145,12 @@ def init_git() { ) // Determine merge comm
[tvm] branch areusch/fix-branch-release-ci updated (fd3b8b4767 -> 853b18d4b1)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git omit fd3b8b4767 Try using CHANGE_ID to identify pull requests everywhere. new 853b18d4b1 Try using CHANGE_ID to identify pull requests everywhere. 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 (fd3b8b4767) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (853b18d4b1) 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 1 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: ci/jenkins/generated/arm_jenkinsfile.groovy | 8 ci/jenkins/generated/cortexm_jenkinsfile.groovy | 8 ci/jenkins/generated/cpu_jenkinsfile.groovy | 8 ci/jenkins/generated/docker_jenkinsfile.groovy | 8 ci/jenkins/generated/gpu_jenkinsfile.groovy | 8 ci/jenkins/generated/hexagon_jenkinsfile.groovy | 8 ci/jenkins/generated/i386_jenkinsfile.groovy| 8 ci/jenkins/generated/lint_jenkinsfile.groovy| 8 ci/jenkins/generated/minimal_jenkinsfile.groovy | 8 ci/jenkins/generated/riscv_jenkinsfile.groovy | 8 ci/jenkins/generated/wasm_jenkinsfile.groovy| 8 ci/jenkins/templates/utils/Prepare.groovy.j2| 6 +++--- 12 files changed, 47 insertions(+), 47 deletions(-)
[tvm] 01/01: Try using CHANGE_ID to identify pull requests everywhere.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit fd3b8b4767834602f0ccd8eadc0b2b2bd627b6f3 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:37 2023 -0800 Try using CHANGE_ID to identify pull requests everywhere. --- ci/jenkins/generated/arm_jenkinsfile.groovy | 26 - ci/jenkins/generated/cortexm_jenkinsfile.groovy | 26 - ci/jenkins/generated/cpu_jenkinsfile.groovy | 26 - ci/jenkins/generated/docker_jenkinsfile.groovy | 26 - ci/jenkins/generated/gpu_jenkinsfile.groovy | 26 - ci/jenkins/generated/hexagon_jenkinsfile.groovy | 26 - ci/jenkins/generated/i386_jenkinsfile.groovy| 26 - ci/jenkins/generated/lint_jenkinsfile.groovy| 26 - ci/jenkins/generated/minimal_jenkinsfile.groovy | 26 - ci/jenkins/generated/riscv_jenkinsfile.groovy | 26 - ci/jenkins/generated/wasm_jenkinsfile.groovy| 26 - ci/jenkins/templates/utils/Prepare.groovy.j2| 24 +++ 12 files changed, 155 insertions(+), 155 deletions(-) diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..5533661cee 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:56:12.090417 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,12 +145,12 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { -// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. + if (!env.CHANGE_ID) { +// Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to a branch. update_upstream_revision("HEAD") } else { -// This is PR branch so merge with latest main. -merge_with_main() +// This is PR branch so merge with latest upstream. +merge_with_upstream() } sh( @@ -174,15 +174,15 @@ def update_upstream_revision(git_ref) { } } -def merge_with_main() { +def merge_with_upstream() { sh ( -script: 'git fetch origin main', -label: 'Fetch upstream', +script: 'git fetch origin ${env.CHANGE_TARGET}', +label: 'Fetch upstream branch ${env.CHANGE_TARGET}', ) update_upstream_revision("FETCH_HEAD") sh ( script: "git -c user.name=TVM-Jenkins -c user.email=jenk...@tvm.apache.org merge ${upstream_revision}", -label: 'Merge to origin/main' +label: 'Merge to ${env.CHANGE_TARGET}' ) } @@ -275,8 +275,8 @@ def should_skip_slow_tests(pr_number) { } def cancel_previous_build() { - // cancel previous build if it is not on main. - if (env.BRANCH_NAME != 'main') { + // cancel previous build if it is for a PR. + if (env.CHANGE_ID) { def buildNumber = env.BUILD_NUMBER as int // Milestone API allows us to cancel previous build // with the same milestone number @@ -287,7 +287,7 @@ def cancel_previous_build() { def checkout_trusted_files() { // trust everything from branch builds - if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) { + if (!env.CHANGE_ID) { return; } @@ -310,7 +310,7 @@ def checkout_trusted_files() { } def should_skip_ci(pr_number) { - if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) { + if (!env.CHANGE_ID) { // never skip CI on build sourced from a branch return false } diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy index 25846f5b4b..967ab3cfdb 100644 --- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy +++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.437899 +// Generated at 2023-02-24T10:56:11.979341 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,12 +145,12 @@ def init_git() { ) // Determine merge comm
[tvm] branch areusch/fix-branch-release-ci updated (a866bc30a1 -> fd3b8b4767)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git discard a866bc30a1 Try using CHANGE_ID to identify pull requests instead of hardcoding main. new fd3b8b4767 Try using CHANGE_ID to identify pull requests everywhere. 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 (a866bc30a1) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (fd3b8b4767) 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 1 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: ci/jenkins/generated/arm_jenkinsfile.groovy | 24 ci/jenkins/generated/cortexm_jenkinsfile.groovy | 24 ci/jenkins/generated/cpu_jenkinsfile.groovy | 24 ci/jenkins/generated/docker_jenkinsfile.groovy | 24 ci/jenkins/generated/gpu_jenkinsfile.groovy | 24 ci/jenkins/generated/hexagon_jenkinsfile.groovy | 24 ci/jenkins/generated/i386_jenkinsfile.groovy| 24 ci/jenkins/generated/lint_jenkinsfile.groovy| 24 ci/jenkins/generated/minimal_jenkinsfile.groovy | 24 ci/jenkins/generated/riscv_jenkinsfile.groovy | 24 ci/jenkins/generated/wasm_jenkinsfile.groovy| 24 ci/jenkins/templates/utils/Prepare.groovy.j2| 22 +++--- 12 files changed, 143 insertions(+), 143 deletions(-)
[tvm] 01/01: Try using CHANGE_ID to identify pull requests instead of hardcoding main.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit a866bc30a1ff4e69b1a04063cfbe995049101de4 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:37 2023 -0800 Try using CHANGE_ID to identify pull requests instead of hardcoding main. --- ci/jenkins/generated/arm_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/cpu_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/docker_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/gpu_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/i386_jenkinsfile.groovy| 4 ++-- ci/jenkins/generated/lint_jenkinsfile.groovy| 4 ++-- ci/jenkins/generated/minimal_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/riscv_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/wasm_jenkinsfile.groovy| 4 ++-- ci/jenkins/templates/utils/Prepare.groovy.j2| 2 +- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..49075e4638 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:40:16.311628 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,7 +145,7 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy index 25846f5b4b..891ce1f0d2 100644 --- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy +++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.437899 +// Generated at 2023-02-24T10:40:16.195679 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,7 +145,7 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy index f9ede00399..541e4310da 100644 --- a/ci/jenkins/generated/cpu_jenkinsfile.groovy +++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.540570 +// Generated at 2023-02-24T10:40:16.280856 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,7 +145,7 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy index 9e1946c194..1d51ba4ac1 100644 --- a/ci/jenkins/generated/docker_jenkinsfile.groovy +++ b/ci/jenkins/generated/docker_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.508775 +// Generated at 2023-02-24T10:40:16.178640 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -145,7 +145,7 @@ def init_git() { ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revisi
[tvm] branch areusch/fix-branch-release-ci updated (561192c4fc -> a866bc30a1)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git omit 561192c4fc Try using CHANGE_ID to identify pull requests instead of hardcoding main. new a866bc30a1 Try using CHANGE_ID to identify pull requests instead of hardcoding main. 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 (561192c4fc) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (a866bc30a1) 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 1 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: ci/jenkins/generated/arm_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/cpu_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/docker_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/gpu_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/i386_jenkinsfile.groovy| 8 +--- ci/jenkins/generated/lint_jenkinsfile.groovy| 8 +--- ci/jenkins/generated/minimal_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/riscv_jenkinsfile.groovy | 8 +--- ci/jenkins/generated/wasm_jenkinsfile.groovy| 8 +--- ci/jenkins/templates/utils/Prepare.groovy.j2| 6 -- 12 files changed, 11 insertions(+), 83 deletions(-)
[tvm] 01/01: Try using CHANGE_ID to identify pull requests instead of hardcoding main.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit 561192c4fc0df7deb8c71b3ce02de08ea0a81310 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:37 2023 -0800 Try using CHANGE_ID to identify pull requests instead of hardcoding main. --- ci/jenkins/generated/arm_jenkinsfile.groovy | 10 -- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 10 -- ci/jenkins/generated/cpu_jenkinsfile.groovy | 10 -- ci/jenkins/generated/docker_jenkinsfile.groovy | 10 -- ci/jenkins/generated/gpu_jenkinsfile.groovy | 10 -- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 10 -- ci/jenkins/generated/i386_jenkinsfile.groovy| 10 -- ci/jenkins/generated/lint_jenkinsfile.groovy| 10 -- ci/jenkins/generated/minimal_jenkinsfile.groovy | 10 -- ci/jenkins/generated/riscv_jenkinsfile.groovy | 10 -- ci/jenkins/generated/wasm_jenkinsfile.groovy| 10 -- ci/jenkins/templates/utils/Prepare.groovy.j2| 8 +++- 12 files changed, 95 insertions(+), 23 deletions(-) diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..a8baaf1782 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:32:14.052659 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy index 25846f5b4b..544707dc45 100644 --- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy +++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.437899 +// Generated at 2023-02-24T10:32:13.934892 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy index f9ede00399..dfa809c1d0 100644 --- a/ci/jenkins/generated/cpu_jenkinsfile.groovy +++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.540570 +// Generated at 2023-02-24T10:32:14.021011 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (!env.CHANGE_ID) { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy index 9e1946c194..672e506ab9 100644 --- a/ci/jenkins/generated/docker_jenkinsfile.groovy +++ b/ci/jenkins/generated/docker_jenkinsfile.groovy @@ -60,7 +60,7 @@ // 'pyt
[tvm] branch areusch/fix-branch-release-ci updated (0ed6135ef5 -> 561192c4fc)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git discard 0ed6135ef5 Try using CHANGE_ID to identify pull requests instead of hardcoding main. new 561192c4fc Try using CHANGE_ID to identify pull requests instead of hardcoding main. 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 (0ed6135ef5) \ N -- N -- N refs/heads/areusch/fix-branch-release-ci (561192c4fc) 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 1 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: ci/jenkins/generated/arm_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/cpu_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/docker_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/gpu_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/i386_jenkinsfile.groovy| 4 ++-- ci/jenkins/generated/lint_jenkinsfile.groovy| 4 ++-- ci/jenkins/generated/minimal_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/riscv_jenkinsfile.groovy | 4 ++-- ci/jenkins/generated/wasm_jenkinsfile.groovy| 4 ++-- ci/jenkins/templates/utils/Prepare.groovy.j2| 2 +- 12 files changed, 23 insertions(+), 23 deletions(-)
[tvm] branch areusch/fix-branch-release-ci created (now 0ed6135ef5)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git at 0ed6135ef5 Try using CHANGE_ID to identify pull requests instead of hardcoding main. This branch includes the following new commits: new c91ff47bc6 bring back Jenkins makefile and requirements.txt new 0ed6135ef5 Try using CHANGE_ID to identify pull requests instead of hardcoding main. 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.
[tvm] 01/02: bring back Jenkins makefile and requirements.txt
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit c91ff47bc646b545ab5eb538d004a4d0fbabbd40 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:21 2023 -0800 bring back Jenkins makefile and requirements.txt --- ci/jenkins/Makefile | 27 +++ ci/jenkins/requirements.txt | 1 + 2 files changed, 28 insertions(+) diff --git a/ci/jenkins/Makefile b/ci/jenkins/Makefile new file mode 100644 index 00..5c9e0ac540 --- /dev/null +++ b/ci/jenkins/Makefile @@ -0,0 +1,27 @@ +# 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. + +_venv: requirements.txt + rm -rf _venv + python3 -mvenv _venv + _venv/bin/pip3 install -r requirements.txt + +all: _venv + _venv/bin/python3 generate.py + +.PHONY: all venv +.DEFAULT_GOAL=all diff --git a/ci/jenkins/requirements.txt b/ci/jenkins/requirements.txt new file mode 100644 index 00..d8086eca6e --- /dev/null +++ b/ci/jenkins/requirements.txt @@ -0,0 +1 @@ +Jinja2>=3.0.0
[tvm] 02/02: Try using CHANGE_ID to identify pull requests instead of hardcoding main.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-branch-release-ci in repository https://gitbox.apache.org/repos/asf/tvm.git commit 0ed6135ef5c5f94812651d6355ac4f1ee9239c65 Author: Andrew Reusch AuthorDate: Fri Feb 24 10:27:37 2023 -0800 Try using CHANGE_ID to identify pull requests instead of hardcoding main. --- ci/jenkins/generated/arm_jenkinsfile.groovy | 10 -- ci/jenkins/generated/cortexm_jenkinsfile.groovy | 10 -- ci/jenkins/generated/cpu_jenkinsfile.groovy | 10 -- ci/jenkins/generated/docker_jenkinsfile.groovy | 10 -- ci/jenkins/generated/gpu_jenkinsfile.groovy | 10 -- ci/jenkins/generated/hexagon_jenkinsfile.groovy | 10 -- ci/jenkins/generated/i386_jenkinsfile.groovy| 10 -- ci/jenkins/generated/lint_jenkinsfile.groovy| 10 -- ci/jenkins/generated/minimal_jenkinsfile.groovy | 10 -- ci/jenkins/generated/riscv_jenkinsfile.groovy | 10 -- ci/jenkins/generated/wasm_jenkinsfile.groovy| 10 -- ci/jenkins/templates/utils/Prepare.groovy.j2| 8 +++- 12 files changed, 95 insertions(+), 23 deletions(-) diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy index 0fc71b430c..7ad84bc7b9 100644 --- a/ci/jenkins/generated/arm_jenkinsfile.groovy +++ b/ci/jenkins/generated/arm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.387114 +// Generated at 2023-02-24T10:27:10.759658 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (env.CHANGE_ID == '') { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy index 25846f5b4b..e8cfd7cbf1 100644 --- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy +++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.437899 +// Generated at 2023-02-24T10:27:10.641446 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (env.CHANGE_ID == '') { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy index f9ede00399..447717b60b 100644 --- a/ci/jenkins/generated/cpu_jenkinsfile.groovy +++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy @@ -60,7 +60,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-12-09T15:39:24.540570 +// Generated at 2023-02-24T10:27:10.727925 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // These are set at runtime from data in ci/jenkins/docker-images.yml, update @@ -144,8 +144,14 @@ def init_git() { label: 'Show executor node info', ) + sh( +script: """ + env +""", +label: 'Print env', + ) // Determine merge commit to use for all stages - if (env.BRANCH_NAME == 'main') { + if (env.CHANGE_ID == '') { // Only set upstream_revision to HEAD and skip merging to avoid a race with another commit merged to main. update_upstream_revision("HEAD") } else { diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy index 9e1946c194..d0a1748237 100644 --- a/ci/jenkins/generated/docker_jenkinsfile.groovy +++ b/ci/jenkins/generated/docker_
[tvm] branch main updated: [docs] Add "Open with Colab" button to documentation (#13627)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 30abbe9832 [docs] Add "Open with Colab" button to documentation (#13627) 30abbe9832 is described below commit 30abbe98321acf594d2cd0d6b9a7c570471d9264 Author: Gavin Uberti AuthorDate: Fri Jan 6 17:32:23 2023 -0800 [docs] Add "Open with Colab" button to documentation (#13627) * Add Colab header to TVM tutorials by default * Fix library imports to work with Colab * Better support for Jupyter magic and directives Co-authored-by: Mehrdad Hessar --- docs/README.md | 39 docs/conf.py | 210 - gallery/how_to/compile_models/from_coreml.py | 7 +- gallery/how_to/compile_models/from_darknet.py | 5 +- gallery/how_to/compile_models/from_keras.py| 7 +- gallery/how_to/compile_models/from_mxnet.py| 10 +- gallery/how_to/compile_models/from_oneflow.py | 4 +- gallery/how_to/compile_models/from_onnx.py | 9 +- gallery/how_to/compile_models/from_paddle.py | 6 +- gallery/how_to/compile_models/from_pytorch.py | 12 +- gallery/how_to/compile_models/from_tensorflow.py | 5 + gallery/how_to/compile_models/from_tflite.py | 5 +- .../how_to/deploy_models/deploy_model_on_adreno.py | 1 + .../how_to/deploy_models/deploy_model_on_nano.py | 1 + .../deploy_object_detection_pytorch.py | 4 +- .../how_to/extend_tvm/bring_your_own_datatypes.py | 2 +- gallery/how_to/optimize_operators/opt_conv_cuda.py | 1 + .../optimize_operators/opt_conv_tensorcore.py | 1 + .../tune_conv2d_layer_cuda.py | 1 + .../how_to/tune_with_autotvm/tune_conv2d_cuda.py | 1 + .../how_to/tune_with_autotvm/tune_relay_cuda.py| 1 + .../how_to/work_with_microtvm/install_cmsis.rst| 35 .../work_with_microtvm/install_dependencies.rst| 33 .../how_to/work_with_microtvm/install_zephyr.rst | 52 + gallery/how_to/work_with_microtvm/micro_aot.py | 31 ++- .../how_to/work_with_microtvm/micro_autotune.py| 26 ++- gallery/how_to/work_with_microtvm/micro_pytorch.py | 6 +- gallery/how_to/work_with_microtvm/micro_tflite.py | 128 +++-- gallery/how_to/work_with_microtvm/micro_train.py | 15 +- gallery/how_to/work_with_pytorch/using_as_torch.py | 8 + .../work_with_pytorch/using_optimized_torch.py | 10 +- gallery/how_to/work_with_relay/build_gcn.py| 8 +- gallery/how_to/work_with_relay/using_relay_viz.py | 7 + gallery/how_to/work_with_schedules/reduction.py| 1 + gallery/how_to/work_with_schedules/scan.py | 1 + gallery/tutorial/intro_topi.py | 1 + gallery/tutorial/relay_quick_start.py | 1 + gallery/tutorial/tensor_ir_blitz_course.py | 1 + tests/lint/check_request_hook.py | 35 ++-- 39 files changed, 564 insertions(+), 167 deletions(-) diff --git a/docs/README.md b/docs/README.md index 6c32d2d6bf..572b72fc3c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -111,3 +111,42 @@ python tests/scripts/ci.py docs --full You can define the order of tutorials with `subsection_order` and `within_subsection_order` in [`conf.py`](conf.py). By default, the tutorials within one subsection are sorted by filename. + +## Google Colab Integration + +All the TVM tutorials can be opened and used interactively in Google Colab by +clicking the button at the top of the page. To do this, `sphinx-gallery` builds +`.ipynb` files from each tutorial, which are automatically deployed to the +[apache/tvm-site](https://github.com/apache/tvm-site/tree/asf-site) repo's +`asf-site` branch by [@tvm-bot](https://github.com/tvm-bot). + +To make sure your tutorial runs correctly on Colab, any non-Python parts of +the tutorial (e.g. dependency installations) should be prefixed by an +[IPython magic command](https://ipython.readthedocs.io/en/stable/interactive/magics.html). +These will not be included in the built `HTML` file. For example, to install +Pytorch in your tutorial, add a ReStructured Text block like the following: + +```python +## +# To run this tutorial, we must install PyTorch: +# +# .. code-block:: bash +# +# %%shell +# pip install torch +# +``` + +### Interactive Bash Scripts + +In stock IPython, the `%%bash` magic command should be used to run shell +commands. However, this command does not give real-time output - the +tutorial's user will not see any output until the entire cell finishes +running. When running commands that take several minutes (e.g. installing +dependencies), this is annoying. + +Luckily, Google
[tvm] branch main updated: [Relay][Frontend] Span filling common API (#13402)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 520f2c594b [Relay][Frontend] Span filling common API (#13402) 520f2c594b is described below commit 520f2c594b3a4dde60ebdb10de448112130ab38a Author: Chun-I Tsai AuthorDate: Wed Dec 28 02:37:51 2022 +0800 [Relay][Frontend] Span filling common API (#13402) - Expose and add span attribute of Expr-derived types from C++ to Python - Add common API of span filling - Add test cases of span filling - Add function to control whether to fill span via environment variable - Modify the way of pretty-print to print span Co-authored-by: Joey Tsai --- python/tvm/relay/expr.py | 202 +++ python/tvm/relay/frontend/common.py | 165 +++- python/tvm/relay/function.py | 7 +- python/tvm/relay/loops.py| 2 +- python/tvm/testing/utils.py | 22 src/ir/span.cc | 4 + src/relay/ir/expr.cc | 88 --- src/relay/ir/function.cc | 4 +- tests/python/frontend/test_common.py | 194 - tests/python/relay/utils/tag_span.py | 108 +++ 10 files changed, 750 insertions(+), 46 deletions(-) diff --git a/python/tvm/relay/expr.py b/python/tvm/relay/expr.py index fefc285723..88b84bbe7e 100644 --- a/python/tvm/relay/expr.py +++ b/python/tvm/relay/expr.py @@ -171,10 +171,28 @@ class Constant(ExprWithOp): -- data : tvm.nd.NDArray The data content of the constant expression. + +span: Optional[tvm.relay.Span] +Span that points to original source code. """ -def __init__(self, data): -self.__init_handle_by_constructor__(_ffi_api.Constant, data) +def __init__(self, data, span=None): +self.__init_handle_by_constructor__(_ffi_api.Constant, data, span) + + +@tvm._ffi.register_func("relay.ConstantWithFields") +def ConstantWithFields( +constant, +data=None, +virtual_device=None, +span=None, +): +""" +Returns constant with the given properties. A None property denotes 'no change'. +Returns constant if all properties are unchanged. Otherwise, returns a copy with the new +fields. +""" +return _ffi_api.ConstantWithFields(constant, data, virtual_device, span) @tvm._ffi.register_object("relay.Tuple") @@ -187,7 +205,7 @@ class Tuple(ExprWithOp): The fields in the tuple. span: Optional[tvm.relay.Span] -Span that points to original source code +Span that points to original source code. """ def __init__(self, fields, span=None): @@ -205,6 +223,16 @@ class Tuple(ExprWithOp): raise TypeError("astype cannot be used on tuple") +@tvm._ffi.register_func("relay.TupleWithFields") +def TupleWithFields(tup, fields=None, virtual_device=None, span=None): +""" +Returns tuple with the given properties. A None property denotes 'no change'. +Returns tuple if all properties are unchanged. Otherwise, returns a copy with the new +fields. +""" +return _ffi_api.TupleWithFields(tup, fields, virtual_device, span) + + @tvm._ffi.register_object("relay.Var") class Var(ExprWithOp): """A local variable in Relay. @@ -221,10 +249,13 @@ class Var(ExprWithOp): type_annotation: tvm.relay.Type, optional The type annotation on the variable. + +span: Optional[tvm.relay.Span] +Span that points to original source code. """ -def __init__(self, name_hint, type_annotation=None): -self.__init_handle_by_constructor__(_ffi_api.Var, name_hint, type_annotation) +def __init__(self, name_hint, type_annotation=None, span=None): +self.__init_handle_by_constructor__(_ffi_api.Var, name_hint, type_annotation, span) @property def name_hint(self): @@ -233,6 +264,16 @@ class Var(ExprWithOp): return name +@tvm._ffi.register_func("relay.VarWithFields") +def VarWithFields(variable, vid=None, type_annotation=None, virtual_device=None, span=None): +""" +Returns var with the given properties. A None property denotes 'no change'. +Returns var if all properties are unchanged. Otherwise, returns a copy with the new +fields. +""" +return _ffi_api.VarWithFields(variable, vid, type_annotation, virtual_device, span) + + @tvm._ffi.register_object("relay.Call") class Call(ExprWithOp): """Function call node in Relay. @@ -256,7 +297,7 @@ class Call(ExprWithOp
[tvm] branch revert-13073-micro-always-on updated (79706486f9 -> 3e3dd32a92)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch revert-13073-micro-always-on in repository https://gitbox.apache.org/repos/asf/tvm.git discard 79706486f9 revert USE_MICRO for wasm, unrelated discard 0e27cc2bc3 USE_MICRO ON for minimal and wasm to work around CI limitation. discard 5be8107847 Revert "[microTVM] enable building microTVM components by default (#13073)" add 5b1a1e3d39 [skip ci][ci][wasm] Add package-lock.json to git (#13505) add 6fa966f6be Revert "[microTVM] enable building microTVM components by default (#13073)" add 624efb24c6 USE_MICRO ON for minimal and wasm to work around CI limitation. add 3e3dd32a92 revert USE_MICRO for wasm, unrelated 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 (79706486f9) \ N -- N -- N refs/heads/revert-13073-micro-always-on (3e3dd32a92) 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. No new revisions were added by this update. Summary of changes: web/.gitignore|1 - web/package-lock.json | 6724 + web/package.json |3 +- 3 files changed, 6726 insertions(+), 2 deletions(-) create mode 100644 web/package-lock.json
[tvm] branch revert-13073-micro-always-on updated (0e27cc2bc3 -> 79706486f9)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch revert-13073-micro-always-on in repository https://gitbox.apache.org/repos/asf/tvm.git from 0e27cc2bc3 USE_MICRO ON for minimal and wasm to work around CI limitation. add 79706486f9 revert USE_MICRO for wasm, unrelated No new revisions were added by this update. Summary of changes: tests/scripts/task_config_build_wasm.sh | 1 - 1 file changed, 1 deletion(-)
[tvm] branch revert-13073-micro-always-on updated (5be8107847 -> 0e27cc2bc3)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch revert-13073-micro-always-on in repository https://gitbox.apache.org/repos/asf/tvm.git from 5be8107847 Revert "[microTVM] enable building microTVM components by default (#13073)" add 0e27cc2bc3 USE_MICRO ON for minimal and wasm to work around CI limitation. No new revisions were added by this update. Summary of changes: tests/scripts/task_config_build_minimal.sh | 1 + tests/scripts/task_config_build_wasm.sh| 1 + 2 files changed, 2 insertions(+)
[tvm] branch revert-13073-micro-always-on created (now 5be8107847)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch revert-13073-micro-always-on in repository https://gitbox.apache.org/repos/asf/tvm.git at 5be8107847 Revert "[microTVM] enable building microTVM components by default (#13073)" This branch includes the following new commits: new 5be8107847 Revert "[microTVM] enable building microTVM components by default (#13073)" The 1 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.
[tvm] 01/01: Revert "[microTVM] enable building microTVM components by default (#13073)"
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch revert-13073-micro-always-on in repository https://gitbox.apache.org/repos/asf/tvm.git commit 5be8107847ada08e85be3bfc7389e0e06f30df76 Author: Andrew Reusch AuthorDate: Mon Nov 28 10:20:47 2022 -0800 Revert "[microTVM] enable building microTVM components by default (#13073)" This reverts commit e6629706479421783d7ee5fa29eb3fe862d9b981. --- CMakeLists.txt | 7 +-- cmake/config.cmake | 3 +++ conda/recipe/build.sh| 3 --- conda/recipe/meta.yaml | 3 --- tests/scripts/task_config_build_arm.sh | 1 + tests/scripts/task_config_build_cortexm.sh | 1 + tests/scripts/task_config_build_cpu.sh | 1 + tests/scripts/task_config_build_gpu.sh | 1 + tests/scripts/task_config_build_gpu_other.sh | 1 + tests/scripts/task_config_build_hexagon.sh | 2 ++ tests/scripts/task_config_build_i386.sh | 1 + tests/scripts/task_config_build_riscv.sh | 1 + tests/scripts/task_config_build_wasm.sh | 1 + 13 files changed, 14 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb0bad8a50..736d516fa1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ tvm_option(USE_OPENMP "Build with OpenMP thread pool implementation" OFF) tvm_option(USE_RELAY_DEBUG "Building Relay in debug mode..." OFF) tvm_option(USE_RTTI "Build with RTTI" ON) tvm_option(USE_MSVC_MT "Build with MT" OFF) -tvm_option(USE_MICRO "Build with Micro TVM support" ON) +tvm_option(USE_MICRO "Build with Micro TVM support" OFF) tvm_option(INSTALL_DEV "Install compiler infrastructure" OFF) tvm_option(HIDE_PRIVATE_SYMBOLS "Compile with -fvisibility=hidden." OFF) tvm_option(USE_TF_TVMDSOOP "Build with TensorFlow TVMDSOOp" OFF) @@ -118,11 +118,6 @@ tvm_option(USE_CLML "Build with CLML Codegen support" OFF) tvm_option(USE_CLML_GRAPH_EXECUTOR "Build with CLML graph runtime" OFF) tvm_option(USE_UMA "Build with UMA support" OFF) -# disable microTVM for iOS and hexagon builds -if(${CMAKE_SYSTEM_NAME} MATCHES "iOS" OR USE_HEXAGON) - set(USE_MICRO OFF) -endif() - # include directories include_directories(${CMAKE_INCLUDE_PATH}) include_directories("include") diff --git a/cmake/config.cmake b/cmake/config.cmake index 0c803c0b6a..679f5c459e 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -96,6 +96,9 @@ set(USE_SPIRV_KHR_INTEGER_DOT_PRODUCT OFF) # Whether enable OpenGL runtime set(USE_OPENGL OFF) +# Whether enable MicroTVM runtime +set(USE_MICRO OFF) + # Whether enable RPC runtime set(USE_RPC ON) diff --git a/conda/recipe/build.sh b/conda/recipe/build.sh index aa2d2f3d5f..0131fd65a4 100755 --- a/conda/recipe/build.sh +++ b/conda/recipe/build.sh @@ -45,9 +45,6 @@ rm -rf build || true mkdir -p build cd build -export PREFIX="${PREFIX}/" -cp -f ${PREFIX}/bin/ranlib $PREFIX - cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_RPC=ON \ diff --git a/conda/recipe/meta.yaml b/conda/recipe/meta.yaml index b8463ebdd0..519b84c570 100644 --- a/conda/recipe/meta.yaml +++ b/conda/recipe/meta.yaml @@ -45,7 +45,6 @@ requirements: host: - zlib - llvmdev >=11 -- cctools # [not win] outputs: - name: {{ pkg_name }}-libs @@ -63,12 +62,10 @@ outputs: - llvmdev >=11 - {{ pin_compatible('cudatoolkit', lower_bound=cuda_version, max_pin='x.x') }} # [cuda] - cudnn >=7.6.0 # [cuda] -- cctools # [not win] run: - llvmdev >=11 - {{ pin_compatible('cudatoolkit', lower_bound=cuda_version, max_pin='x.x') }} # [cuda] - cudnn >=7.6.0 # [cuda] -- cctools # [not win] - name: {{ pkg_name }} script: install_tvm_python.sh # [not win] diff --git a/tests/scripts/task_config_build_arm.sh b/tests/scripts/task_config_build_arm.sh index 35ecde2904..516e6ac867 100755 --- a/tests/scripts/task_config_build_arm.sh +++ b/tests/scripts/task_config_build_arm.sh @@ -25,6 +25,7 @@ cp ../cmake/config.cmake . echo set\(USE_SORT ON\) >> config.cmake echo set\(USE_RPC ON\) >> config.cmake +echo set\(USE_MICRO ON\) >> config.cmake echo set\(USE_MICRO_STANDALONE_RUNTIME ON\) >> config.cmake echo set\(USE_PROFILER ON\) >> config.cmake echo set\(USE_LLVM llvm-config-8\) >> config.cmake diff --git a/tests/scripts/task_config_build_cortexm.sh b/tests/scripts/task_config_build_cortexm.sh index 5407079c1a..f15ed81711 100755 --- a/tests/scripts/task_config_build_cortexm.sh +++ b/tests/scripts/task_config_build_cortexm.sh @@ -24,6 +24,7 @@ cd "$BUILD_DIR" cp ../cmake/config.cmake .
[tvm] branch main updated (ca5bc958d1 -> dcea36e76d)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from ca5bc958d1 [tir]delete useless param in driver_api.cc (#13474) add dcea36e76d Add python venvs to demo_ images that build (#13435) No new revisions were added by this update. Summary of changes: docker/Dockerfile.demo_android | 7 +++ docker/Dockerfile.demo_rocm | 8 ++-- docker/Dockerfile.demo_vitis_ai | 4 3 files changed, 17 insertions(+), 2 deletions(-)
[tvm-rfcs] branch main updated: Tvm explorer infrastructure (#92)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm-rfcs.git The following commit(s) were added to refs/heads/main by this push: new dcfe8cd Tvm explorer infrastructure (#92) dcfe8cd is described below commit dcfe8cd56194270a2aac3fb201588cac5699602b Author: Chun-I Tsai AuthorDate: Tue Oct 18 04:02:05 2022 +0800 Tvm explorer infrastructure (#92) * [TVM Explorer Infrastructure] - Enchance the span filling - Enchance the schedule visualization * [tvm_explorer_infrastructure] - Rebased Co-authored-by: Joey Tsai --- rfcs/0092-TVM-Explorer-Infrastructure.md | 699 + rfcs/assets/0092/Explorer-Entrance.png | Bin 0 -> 247855 bytes .../0092/callstack_of_schedule_propagation.png | Bin 0 -> 110190 bytes rfcs/assets/0092/cmp_schedule_tree.png | Bin 0 -> 228156 bytes .../0092/explorer_schedule_tree_comparison.png | Bin 0 -> 170848 bytes rfcs/assets/0092/explorer_tvm_graph_executor.png | Bin 0 -> 66 bytes rfcs/assets/0092/ori_schedule_tree.png | Bin 0 -> 260624 bytes rfcs/assets/0092/pass-span.png | Bin 0 -> 627421 bytes rfcs/assets/0092/sequentialspan-uml.png| Bin 0 -> 23283 bytes rfcs/assets/0092/sibuilder-uml.png | Bin 0 -> 66588 bytes rfcs/assets/0092/text-mapping.png | Bin 0 -> 286571 bytes 11 files changed, 699 insertions(+) diff --git a/rfcs/0092-TVM-Explorer-Infrastructure.md b/rfcs/0092-TVM-Explorer-Infrastructure.md new file mode 100644 index 000..92abcfd --- /dev/null +++ b/rfcs/0092-TVM-Explorer-Infrastructure.md @@ -0,0 +1,699 @@ +- Feature Name: TVM Explorer Infrastructure +- Start Date: Sep 1, 2022 +- RFC PR: [apache/tvm-rfcs#0092](https://github.com/apache/tvm-rfcs/pull/92) +- GitHub Issue: [apache/tvm/#10072](https://github.com/apache/tvm/pull/10072) +- Authors: Chun-I Tsai, Hao-Wei Hsu, Zack Chen. + +# Summary +[summary]: #summary + +The goal of this RFC is to extend the capability of tracing source information between different IRs for the debugging +uses. Three features get benefit from this change as following: +- Map Layer name from ML frontend IR to Relay IR. +- Record source expressions to the transformed ones during pass optimizations. +- Queue the snapshots of schedule after changes made by primitives + +These changes provide users a clear backtrace of an IR in CLI text format. Furthermore, paired with our on-going project +`TVM Explorer`, a colorful and convenient GUI can improve the user experience even better. We will demonstrate the use +cases of `TVM Explorer` with examples in the following sections. + +# Motivation +[motivation]: #motivation + +We aim to ease debugging process by enhancing and creating the features to carry source information. TVM performs +numbers of transformations to optimize and deploy a ML frontend IR to a targeted device. However, currently modules +which record source information between IRs are not fully used. It makes users hard to trace the source of a transformed +IR. Usually an investigation to source code should be done so as to understand details of a transformation. +We provide the following enhancements to mitigate users' effort by recording source information between IR and schedules +of op implementation: +1. `Frontend span filler`: Fill the layer name to Relay IR during the frontend conversion. +2. `Pass source information builder`: Construct `SequentialSpan` from `Span` and `SIBuilder` to handle source information +for both Relay IR and TIR. +3. `Schedule/Stage visualization enhancement`: Record and propagate op's schedule snapshots with primitives +applied in regular build flow. + +After these modifications, user can obtain the source information simply by a glance or via debugger. + + +Finally, inspired by [Compiler Explorer](https://godbolt.org/), we build a web-GUI, [TVM Explorer](#tvm-explorer-preview) +for TVM. Based on the infrastructures above, `TVM Explorer` provides a batter user experience when comparing IRs or +analyzing schedules _(the code base of `TVM Explorer` is maintained in another git repository and not included in this +RFC)_. + + + TVM Explorer + + + + +# Guide-level explanation +[guide-level-explanation]: #guide-level-explanation + +## TVM infrastructures +### Frontend span filler + +Based on the ExprMutator, we implement `set_span` to recursively fill the source information to Relay IR during the op +conversion. We could obtain the Relay IR with span even in an one-to-many conversion. Take Pack op from TF for example, +it inserts multiple expand_dims during conversion: +```python +# implement of pack TF conversion +def _pack(): +def _impl(inputs, attr, params, mod): +axis = int(attr["axis"]) +inputs_resha
svn commit: r57435 - /release/tvm/tvm-v0.10.0/
Author: areusch Date: Mon Oct 17 17:14:08 2022 New Revision: 57435 Log: update v0.10.0 filenames to remove .rc0 part. Added: release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.tar.gz - copied unchanged from r57434, release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.tar.gz.asc - copied unchanged from r57434, release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz.asc release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.tar.gz.sha512 - copied unchanged from r57434, release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz.sha512 Removed: release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz.asc release/tvm/tvm-v0.10.0/apache-tvm-src-v0.10.0.rc0.tar.gz.sha512
svn commit: r57434 - /dev/tvm/tvm-v0.10.0-rc0/ /release/tvm/tvm-v0.10.0/
Author: areusch Date: Mon Oct 17 17:12:27 2022 New Revision: 57434 Log: Promote v0.10.0-rc0 to v0.10.0. Added: release/tvm/tvm-v0.10.0/ - copied from r57433, dev/tvm/tvm-v0.10.0-rc0/ Removed: dev/tvm/tvm-v0.10.0-rc0/
[tvm] branch main updated (3f0d3f24b7 -> b1c8c90384)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 3f0d3f24b7 [AOT] Sanitize input/output name in runtime (#13046) add b1c8c90384 [skip ci] Added label tags links to the wiki page in issue templates to align with Issue Tracking RFC (#12988) No new revisions were added by this update. Summary of changes: .github/ISSUE_TEMPLATE/bug-report.md | 4 ++-- .github/ISSUE_TEMPLATE/ci-problem.md | 4 ++-- .github/ISSUE_TEMPLATE/documentation.md| 4 ++-- .github/ISSUE_TEMPLATE/feature-tracking.md | 4 ++-- .github/ISSUE_TEMPLATE/flaky-test.md | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-)
[tvm] branch main updated (84c50ef045 -> fcbcd156c7)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 84c50ef045 [ci][docs] Add external network resources to S3 (#12989) add fcbcd156c7 [microTVM] Add Cortex-M DSP schedules for optimal conv2d layouts (#12969) No new revisions were added by this update. Summary of changes: python/tvm/relay/op/strategy/arm_cpu.py| 67 - python/tvm/topi/arm_cpu/conv2d.py | 16 ++ python/tvm/topi/arm_cpu/depthwise_conv2d.py| 19 +- .../arm_cpu/mprofile/dsp/micro_kernel/tensordot.py | 155 .../topi/arm_cpu/mprofile/dsp/tensordot_conv2ds.py | 271 + python/tvm/topi/utils.py | 30 ++- .../relay/strategy/arm_cpu/test_conv2d_nhwc.py | 36 ++- .../strategy/arm_cpu/test_depthwise_conv2d.py | 27 ++ 8 files changed, 606 insertions(+), 15 deletions(-) create mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/tensordot.py create mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/tensordot_conv2ds.py
svn commit: r57303 - /release/tvm/KEYS
Author: areusch Date: Tue Oct 11 07:54:51 2022 New Revision: 57303 Log: Add AndrewZhaoLuo key to release keys. Modified: release/tvm/KEYS Modified: release/tvm/KEYS == --- release/tvm/KEYS (original) +++ release/tvm/KEYS Tue Oct 11 07:54:51 2022 @@ -464,3 +464,62 @@ aLLvg9K8HxeWTvQvowCAyFJo4NfIrS/7gMm5JcWM rSSBN90DWxIgPhlAqgO0ofkbPSVwF/9i7nd3 =XBuV -END PGP PUBLIC KEY BLOCK- +pub rsa4096 2022-10-10 [SC] + 1B63BD2FFF5E515DA1BEF393C9A56ABD5CCA3EB8 +uid [ultimate] Andrew Zhao Luo +sig 3C9A56ABD5CCA3EB8 2022-10-10 Andrew Zhao Luo +sub rsa4096 2022-10-10 [E] +sig C9A56ABD5CCA3EB8 2022-10-10 Andrew Zhao Luo + +-BEGIN PGP PUBLIC KEY BLOCK- + +mQINBGNEkfMBEAC4sFi6Msfxtv4pahjdp+nmfwprEemP0inI4yiuT9m5eEzc4/0/ +EwPHw4Kwx4SQypxSJXqMnxSI97w/54LW0Gob9hzRwcCLCe4zPR9YnJQ0JQo5yrjE +zo9JvgyIGtGhM6rUTSMcCIO3eYb4Ogwe99DoWMz4w2NA9wB3nzkA2zL4VpaM3Ou/ +F54xlMLE7ht0EralHcHZUuSmvpzm43lScE6LwypFecNvfoBdiJJ5rGxbFMKJRGeF +GGCZPuLy3EBrPbHe8cjWfgBKNj3XTl8B8YO5oEIZZPCpo3ML8DuD1Mf93PCk8Hd/ +yr9U7VMOXrEEZpTjGOEl3oL+5VVUFFBDs2tuxeBMExC90sEkoXDtJCRkSlHHBWZy +tzTqwN9GcLe1N5YKwEphhnmN7tp5rLEJXdUasJ4RlWQHZqVJddDELLb595FYgZMe +2dBXKbXrn8NvJBJf5yeLkSJh9gdkdtXwX/YN4D70LYKLz9+XZqhg3iPLAdrY+xVN +lHtCZDKLSHpNHWPcqnBIcOre6ucBJu52S3ZoVtH/CCQrBkuVpXWSjnL1wCw1Djyx +cNSVSVR9/yZQTgcWQh1zmErQEC9mmUrhTJ19IJ4bpseWgyhIETzuSYZ0Xm7c3eT9 +FrogP/D/uCWwfb5DJUIIFBh3fkEMCSEpc4TPIjulpJL3i3FaLLN4hYURKwARAQAB +tCpBbmRyZXcgWmhhbyBMdW8gPGFuZHJld3poYW9sdW9AYXBhY2hlLm9yZz6JAk4E +EwEKADgWIQQbY70v/15RXaG+85PJpWq9XMo+uAUCY0SR8wIbAwULCQgHAgYVCgkI +CwIEFgIDAQIeAQIXgAAKCRDJpWq9XMo+uFYoD/4oALh+pdsnFwbyx1ycf3lLExwE +vMrmr+hMrodQqoqQ7bt+anYzA78v0HD3U7zsLSqhIhYE34Ib3fB5Rv7z6DcNP6pl +RUH7QU4DOyePRPRx/xYz5R3OkqVKrV7RUdzgXOn+5mujTJiRYzRbNyexg88dJVWK +eQCiNyW9j8M/+5a/+gWjehxyvSmoSv1fEFUDV7hjIinSApWyMm0Q8tzoqxPmuaTE +ll15VkgWx2t3bjQtfPCeft1eZ7Tb84k/PRN7JRFVEZYul4MtRSrJTDO1E5ewZ2qH +PV/2JQPQMFKpaDEMseoGk6/O9I76sLjTIjQ7mfFOnEBiMph2BCF/cpMufxLnE2WC +GyTCGVB+BPgvQ9kvD6rFTAHyiWetHA5Z0v/TYUYAPYIATk4N0Hop/2fx4NK4vWeX +ehjvgPzp65vRPAHiIh7JJM4yt95yMdSpo7sUuduefyMf5FgzBpjaXTb2nI5NsUOr +Ohh6MjaZWt1tZoNj7X81IILJJk4HDkDLpTsi8dDLPRzuHw7iNb9U0bn6cSqFW8JZ +M+U1t6jpdJ9hEDlBiJPZbH3Ndky+ZyDoQQ6zp2mGbgkrT6soFzIi2zQ55qEpnMNM +QpxR17BTJAJO6JEPIHhdovU/VDg8ho7blbhNFY/L8o72Q4RAnLW36rRBx+dsExHn +Gn6OvtU24FhEfPlWyrkCDQRjRJHzARAAvdG8QPkyHtnV4SyAgaMp6lIm31OglXQO +LFue4Xnv/UsUzXY8am281dnF7IbccnmxFxxlJq32lIav+L77I5wQUd/DuY3zj37b +RddyskOuK7m1skMXnBgJFUlfwE9H6ypr+HPy05VAnp5zsqelXhvIoJmioTFysmgi +IFZTUfV9RPp6ohO18r4Vdgyn0a/p+hCoNuxdjlZUSZ4WgY3b+11d+wcudUu2zfwc +LSuXpsp30+tox5vcn82fANux0fnxbpc8Ic00XlEQCeUphF9NxhBPGnPRQV12rBpT +eo+bOUp2UN3dEPgnYGWLBt8uuxVOr5XE1AwwlIokSdoS8zGVR8JPk+32PEW07Q4R +8t0J/MFacFlvHHpWkBBStXU2pzzLs+AX5qO7s6XekqpXdb261vSEd86jH6ndqIo0 +KSSPlUmBi4FAKHKZIUhdSM0waR9CJQfYUWGqXLJpaKqKTojqIuXQWh4S343H9IRg +n5nbihuiko8UrrzofNBb0TXfPOnYYjCB3cFTVQzIFl05aNGs5HQGLX0wbqD7+kfP +m79b6p5SWLoNLmGNLj0dDcBelw+nAPhbOIn1rohwdPPJt5gU05BPv++X6CzmqFEA +pVx01HXnbX62P2HT2V5YavLPw/R0FrXOB4ZWKH/tg+BPMBqS+E5eifadvVvKH/8w +rc0Q1UwYxB8AEQEAAYkCNgQYAQoAIBYhBBtjvS//XlFdob7zk8mlar1cyj64BQJj +RJHzAhsMAAoJEMmlar1cyj64hjMP/juNX8sFXlNCyR/HHKHwpfzn+nj6vVz3RgJi +OFhf7HYAKh37yMizF3pN7ueyV55BBiiISQNbxf5eLh6yCJ2NGkun+mTKPow5CAyB +yFS/z6zmlGduL+L8flI0Pao0UJgryhDUYkNrR5/PkZ4ksPKyI3sLlaoOPvIQAlk2 +aw1BI8RzTo05Y9OHralpFV0Nvufjvc9R0Q0934216M7NNK8nUSxXWeztM0yBHEIi +V+/XY821F+yO2aBhHqnpQeJ1+6bc3UB7sbt8xA91rJ40Kw7TS4FGbTzQyXKRBMKY +LoZVF61lRUoAFY4Fh+dRKAEel8ZnBhyHEyh5NCUWkHJNWxpPnl/XIVJZ3BbFbtfT +W/CeWBEAkrJnCl5CfpXUyZRWYk2uwR1tA7apV+zJpaPwojnY5s+2IhMPrTdkxsNR +zA4jpYkRVEwqy4LuLLbiVnTPba6y8DBiQ4by1m1CKJJJ09BMUKff5v1xSerONLBM +uEKTrz3MJLLh1sZWkTO04K2VarbWoCygydcrxc9PNOuISq2mn+g2kzVhnUG45YnQ +RRveMKZ6+uqGzsSYwp+lHNNso0ey94qgwy4qubT++rLZZ5eVqBSUWCsGoEayDBOQ +v9YZLKL6qfuWuYN7rDdY1c82kPPmjaSkpXiPP7q6v8vUOGhnMFOAUNfxwpXP5Hs9 +/lFRrVmO +=rAtV +-END PGP PUBLIC KEY BLOCK-
[tvm] branch main updated (f8666a9469 -> 84c50ef045)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from f8666a9469 [ci] Template build steps (#12983) add 84c50ef045 [ci][docs] Add external network resources to S3 (#12989) No new revisions were added by this update. Summary of changes: tests/scripts/request_hook/request_hook.py | 40 -- 1 file changed, 32 insertions(+), 8 deletions(-)
[tvm] branch main updated (aedbe45b6a -> f8666a9469)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from aedbe45b6a [Node] Expose StructuralEqual/Hash handler implemenation to header (#13001) add f8666a9469 [ci] Template build steps (#12983) No new revisions were added by this update. Summary of changes: Jenkinsfile| 254 ++- ci/jenkins/Build.groovy.j2 | 328 + ci/jenkins/macros.j2 | 47 +-- 3 files changed, 345 insertions(+), 284 deletions(-)
[tvm] branch main updated (a661864f85 -> af01526ae2)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from a661864f85 [skip ci] Modify issue templates to align with Issue Tracking RFC (#12898) add af01526ae2 [skip ci] Edits to the Bug & Flaky test Issue templates to reduce word count (#12985) No new revisions were added by this update. Summary of changes: .github/ISSUE_TEMPLATE/bug-report.md | 2 +- .github/ISSUE_TEMPLATE/ci-problem.md | 2 +- .github/ISSUE_TEMPLATE/flaky-test.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
[tvm] branch main updated (3a125375a3 -> a661864f85)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 3a125375a3 [Hexagon] Don't print simulator protocol messages (#12958) add a661864f85 [skip ci] Modify issue templates to align with Issue Tracking RFC (#12898) No new revisions were added by this update. Summary of changes: .github/ISSUE_TEMPLATE/bug-report.md | 11 --- .github/ISSUE_TEMPLATE/ci-image.md | 29 - .github/ISSUE_TEMPLATE/ci-problem.md | 13 + .github/ISSUE_TEMPLATE/documentation.md| 11 --- .github/ISSUE_TEMPLATE/feature-tracking.md | 11 --- .github/ISSUE_TEMPLATE/flaky-test.md | 10 -- 6 files changed, 41 insertions(+), 44 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/ci-image.md
[tvm] branch main updated (1ea1a0bc88 -> 61a7632b55)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 1ea1a0bc88 [Hexagon] 3-stage pipeline; multi queue async DMA for cache read / write (#12954) add 61a7632b55 [microTVM] Use default Project Options in template projects and add Makefile for Arduino template project (#12818) No new revisions were added by this update. Summary of changes: .../arduino/template_project/Makefile.template | 64 + .../template_project/microtvm_api_server.py| 271 ++--- .../reference-vm/base-box/base_box_test.sh | 6 +- .../zephyr/template_project/microtvm_api_server.py | 80 ++ cmake/modules/Arduino.cmake| 1 + gallery/how_to/work_with_microtvm/micro_aot.py | 2 +- .../how_to/work_with_microtvm/micro_autotune.py| 6 +- .../work_with_microtvm/micro_reference_vm.py | 4 +- gallery/how_to/work_with_microtvm/micro_tflite.py | 2 +- gallery/how_to/work_with_microtvm/micro_train.py | 2 +- python/tvm/micro/project_api/server.py | 84 +++ python/tvm/micro/testing/evaluation.py | 4 +- tests/lint/check_file_type.py | 2 + tests/micro/arduino/README.md | 4 +- tests/micro/arduino/test_arduino_rpc_server.py | 2 +- tests/micro/arduino/test_utils.py | 2 +- tests/micro/common/test_tvmc.py| 14 +- .../test_arduino_microtvm_api_server.py| 26 +- tests/micro/project_api/test_project_api.py| 92 +++ tests/micro/zephyr/README.md | 6 +- tests/micro/zephyr/test_utils.py | 2 +- tests/micro/zephyr/test_zephyr.py | 6 +- tests/micro/zephyr/test_zephyr_aot_exec.py | 2 +- tests/python/unittest/test_micro_project_api.py| 35 +++ tests/scripts/task_python_microtvm.sh | 4 +- 25 files changed, 532 insertions(+), 191 deletions(-) create mode 100644 apps/microtvm/arduino/template_project/Makefile.template rename {apps/microtvm/arduino/template_project/tests => tests/micro/project_api}/test_arduino_microtvm_api_server.py (89%) create mode 100644 tests/micro/project_api/test_project_api.py
[tvm] branch main updated (9d1fe6d8d1 -> 8af43d3c11)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 9d1fe6d8d1 [Target] Add Ampere GPUs CUDA tags (#12930) add 8af43d3c11 [Hexagon] [runtime] Add user DMA to device API resource management (#12918) No new revisions were added by this update. Summary of changes: src/runtime/hexagon/hexagon_device_api.cc | 4 +- src/runtime/hexagon/hexagon_device_api.h | 20 - src/runtime/hexagon/hexagon_user_dma.cc| 12 -- src/runtime/hexagon/hexagon_user_dma.h | 21 -- .../hexagon/hexagon_device_api_tests.cc| 13 +- .../cpp-runtime/hexagon/hexagon_user_dma_tests.cc | 48 +++--- 6 files changed, 72 insertions(+), 46 deletions(-)
[tvm] branch main updated (17e4644019 -> e3a6cb6a1b)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 17e4644019 [TIR][MetaSchedule] Add regression test for layout_rewrite extent=1 (#12916) add e3a6cb6a1b [microTVM] Generalize depthwise_conv2d schedule (#12856) No new revisions were added by this update. Summary of changes: python/tvm/relay/op/strategy/arm_cpu.py| 22 ++- python/tvm/topi/arm_cpu/conv2d_alter_op.py | 38 +++- .../topi/arm_cpu/mprofile/dsp/depthwise_conv2d.py | 126 +++-- .../arm_cpu/mprofile/dsp/micro_kernel/common.py| 15 ++ .../dsp/micro_kernel/multi_channel_convolve.py | 210 + .../dsp/micro_kernel/quad_channel_convolve.py | 180 -- .../strategy/arm_cpu/test_depthwise_conv2d.py | 43 +++-- 7 files changed, 327 insertions(+), 307 deletions(-) create mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/multi_channel_convolve.py delete mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/quad_channel_convolve.py
[tvm] branch main updated: [usmp] Also remap VarNode to USMP-allocated buffer (#12880)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new c89a8baeeb [usmp] Also remap VarNode to USMP-allocated buffer (#12880) c89a8baeeb is described below commit c89a8baeeb0e76eb67a38651cc8a5829195f9a6b Author: Andrew Reusch AuthorDate: Tue Sep 27 16:11:14 2022 -0700 [usmp] Also remap VarNode to USMP-allocated buffer (#12880) Before this patch, ConvertPoolAllocationsToOffsets would generate TIR like the following: let dense_let: Pointer(global int32) = @tir.address_of(global_workspace_37_buffer_var[69952], dtype=handle) for (k.outer: int32, 0, 64) { @tir.call_extern("gemm_1x1x1_update_UKVNAEBL", ..., dense, ...) } T_multiply[ax1] = @tir.q_multiply_shift(((dense: Buffer(dense_let, int32, [10], [], align=32)[ax1], ...) This caused CodegenSourceBase to later fail with this error: "src/target/source/codegen_source_base.cc", line 67 Check failed: (it != var_idmap_.end()) is false: Find undefined Variable dense After this patch, "dense" in the call_extern is changed to read "dense_let." --- src/tir/usmp/analysis/extract_buffer_info.cc | 20 ++--- .../convert_pool_allocations_to_offsets.cc | 10 +++ ...ransform_convert_pool_allocations_to_offsets.py | 93 ++ 3 files changed, 114 insertions(+), 9 deletions(-) diff --git a/src/tir/usmp/analysis/extract_buffer_info.cc b/src/tir/usmp/analysis/extract_buffer_info.cc index 74d428f6dd..2680589457 100644 --- a/src/tir/usmp/analysis/extract_buffer_info.cc +++ b/src/tir/usmp/analysis/extract_buffer_info.cc @@ -429,15 +429,17 @@ void BufferInfoExtractor::VisitExpr_(const VarNode* op) { Array static GetMatchedBuffers(const PrimFunc& func) { Array buffer_vars; - for (unsigned int i = 0; i < func->params.size() - 1; i++) { -Var param = func->params[i]; -buffer_vars.push_back(func->buffer_map[param]->data); - } - Var last_param = func->params.back(); - // Checks whether last var is present in the buffer map - // because it could be the resource handle - if (func->buffer_map.find(last_param) != func->buffer_map.end()) { -buffer_vars.push_back(func->buffer_map[last_param]->data); + if (func->params.size() > 0) { +for (unsigned int i = 0; i < func->params.size() - 1; i++) { + Var param = func->params[i]; + buffer_vars.push_back(func->buffer_map[param]->data); +} +Var last_param = func->params.back(); +// Checks whether last var is present in the buffer map +// because it could be the resource handle +if (func->buffer_map.find(last_param) != func->buffer_map.end()) { + buffer_vars.push_back(func->buffer_map[last_param]->data); +} } return buffer_vars; } diff --git a/src/tir/usmp/transform/convert_pool_allocations_to_offsets.cc b/src/tir/usmp/transform/convert_pool_allocations_to_offsets.cc index 601e347196..56aba654b5 100644 --- a/src/tir/usmp/transform/convert_pool_allocations_to_offsets.cc +++ b/src/tir/usmp/transform/convert_pool_allocations_to_offsets.cc @@ -96,6 +96,7 @@ class PoolAllocationToOffsetConverter : public StmtExprMutator { private: PrimExpr VisitExpr_(const CallNode* op) override; Stmt VisitStmt_(const AllocateNode* op) override; + PrimExpr VisitExpr_(const VarNode* op) override; PrimExpr VisitExpr_(const BufferLoadNode* op) override; Stmt VisitStmt_(const BufferStoreNode* op) override; @@ -395,6 +396,15 @@ PrimExpr PoolAllocationToOffsetConverter::VisitExpr_(const BufferLoadNode* op) { return std::move(load); } +PrimExpr PoolAllocationToOffsetConverter::VisitExpr_(const VarNode* op) { + auto it = allocate_var_to_let_var_.find(GetRef(op)); + if (it != allocate_var_to_let_var_.end()) { +return (*it).second; + } + + return StmtExprMutator::VisitExpr_(op); +} + Buffer PoolAllocationToOffsetConverter::GetRemappedBuffer(Buffer original) { { auto it = original_buf_to_let_buf_.find(original); diff --git a/tests/python/unittest/test_tir_usmp_transform_convert_pool_allocations_to_offsets.py b/tests/python/unittest/test_tir_usmp_transform_convert_pool_allocations_to_offsets.py index fdda400a77..31cc6e07de 100644 --- a/tests/python/unittest/test_tir_usmp_transform_convert_pool_allocations_to_offsets.py +++ b/tests/python/unittest/test_tir_usmp_transform_convert_pool_allocations_to_offsets.py @@ -600,5 +600,98 @@ def test_resnet_subgraph(): tvm.ir.assert_structural_equal(actual_func, ref_func) +@tvm.script.ir_module +class TensorIntrinStructure: +@T.prim_func +def tensor_intrin_primfunc() -> None: +dense_data = T.allocate([10], "int32", "
[tvm] branch main updated (5a807e27c0 -> 82e6fc41f8)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 5a807e27c0 [Hexagon] [runtime] Add thread manager to resource management (#12905) add 82e6fc41f8 [microTVM] add the option to open a saved micro project for debugging (#12495) No new revisions were added by this update. Summary of changes: python/tvm/micro/build.py | 26 +--- python/tvm/micro/session.py| 56 -- python/tvm/micro/testing/evaluation.py | 39 +++ 3 files changed, 88 insertions(+), 33 deletions(-)
[tvm] branch main updated (77d8eef514 -> 9a673faa74)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 77d8eef514 [Runtime][Bugfix] Added type-checking for Array::insert (#12691) add 9a673faa74 [ci] Initialize git during deploys (#12909) No new revisions were added by this update. Summary of changes: Jenkinsfile | 14 -- ci/jenkins/Deploy.groovy.j2 | 10 ++ 2 files changed, 14 insertions(+), 10 deletions(-)
[tvm] branch main updated (7dbc68d108 -> 77d8eef514)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 7dbc68d108 [ONNX] Fix test_roi_align failure (#12906) add 77d8eef514 [Runtime][Bugfix] Added type-checking for Array::insert (#12691) No new revisions were added by this update. Summary of changes: include/tvm/runtime/container/array.h | 5 + src/te/schedule/schedule_lang.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
[tvm] branch main updated (f25a702a1f -> d4fb957ae1)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from f25a702a1f [TOPI][Hexagon] Add schedule and test for maxpool uint8 layout (#12826) add d4fb957ae1 [microTVM][ARM] Improve dense DSP micro kernel (#12908) No new revisions were added by this update. Summary of changes: python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/gemm.py | 8 1 file changed, 4 insertions(+), 4 deletions(-)
[tvm] branch main updated (4ef1465d40 -> b6a660be58)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 4ef1465d40 [skip ci] Temporarily disable comments bot (#12903) add b6a660be58 [BUILD] Re-enable ccache by default (#12839) No new revisions were added by this update. Summary of changes: CMakeLists.txt | 6 + cmake/config.cmake | 11 ++ cmake/modules/LibInfo.cmake | 1 + cmake/utils/CCache.cmake | 52 cmake/utils/Summary.cmake| 1 + docs/install/from_source.rst | 2 ++ src/support/libinfo.cc | 1 + 7 files changed, 74 insertions(+) create mode 100644 cmake/utils/CCache.cmake
[tvm] 01/01: git_init before Deploy to get retry.sh.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/fix-retry-main in repository https://gitbox.apache.org/repos/asf/tvm.git commit efbff7ad7fcc34d3af00857381511ce003939494 Author: Andrew Reusch AuthorDate: Thu Sep 22 14:23:25 2022 -0700 git_init before Deploy to get retry.sh. --- Jenkinsfile | 4 +++- ci/jenkins/Deploy.groovy.j2 | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a61ab1cd69..0f540e56b7 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-09-16T08:47:49.743918 +// Generated at 2022-09-22T14:23:18.544698 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> @@ -4262,6 +4262,7 @@ def deploy() { returnStdout: true, ).trim() def tag = "${date_Ymd_HMS}-${upstream_revision.substring(0, 8)}" + init_git() update_docker(built_ci_arm, "tlcpackstaging/ci_arm:${tag}") update_docker(built_ci_cortexm, "tlcpackstaging/ci_cortexm:${tag}") update_docker(built_ci_cpu, "tlcpackstaging/ci_cpu:${tag}") @@ -4299,6 +4300,7 @@ def deploy() { script: 'echo $TLCPACK_TOKEN | docker login --username octomldriazati --password-stdin', label: 'Log in to Docker Hub' ) +init_git() if (ci_arm.contains("tlcpackstaging")) { // Push image to tlcpack def tag = ci_arm.split(":")[1] diff --git a/ci/jenkins/Deploy.groovy.j2 b/ci/jenkins/Deploy.groovy.j2 index 9812e11135..3c32050a5f 100644 --- a/ci/jenkins/Deploy.groovy.j2 +++ b/ci/jenkins/Deploy.groovy.j2 @@ -115,6 +115,7 @@ def deploy() { returnStdout: true, ).trim() def tag = "${date_Ymd_HMS}-${upstream_revision.substring(0, 8)}" +init_git() {% for image in images %} update_docker(built_{{ image.name }}, "tlcpackstaging/{{ image.name }}:${tag}") {% endfor %} @@ -139,6 +140,7 @@ def deploy() { script: 'echo $TLCPACK_TOKEN | docker login --username octomldriazati --password-stdin', label: 'Log in to Docker Hub' ) + init_git() {% for image in images %} if ({{ image.name }}.contains("tlcpackstaging")) { // Push image to tlcpack
[tvm] branch areusch/fix-retry-main created (now efbff7ad7f)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch areusch/fix-retry-main in repository https://gitbox.apache.org/repos/asf/tvm.git at efbff7ad7f git_init before Deploy to get retry.sh. This branch includes the following new commits: new efbff7ad7f git_init before Deploy to get retry.sh. The 1 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.
[tvm] branch main updated (534378b935 -> 52dbf102cd)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 534378b935 [Containers] Add Array::Map (#12692) add 52dbf102cd Fix caffe, boost install in Python venvs by creating python3.X link (#12828) No new revisions were added by this update. Summary of changes: docker/install/ubuntu_install_boost.sh | 3 +++ docker/install/ubuntu_install_caffe.sh | 4 ++-- docker/install/ubuntu_install_python.sh | 7 +++ 3 files changed, 12 insertions(+), 2 deletions(-)
[tvm] branch main updated: [Hexagon] [runtime] Improve runtime resource management (#12727)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 38f53e8c95 [Hexagon] [runtime] Improve runtime resource management (#12727) 38f53e8c95 is described below commit 38f53e8c95d6b4387510e38da89b02edb913e886 Author: Janet Schneider AuthorDate: Fri Sep 16 16:25:28 2022 -0700 [Hexagon] [runtime] Improve runtime resource management (#12727) * First pass at improving runtime resource management * Add unit test * Fix lint and clang format errors * Disable resource reset for simulator * Moved acquire/release calls to session object, separate buffer managers for non-runtime (static) and runtime (dynamic). * Fix lint errors * Fix lint errors * Improve robustness of session shutdown * Fix lint * Address feedback * Only allow call to Acquire in a clean state * Use a pointer to indicate the "active" manager --- python/tvm/contrib/hexagon/session.py | 15 ++-- src/runtime/hexagon/hexagon_device_api.cc | 26 +++-- src/runtime/hexagon/hexagon_device_api.h | 27 +- .../hexagon/hexagon_device_api_tests.cc| 18 +++ 4 files changed, 76 insertions(+), 10 deletions(-) diff --git a/python/tvm/contrib/hexagon/session.py b/python/tvm/contrib/hexagon/session.py index 5619d036e2..e242a95aa8 100644 --- a/python/tvm/contrib/hexagon/session.py +++ b/python/tvm/contrib/hexagon/session.py @@ -88,14 +88,25 @@ class Session: self._rpc_receive_buffer_size_bytes, ], ) +func = self._rpc.get_function("device_api.hexagon.acquire_resources") +func() return self except RuntimeError as exception: raise exception def __exit__(self, exc_type, exc_value, exc_traceback): -# close session to the tracker -del self._rpc +try: +func = self._rpc.get_function("device_api.hexagon.release_resources") +func() +except RuntimeError as exception: +print( +"Exception occurred while calling release_resources() during Session __exit__: ", +exception, +) +finally: +# close session to the tracker +del self._rpc @property def device(self): diff --git a/src/runtime/hexagon/hexagon_device_api.cc b/src/runtime/hexagon/hexagon_device_api.cc index fd3a0db202..463d9799b0 100644 --- a/src/runtime/hexagon/hexagon_device_api.cc +++ b/src/runtime/hexagon/hexagon_device_api.cc @@ -92,16 +92,16 @@ void* HexagonDeviceAPI::AllocDataSpace(Device dev, int ndim, const int64_t* shap if (ndim == 0) { // Allocate storage for a single scalar value. -return hexbuffs.AllocateHexagonBuffer(typesize, kHexagonAllocAlignment, mem_scope); +return mgr->AllocateHexagonBuffer(typesize, kHexagonAllocAlignment, mem_scope); } else if (ndim == 1) { // Allocate a single, contiguous memory region. size_t nbytes = shape[0] * typesize; -return hexbuffs.AllocateHexagonBuffer(nbytes, kHexagonAllocAlignment, mem_scope); +return mgr->AllocateHexagonBuffer(nbytes, kHexagonAllocAlignment, mem_scope); } else if (ndim == 2) { // Allocate the region(s) needed for Hexagon's indirect-tensor format. size_t nallocs = shape[0]; size_t nbytes = shape[1] * typesize; -return hexbuffs.AllocateHexagonBuffer(nallocs, nbytes, kHexagonAllocAlignment, mem_scope); +return mgr->AllocateHexagonBuffer(nallocs, nbytes, kHexagonAllocAlignment, mem_scope); } else { return nullptr; // unreachable } @@ -115,13 +115,13 @@ void* HexagonDeviceAPI::AllocDataSpace(Device dev, size_t nbytes, size_t alignme if (alignment < kHexagonAllocAlignment) { alignment = kHexagonAllocAlignment; } - return hexbuffs.AllocateHexagonBuffer(nbytes, alignment, String("global")); + return mgr->AllocateHexagonBuffer(nbytes, alignment, String("global")); } void HexagonDeviceAPI::FreeDataSpace(Device dev, void* ptr) { CHECK(ptr) << "buffer pointer is null"; CHECK(IsValidDevice(dev)) << "dev.device_type: " << dev.device_type; - hexbuffs.FreeHexagonBuffer(ptr); + mgr->FreeHexagonBuffer(ptr); } // WorkSpace: runtime allocations for Hexagon @@ -137,7 +137,7 @@ void* HexagonDeviceAPI::AllocWorkspace(Device dev, size_t size, DLDataType type_ void HexagonDeviceAPI::FreeWorkspace(Device dev, void* data) { CHECK(IsValidDevice(dev)) << "dev.device_type: " << dev.device_type; - CHECK(hexbuffs.count(data) != 0) + CHECK(mgr->count(data
[tvm] branch main updated: [Hexagon] Add debug option to hexagon pytest (#12795)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new bb80f19ea8 [Hexagon] Add debug option to hexagon pytest (#12795) bb80f19ea8 is described below commit bb80f19ea8493af71c6130301f1b479143d213ee Author: Mehrdad Hessar AuthorDate: Fri Sep 16 15:24:03 2022 -0700 [Hexagon] Add debug option to hexagon pytest (#12795) * add debug option to hexagon pytest * address comment --- python/tvm/contrib/hexagon/build.py | 9 + python/tvm/contrib/hexagon/pytest_plugin.py | 21 + 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/python/tvm/contrib/hexagon/build.py b/python/tvm/contrib/hexagon/build.py index fe7434f738..8960d110b8 100644 --- a/python/tvm/contrib/hexagon/build.py +++ b/python/tvm/contrib/hexagon/build.py @@ -145,7 +145,7 @@ class HexagonLauncherRPC(metaclass=abc.ABCMeta): ... @abc.abstractmethod -def stop_server(self): +def stop_server(self, cleanup=True): """Stop the RPC server""" ... @@ -509,11 +509,12 @@ class HexagonLauncherAndroid(HexagonLauncherRPC): self._copy_binaries() self._run_server_script() -def stop_server(self): +def stop_server(self, cleanup=True): """Abstract method implementation. See description in HexagonLauncherRPC.""" self._cleanup_port_forwarding() self._terminate_remote() -self.cleanup_directory() +if cleanup: +self.cleanup_directory() class HexagonLauncherSimulator(HexagonLauncherRPC): @@ -617,7 +618,7 @@ class HexagonLauncherSimulator(HexagonLauncherRPC): def cleanup_directory(self): """Abstract method implementation. See description in HexagonLauncherRPC.""" -def stop_server(self): +def stop_server(self, cleanup=True): """Abstract method implementation. See description in HexagonLauncherRPC.""" self._server_process.terminate() diff --git a/python/tvm/contrib/hexagon/pytest_plugin.py b/python/tvm/contrib/hexagon/pytest_plugin.py index 0b9f65540c..03f4a1a143 100644 --- a/python/tvm/contrib/hexagon/pytest_plugin.py +++ b/python/tvm/contrib/hexagon/pytest_plugin.py @@ -158,7 +158,7 @@ def adb_server_socket() -> str: @pytest.fixture(scope="session") def hexagon_server_process( -request, rpc_server_port_for_session, adb_server_socket, skip_rpc +request, rpc_server_port_for_session, adb_server_socket, skip_rpc, hexagon_debug ) -> HexagonLauncherRPC: """Initials and returns hexagon launcher if ANDROID_SERIAL_NUMBER is defined. This launcher is started only once per test session. @@ -194,7 +194,7 @@ def hexagon_server_process( yield {"launcher": launcher, "device_adr": device_adr} finally: if not skip_rpc: -launcher.stop_server() +launcher.stop_server(cleanup=(not hexagon_debug)) def read_device_list(): @@ -221,6 +221,7 @@ def hexagon_launcher( tvm_tracker_host, tvm_tracker_port, adb_server_socket, +hexagon_debug, ) -> HexagonLauncherRPC: """Initials and returns hexagon launcher which reuses RPC info and Android serial number.""" android_serial_num = android_serial_number() @@ -246,8 +247,9 @@ def hexagon_launcher( yield launcher finally: if android_serial_num == ["simulator"]: -launcher.stop_server() -launcher.cleanup_directory() +launcher.stop_server(cleanup=(not hexagon_debug)) +elif not hexagon_debug: +launcher.cleanup_directory() @pytest.fixture @@ -297,6 +299,11 @@ def skip_rpc(request) -> bool: return request.config.getoption("--skip-rpc") +@pytest.fixture(scope="session") +def hexagon_debug(request) -> bool: +return request.config.getoption("--hexagon-debug") + + def pytest_addoption(parser): parser.addoption("--gtest_args", action="store", default="") @@ -306,6 +313,12 @@ def pytest_addoption(parser): default=False, help="If set true, the RPC server initialization on Android would be skipped", ) +parser.addoption( +"--hexagon-debug", +action="store_true", +default=False, +help="If set true, it will keep the hexagon test directories on the target.", +) def pytest_generate_tests(metafunc):
[tvm] branch main updated (111a88d04e -> 5b43c62ee6)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 111a88d04e [ci][docker] Always build cmake from source (#12774) add 5b43c62ee6 [ci] Remove author check from ping bot (#12788) No new revisions were added by this update. Summary of changes: ci/scripts/ping_reviewers.py | 19 +-- tests/python/ci/test_ci.py | 20 2 files changed, 1 insertion(+), 38 deletions(-)
[tvm] branch main updated (c00ce572c2 -> 111a88d04e)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from c00ce572c2 [ci] Add retries to docker push (#12773) add 111a88d04e [ci][docker] Always build cmake from source (#12774) No new revisions were added by this update. Summary of changes: docker/Dockerfile.ci_arm | 6 +++--- docker/Dockerfile.ci_cortexm | 6 +++--- docker/Dockerfile.ci_cpu | 6 +++--- docker/Dockerfile.ci_hexagon | 3 +++ docker/Dockerfile.ci_i386 | 6 +++--- docker/Dockerfile.ci_minimal | 3 +++ docker/Dockerfile.ci_riscv| 6 +++--- docker/Dockerfile.ci_wasm | 3 +++ docker/install/ubuntu_install_core.sh | 1 - 9 files changed, 24 insertions(+), 16 deletions(-)
[tvm] branch main updated: [ci] Add retries to docker push (#12773)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new c00ce572c2 [ci] Add retries to docker push (#12773) c00ce572c2 is described below commit c00ce572c299a1cba6aede525be738c617e15325 Author: driazati <9407960+driaz...@users.noreply.github.com> AuthorDate: Thu Sep 15 15:20:24 2022 -0700 [ci] Add retries to docker push (#12773) This should mitigate failures like in https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/main/4274/pipeline. This also moves the `retry` function to a script now that we have PR #12604. Co-authored-by: driazati --- Jenkinsfile | 1555 -- ci/jenkins/Build.groovy.j2 | 18 +- ci/jenkins/Deploy.groovy.j2 |6 +- ci/jenkins/DockerBuild.groovy.j2 |6 +- ci/jenkins/Prepare.groovy.j2 |6 +- ci/jenkins/Test.groovy.j2|2 +- ci/jenkins/macros.j2 | 34 +- ci/scripts/retry.sh | 39 + 8 files changed, 223 insertions(+), 1443 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ed1cf4b09e..5835100fde 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-09-01T11:52:42.195970 +// Generated at 2022-09-14T11:22:31.582192 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> @@ -145,26 +145,7 @@ def init_git() { 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 -} - + . ci/scripts/retry.sh retry 3 timeout 5m git submodule update --init -f --jobs 0 """, label: 'Update git submodules', @@ -196,27 +177,8 @@ def docker_init(image) { 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 -} - - retry 3 docker pull ${image} + . ci/scripts/retry.sh + retry 5 docker pull ${image} """, label: 'Pull docker image', ) @@ -453,8 +415,9 @@ def ecr_push(full_name) { sh( script: """ set -x + . ci/scripts/retry.sh docker tag ${full_name} \$AWS_ECR_REPO/${full_name} - docker push \$AWS_ECR_REPO/${full_name} + retry 5 docker push \$AWS_ECR_REPO/${full_name} """, label: 'Upload image to ECR' ) @@ -495,7 +458,8 @@ def ecr_pull(full_name) { sh( script: """ set -eux - docker pull ${full_name} + . ci/scripts/retry.sh + retry 5 docker pull ${full_name} """, label: 'Pull image from ECR' ) @@ -649,8 +613,8 @@ def lint() { 'Lint 1 of 2': { node('CPU-SMALL') { ws("workspace/exec_${env.EXECUTOR_NUMBER}/tvm/lint") { -docker_init(ci_lint) init_git() +docker_init(ci_lint) timeout(time: max_time, unit: 'MINUTES') { withEnv([ 'TVM_NUM_SHARDS=2', @@ -669,8 +633,8 @@ def lint() { 'Lint 2 of 2': { node('CPU-SMALL') { ws("workspace/exec_${env.EXECUTOR_NUMBER}/tvm/lint") { -docker_init(ci_lint) init_git() +docker_init(ci_lint) timeout(time: max_time, unit: 'MINUTES') { withEnv([ 'TVM_NUM_SHARDS=2', @@ -771,33 +735,14 @@ stage('Build
[tvm-rfcs] branch main updated: Issue Triage Workflow RFC (#93)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm-rfcs.git The following commit(s) were added to refs/heads/main by this push: new 3345cc1 Issue Triage Workflow RFC (#93) 3345cc1 is described below commit 3345cc1fe7db7c017051ee7e4b309c6182e81aef Author: Havisha Panda <97978678+hpanda-n...@users.noreply.github.com> AuthorDate: Thu Sep 15 18:00:25 2022 -0400 Issue Triage Workflow RFC (#93) * Issue Triage Workflow RFC This RFC proposes expanding functionality to the existing “New Issue” templates in order to allow for more a precise logging and tracking system for GitHub Issues * Updated filename * Formatiing Edits --- rfcs/0093_Issue_Triage.md| 309 +++ rfcs/assets/0089/Dropdown.png| Bin 0 -> 147743 bytes rfcs/assets/0089/New Issue Templates.png | Bin 0 -> 313028 bytes rfcs/assets/0089/TVM bot.png | Bin 0 -> 79452 bytes rfcs/assets/0089/Title.png | Bin 0 -> 14774 bytes rfcs/assets/0089/Tutorial.mp4| Bin 0 -> 23563454 bytes 6 files changed, 309 insertions(+) diff --git a/rfcs/0093_Issue_Triage.md b/rfcs/0093_Issue_Triage.md new file mode 100644 index 000..b7ad0f2 --- /dev/null +++ b/rfcs/0093_Issue_Triage.md @@ -0,0 +1,309 @@ +# Issue Triage + +* Feature Name: `Update Issue Triage Workflow` +* Co-authored with @areusch, @denise + +# **Summary** + +This RFC proposes expanding functionality to the existing “New Issue” templates in order to allow for more a precise logging and tracking system for GitHub Issues. The updated templates will be leveraging a new `triage-bot` to automatically add relevant labels and cc the appropriate person(s). This RFC also includes establishing more current labels while discontinuing the use outdated labels (see bottom of the RFC for the list). + +# **Motivation** + +Currently, it is sometimes difficult to find and organize TVM’s GitHub Issues due to the lack of specificity. More specifically, our current means of classifying GitHub Issues is the `label` attribute, and many of the labels help only to identify the kind of issue (bug, feature, docs, etc). Most of our labels only vaguely correspond to logical components of the TVM codebase (for instance: `type: backend` — which backend?) and no longer aligns with the latest dev efforts. It is currently [...] + +As the codebase grows, there is increasingly a need to be able to organize Issues according to the logical component of the codebase affected. Doing this allows folks with specific expertise and ownership to focus on a smaller set of issues. It also allows us as a community to more concretely establish issue triage as a role, increasing opportunity for advancement through non-code contribution. + +GitHub Issue Templates can help with this, but in TVM these are primarily organized around the issue type (bug, feature, docs, etc) rather than sorting an issue by component. + +This RFC hopes to more naturally organize TVM’s GitHub Issues by introducing new labels and leveraging a new `triage-bot` which can parse the issue title and body to assign labels and cc the appropriate contributors. + +The overall goal of this RFC is to simplify and strengthen the issue triage workflow, in turn allowing the TVM community to more easily navigate and contribute to the project. + +# **Guide-level explanation** + +## Label Reorganization + +Firstly, this RFC proposes to deprecate a number of the labels we currently use to identify codebase components and add a new set. The new set is much larger than the previous set; however, we believe the new set corresponds to the logical structure of TVM with more granularity. As discussed above, we think it’s important that folks volunteering to maintain a component have an easy way to identify the set of tasks/issues that need their attention. + +To that end, we suggest the a new set of labels. We also suggest to modify `[CONTRIBUTORS.md](http://CONTRIBUTORS.md)` to reflect each Reviewer and Committer’s expertise in terms of these labels. As future work, the Auto-CC subscription tracker can then automatically better tag those with relevant expertise on relevant issues. + +## GitHub Issue Templates + +This RFC plans to phase out **`Update CI Docker Image`** going forward as there is no longer a strong need for it. The rest of the templates will stay. + +The figure below shows the templates TVM uses now. We suggest to modify all remaining templates to assign a `needs-triage` label by default. This new label will alert either the new `triage-bot` or TVM contributors to sort the issue. + +![New Issue Template](assets/0089/New%20Issue%20Templates.png) + +When a new issue is created with the `needs-triage` label, the `triage-bot` will parse the issue’s title or text body (see below for a d
[tvm] branch main updated (f5517d4a08 -> c9002509f6)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from f5517d4a08 [Docker][CI][RISC-V] Build riscv-isa-sim (spike) in ci_riscv Docker image to enable RISC-V unit testing (#12534) add c9002509f6 [Target] Print deprecation warning before canonicalisation in build module (#12747) No new revisions were added by this update. Summary of changes: python/tvm/driver/build_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
[tvm] branch main updated (9b1042585e -> f5517d4a08)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 9b1042585e [Arith] Simplify nested if_then_else (#12749) add f5517d4a08 [Docker][CI][RISC-V] Build riscv-isa-sim (spike) in ci_riscv Docker image to enable RISC-V unit testing (#12534) No new revisions were added by this update. Summary of changes: docker/Dockerfile.ci_cortexm | 6 -- docker/Dockerfile.ci_riscv | 24 ++- .../install/ubuntu_download_csinn2_compute_lib.sh | 20 +++--- ...sis.sh => ubuntu_download_xuantie_gcc_linux.sh} | 31 + ...is.sh => ubuntu_download_xuantie_gcc_newlib.sh} | 31 + ...ll_cmsis.sh => ubuntu_download_xuantie_qemu.sh} | 30 docker/install/ubuntu_install_arduino.sh | 1 - docker/install/ubuntu_install_core.sh | 5 ++ docker/install/ubuntu_install_spike_sim.sh | 81 ++ docker/install/ubuntu_install_zephyr.sh| 5 -- 10 files changed, 171 insertions(+), 63 deletions(-) copy docker/install/{ubuntu_install_cmsis.sh => ubuntu_download_xuantie_gcc_linux.sh} (60%) copy docker/install/{ubuntu_install_cmsis.sh => ubuntu_download_xuantie_gcc_newlib.sh} (60%) copy docker/install/{ubuntu_install_cmsis.sh => ubuntu_download_xuantie_qemu.sh} (60%) create mode 100755 docker/install/ubuntu_install_spike_sim.sh
[tvm] 02/02: Respect Dockerfile ENV PATH modifications in docker/bash.sh lookups.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch ci-docker-staging in repository https://gitbox.apache.org/repos/asf/tvm.git commit e888708c8681e69edc5138d408c38c3167b835a1 Author: Andrew Reusch AuthorDate: Thu Sep 1 16:45:38 2022 -0700 Respect Dockerfile ENV PATH modifications in docker/bash.sh lookups. --- docker/with_the_same_user | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docker/with_the_same_user b/docker/with_the_same_user index 561b30f55d..397b885ee1 100644 --- a/docker/with_the_same_user +++ b/docker/with_the_same_user @@ -25,7 +25,13 @@ set -e -COMMAND=("$@") +# NOTE: sudo uses the env_reset option to reset environment variables to a secure bare minimum. +# The --preserve-env option below passes those variables through to the invoked process; however, +# this appears not to affect the environment used with execve, so we resolve the binary to run +# in this file using the $PATH specified in the Dockerfile. +COMMAND=( "$(which "$1")" ) +shift +COMMAND=( "${COMMAND[@]}" "$@" ) if ! touch /this_is_writable_file_system; then echo "You can't write to your filesystem!" @@ -50,14 +56,14 @@ getent passwd "${CI_BUILD_UID}" || adduser --force-badname --gid "${CI_BUILD_GID usermod -a -G sudo -G tvm-venv "${CI_BUILD_USER}" # Add user to video group for ROCm -if [[ ! -z $ROCM_ENABLED ]]; then +if [[ ! -z "${ROCM_ENABLED-}" ]]; then usermod -a -G video "${CI_BUILD_USER}" fi # This is a grotesque hack to get PYTEST_ADD_OPTS available to all task scripts. echo "${CI_BUILD_USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-nopasswd-sudo -if [[ ! -z $CUDA_VISIBLE_DEVICES ]]; then +if [[ ! -z "${CUDA_VISIBLE_DEVICES-}" ]]; then CUDA_ENV="CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES}" else CUDA_ENV="" @@ -67,8 +73,8 @@ sudo -u "#${CI_BUILD_UID}" --preserve-env \ ${CUDA_ENV} \ PATH=${PATH} \ JAVA_HOME=${JAVA_HOME} \ -LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \ -PYTHONPATH=${PYTHONPATH} \ -CI_IMAGE_NAME=${CI_IMAGE_NAME} \ -HOME=${CI_BUILD_HOME} \ +LD_LIBRARY_PATH="${LD_LIBRARY_PATH-}" \ +PYTHONPATH="${PYTHONPATH-}" \ +CI_IMAGE_NAME="${CI_IMAGE_NAME-}" \ +HOME="${CI_BUILD_HOME-}" \ "${COMMAND[@]}"
[tvm] branch ci-docker-staging updated (57753279ed -> e888708c86)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch ci-docker-staging in repository https://gitbox.apache.org/repos/asf/tvm.git omit 57753279ed Respect Dockerfile ENV PATH modifications in docker/bash.sh lookups. omit a36aab12e5 Always install into a python venv in ci containers. add abb2aa062f [TIR] Add unroll_loop_with_partition_hint_no_interval attr in LoopPartitionConfig to unroll loop (#12631) add 6be04d72c2 [OpenCLML] CLML Profiling fixes corresponding to OpenCL Timer recent … (#12711) add 62bdc91b1a Add Arm DSP implementation of Depthwise Conv2D (#12448) add cd99ca64cb [Relay] Change when int8 operations are converted to int16 on Arm (#12671) add 2d36e46007 [CI][AArch64] Mark tests to be skipped due to torch crash (#12730) add 4f4bc26607 [MetaSchedule] Mark two tests as xfail (#12733) add ed630122c2 [Test] Add tvm.testing.requires_libtorch (#12737) add b2bd434ef9 [TIR] Handle axis_separators during FlattenBuffer (#12652) add 299ca267e7 [TIR] Update region min/extent in ReplaceBufferMutator (#12725) add 64031d56d6 Move static array initialization into a function go avoid link errors (#12678) add 89ce171b86 [TIR, Schedule] Check consumer in-bound and covered in reverse_compute_inline (#12717) add 1c5ffc67ad [ci][docker] Use CMake 3.20.0 for cortexm (#12744) add cb08a1251f [TF] Add DenseBincount support (#12728) add 90fb79b74c [CI] Update Docker images to bring TF 2.9 and integration tests (#12738) add 75969647fd Aligned CMSIS-NN SHA in TVM to CMSIS top of tree (#12723) add 1d32c400f1 [microtvm][Zephyr] Add project overlay to overwrite device tree configs (#12741) new 57e7105afc Always install into a python venv in ci containers. new e888708c86 Respect Dockerfile ENV PATH modifications in docker/bash.sh lookups. 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 (57753279ed) \ N -- N -- N refs/heads/ci-docker-staging (e888708c86) 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: Jenkinsfile| 20 +- .../app-overlay/nucleo_l4r5zi.overlay | 7 +- .../zephyr/template_project/microtvm_api_server.py | 15 +- ci/jenkins/Jenkinsfile.j2 | 20 +- cmake/modules/Zephyr.cmake | 1 + docker/Dockerfile.ci_cortexm | 2 +- docker/install/ubuntu_install_cmake_source.sh | 12 +- docker/install/ubuntu_install_cmsis.sh | 4 +- include/tvm/runtime/container/map.h| 63 +-- python/tvm/relay/frontend/tensorflow_ops.py| 55 +++ python/tvm/relay/op/strategy/arm_cpu.py| 22 + python/tvm/relay/qnn/op/legalizations.py | 22 +- python/tvm/testing/utils.py| 3 + python/tvm/topi/arm_cpu/depthwise_conv2d.py| 19 + .../topi/arm_cpu/mprofile/dsp/depthwise_conv2d.py | 245 ++ .../dsp/micro_kernel/quad_channel_convolve.py | 180 src/relay/backend/contrib/cmsisnn/buffer_size.cc | 20 +- src/relay/backend/contrib/cmsisnn/buffer_size.h| 7 +- src/relay/backend/contrib/cmsisnn/relay_to_tir.cc | 4 +- src/runtime/container.cc | 4 - src/runtime/contrib/clml/clml_runtime.cc | 161 +++ src/tir/schedule/primitive/compute_inline.cc | 131 +- src/tir/schedule/transform.cc | 27 +- src/tir/transforms/flatten_buffer.cc | 123 - src/tir/transforms/loop_partition.cc | 28 +- src/tir/transforms/lower_opaque_block.cc | 1 + .../backend/contrib/cmsisnn/buffer_size_test.cc| 8 +- tests/lint/check_file_type.py | 1 + tests/python/contrib/test_clml/infrastructure.py | 6 +- tests/python/contrib/test_clml/test_network.py | 4 +- tests/python/contrib/test_clml/test_ops.py | 2 +- tests/python/contrib/test_libtorch_ops.py | 2 + tests/python/driver/tvmc/test_frontends.py | 8 + tests/python/frontend/tensorflow/test_for
[tvm] 01/02: Always install into a python venv in ci containers.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch ci-docker-staging in repository https://gitbox.apache.org/repos/asf/tvm.git commit 57e7105afcf50a4e6cf378ae1e107ba83b65305b Author: Andrew Reusch AuthorDate: Thu Aug 25 15:52:58 2022 -0700 Always install into a python venv in ci containers. --- docker/Dockerfile.ci_arm | 11 +- docker/Dockerfile.ci_cortexm | 15 +- docker/Dockerfile.ci_cpu | 11 +- docker/Dockerfile.ci_gpu | 12 +- docker/Dockerfile.ci_hexagon | 11 +- docker/Dockerfile.ci_i386 | 11 +- docker/Dockerfile.ci_lint | 11 +- docker/Dockerfile.ci_minimal | 11 +- docker/Dockerfile.ci_riscv | 15 +- docker/Dockerfile.ci_wasm | 11 +- docker/install/ubuntu1804_install_python.sh| 45 docker/install/ubuntu1804_install_python_venv.sh | 30 --- docker/install/ubuntu_install_python.sh| 79 +-- docker/python/bootstrap-requirements.txt | 82 +++ docker/python/bootstrap/.gitignore | 1 + docker/python/bootstrap/generate.sh| 100 .../python/bootstrap/lockfiles/constraints-3.7.txt | 254 + .../python/bootstrap/lockfiles/constraints-3.8.txt | 251 .../bootstrap/lockfiles/requirements-3.7.txt | 3 + .../bootstrap/lockfiles/requirements-3.8.txt | 3 + docker/python/ci-constraints.txt | 39 docker/with_the_same_user | 6 +- 22 files changed, 862 insertions(+), 150 deletions(-) diff --git a/docker/Dockerfile.ci_arm b/docker/Dockerfile.ci_arm index 90fbef4d44..932687f1e5 100644 --- a/docker/Dockerfile.ci_arm +++ b/docker/Dockerfile.ci_arm @@ -47,11 +47,12 @@ ENV PATH /opt/sccache:$PATH COPY install/ubuntu_install_llvm.sh /install/ubuntu_install_llvm.sh RUN bash /install/ubuntu_install_llvm.sh -COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh -RUN bash /install/ubuntu1804_install_python.sh - -# Globally disable pip cache -RUN pip config set global.no-cache-dir false +ENV TVM_VENV /venv/apache-tvm-py3.7 +COPY python/bootstrap/lockfiles /install/python/bootstrap/lockfiles +COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh +RUN bash /install/ubuntu_install_python.sh +ENV PATH ${TVM_VENV}/bin:$PATH +ENV PYTHONNOUSERSITE 1 # Disable .local directory from affecting CI. COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh RUN bash /install/ubuntu_install_cmake_source.sh diff --git a/docker/Dockerfile.ci_cortexm b/docker/Dockerfile.ci_cortexm index d646704bb0..6ca2f2f40b 100644 --- a/docker/Dockerfile.ci_cortexm +++ b/docker/Dockerfile.ci_cortexm @@ -29,18 +29,15 @@ RUN bash /install/ubuntu_install_core.sh COPY install/ubuntu_install_googletest.sh /install/ubuntu_install_googletest.sh RUN bash /install/ubuntu_install_googletest.sh -COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh -RUN bash /install/ubuntu1804_install_python.sh - COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh RUN bash /install/ubuntu_install_cmake_source.sh 3.20.0 -COPY install/ubuntu1804_install_python_venv.sh /install/ubuntu1804_install_python_venv.sh -RUN bash /install/ubuntu1804_install_python_venv.sh -ENV PATH=/opt/tvm-venv/bin:/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH - -# Globally disable pip cache -RUN pip config set global.no-cache-dir false +ENV TVM_VENV /venv/apache-tvm-py3.7 +COPY python/bootstrap/lockfiles /install/python/bootstrap/lockfiles +COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh +RUN bash /install/ubuntu_install_python.sh +ENV PATH ${TVM_VENV}/bin:$PATH +ENV PYTHONNOUSERSITE 1 # Disable .local directory from affecting CI. COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh RUN bash /install/ubuntu_install_python_package.sh diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu index d9f353d41b..00fd9a4fca 100644 --- a/docker/Dockerfile.ci_cpu +++ b/docker/Dockerfile.ci_cpu @@ -28,11 +28,12 @@ RUN bash /install/ubuntu_install_core.sh COPY install/ubuntu_install_googletest.sh /install/ubuntu_install_googletest.sh RUN bash /install/ubuntu_install_googletest.sh -COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh -RUN bash /install/ubuntu1804_install_python.sh - -# Globally disable pip cache -RUN pip config set global.no-cache-dir false +ENV TVM_VENV /venv/apache-tvm-py3.7 +COPY python/bootstrap/lockfiles /install/python/bootstrap/lockfiles +COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh +RUN bash /install
[tvm] branch main updated (6be04d72c2 -> 62bdc91b1a)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 6be04d72c2 [OpenCLML] CLML Profiling fixes corresponding to OpenCL Timer recent … (#12711) add 62bdc91b1a Add Arm DSP implementation of Depthwise Conv2D (#12448) No new revisions were added by this update. Summary of changes: python/tvm/relay/op/strategy/arm_cpu.py| 22 ++ python/tvm/topi/arm_cpu/depthwise_conv2d.py| 19 ++ .../topi/arm_cpu/mprofile/dsp/depthwise_conv2d.py | 245 + .../dsp/micro_kernel/quad_channel_convolve.py | 180 +++ .../strategy/arm_cpu/test_depthwise_conv2d.py | 25 +++ 5 files changed, 491 insertions(+) create mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/depthwise_conv2d.py create mode 100644 python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/quad_channel_convolve.py
[tvm] branch ci-docker-staging updated (563311ec40 -> 57753279ed)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch ci-docker-staging in repository https://gitbox.apache.org/repos/asf/tvm.git discard 563311ec40 [CI] Update Docker image tags to 20220822-105603-52f5c155f discard 6b9b950fac Update TensorFlow to release 2.9 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) add 141b17b23a [Hexagon] Add optimized schedule for nn.pad (#12714) add da48e13b66 [TVMC] Run module once by default (#12713) add 85bf80c822 [Docs] Add Commit Message Guideline (#12689) add 6cd31e7bf1 [TIR] Fix pragma_loop_partition_hint attrs should check it's value (#12699) add 291dd2f063 support false-positive fast math (#12702) add b55ffcd18b [ETHOSN] Add support for transpose convolution (#12674) add ff9a5309ec [microTVM][Zephyr] Enable -O2 optimization on build by default (#12718) add 269d536be0 [HEXAGON] [TOPI] Dequantize (#12677) add 2622ac9e63 [Build] Update C++ standard to C++17 for AOT, iOS, VTA (#12712) add 010c662938 [TVMScript] IRBuilder methods for `IRModule` (#12694) add bee5627908 [TFLite][CI] Update TensorFlow dependency to 2.9.1 (#12131) add 7f788dca4e [ci] Add onnx model to S3 (#12716) add 546a7da2fe [ci] Re-balance shards (#12473) add a36aab12e5 Always install into a python venv in ci containers. add 57753279ed Respect Dockerfile ENV PATH modifications in docker/bash.sh lookups. 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 (563311ec40) \ N -- N -- N refs/heads/ci-docker-staging (57753279ed) 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. No new revisions were added by this update. Summary of changes: .github/workflows/upload_ci_resource.yml |2 + CONTRIBUTORS.md|2 + Jenkinsfile| 1478 apps/android_camera/models/requirements.txt|4 +- apps/ios_rpc/tvmrpc.xcodep
[tvm] branch main updated (7f788dca4e -> 546a7da2fe)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 7f788dca4e [ci] Add onnx model to S3 (#12716) add 546a7da2fe [ci] Re-balance shards (#12473) No new revisions were added by this update. Summary of changes: Jenkinsfile | 1397 +++ ci/jenkins/Test.groovy.j2 | 12 +- ci/jenkins/generate.py | 23 +- python/tvm/contrib/hexagon/pytest_plugin.py |3 +- tests/scripts/setup-pytest-env.sh | 10 +- 5 files changed, 567 insertions(+), 878 deletions(-)
[tvm] branch main updated (bee5627908 -> 7f788dca4e)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from bee5627908 [TFLite][CI] Update TensorFlow dependency to 2.9.1 (#12131) add 7f788dca4e [ci] Add onnx model to S3 (#12716) No new revisions were added by this update. Summary of changes: .github/workflows/upload_ci_resource.yml | 2 ++ tests/scripts/request_hook/request_hook.py | 1 + 2 files changed, 3 insertions(+)
[tvm] branch main updated (010c662938 -> bee5627908)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 010c662938 [TVMScript] IRBuilder methods for `IRModule` (#12694) add bee5627908 [TFLite][CI] Update TensorFlow dependency to 2.9.1 (#12131) No new revisions were added by this update. Summary of changes: cmake/modules/contrib/TFLite.cmake | 2 ++ docker/Dockerfile.ci_cortexm | 3 +++ docker/Dockerfile.ci_cpu | 3 +++ docker/Dockerfile.ci_gpu | 3 +++ docker/Dockerfile.ci_riscv | 3 +++ docker/install/ubuntu_install_cmake_source.sh | 4 ++-- docker/install/ubuntu_install_python_package.sh| 2 +- docker/install/ubuntu_install_tensorflow.sh| 5 ++--- .../install/ubuntu_install_tensorflow_aarch64.sh | 23 ++ docker/install/ubuntu_install_tflite.sh| 13 ++-- docker/install/ubuntu_install_vela.sh | 2 +- docker/install/ubuntu_install_zephyr.sh| 3 ++- 12 files changed, 35 insertions(+), 31 deletions(-)
[tvm] branch main updated (d54c0651ec -> a399e6ce97)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from d54c0651ec [Torch][AArch64] Skip test_load_model___wrong_language__to_pytorch (#12660) add a399e6ce97 [ci] Add linter for PR title and body (#12367) No new revisions were added by this update. Summary of changes: Jenkinsfile | 23 ++- ci/jenkins/Prepare.groovy.j2 | 21 +- ci/scripts/check_pr.py | 150 +++ ci/scripts/git_skip_ci.py| 2 +- 4 files changed, 192 insertions(+), 4 deletions(-) create mode 100644 ci/scripts/check_pr.py
[tvm-rfcs] branch main updated: [RFC] Add Commit Message Guideline (#88)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm-rfcs.git The following commit(s) were added to refs/heads/main by this push: new e8a2d8b [RFC] Add Commit Message Guideline (#88) e8a2d8b is described below commit e8a2d8bad2680e359a3a7bbd061fde205872004b Author: Gustavo Romero AuthorDate: Wed Aug 31 20:09:10 2022 -0300 [RFC] Add Commit Message Guideline (#88) * [RFC] Add Commit Message Guideline This RFC proposes adding a Commmit Message Guideline to Apache TVM documentation to help guide contributors on how to write good commit messages when submitting code / Pull Requests. Co-authored-by: Leandro Nunes * Remove out-of-scope paragraph As per the reviews, remove this paragraph since multiple commits / changes in a PR is out-of-scope, best fits in another guideline, and would require addtional discussions, needing a separate vote. * Be more explicit about committer and author responsibilities Be more explicit about committer and author responsibilities when the PR title and/or body need to get updated to be in sync with the code changes after a review cycle. * Clarify about capitalization in tags Clarify about the preferred capitalization in tags. Also clarify about multiple tags and acronyms when used as a tag. * Be more emphatic about no need of a period at the end of the title Be more emphatic about no need of a period at the end of the title but don't enforce it. * Make it clear that tag is enforced but capitalization is not Original proposal for this RFC had tag presence as an enforced rule. Later, text on recommendation about tag capitalization was added to the rule and it became a tad unclear if the enforcement applies to the tag presence only or also to the tag capitalization text. This commit moves the "enforced" mark before the tag capitalization text to make it clearer that it applies to the tag presence only. It also tweaks a bit the text to avoid the idea that tag presence is optional -- since it's enforced, just like it was in the original proposal. * Update rfcs/0088-commit-message-guideline.md Co-authored-by: Siyuan Feng Co-authored-by: Leandro Nunes Co-authored-by: Siyuan Feng --- rfcs/0088-commit-message-guideline.md | 186 ++ 1 file changed, 186 insertions(+) diff --git a/rfcs/0088-commit-message-guideline.md b/rfcs/0088-commit-message-guideline.md new file mode 100644 index 000..dd32fa6 --- /dev/null +++ b/rfcs/0088-commit-message-guideline.md @@ -0,0 +1,186 @@ +- Feature Name: Commit Message Guideline +- Start Date: 2022-08-12 +- RFC PR: [apache/tvm-rfcs#0088](https://github.com/apache/tvm-rfcs/pull/88) + +# Summary +[summary]: #summary + +This RFC proposes adding a Commmit Message Guideline to TVM documentation to +help guide contributors on how to write good commit messages when submitting +code / PRs (Pull Requests) to Apache TVM. + +# Motivation +[motivation]: #motivation + +Currently TVM commit logs are less than ideal because many commit messages lack +valuable information and don't follow any format standard. + +Valuable information is usually left behind in Github PR conversations or +discussion threads in the Discuss forum, making it hard to retrieve them when +inspecting the commit messages -- using `git log`, for instance. + +Because commit messages are an indirect but important aspect of code quality, +and also important for code maintenance, it is essential for a long term open +source project to ensure that they meet high standards. + +The importance of commit messages conveying enough context and information about +the code being changed will grow as the project grows and bad (poorly written) +commit messages can affect negatively the code quality of future changes that +would otherwise benefit from past good commit messages if they existed. + +Beyond code itself, poorly written commit messages can also affect the community +in other ways. For example, by not providing to new contributors a consistent +and complete history or context for the code changes, it can work as a barrier +for new contributions because much more time will be necessary trying to +understand what motivated a past critical but unclear change. + +Hence this Commit Message Guideline can help contributors to write good commit +messages and so improve the current situation regarding the TVM commit logs. + +# Guide-level explanation +[guide-level-explanation]: #guide-level-explanation + +Commit Message Guideline + +Apache TVM uses the Github (GH) platform for patch submission and code review +via Pull Requests (PRs). The final commit (title and body) that is merged into +the Apache TVM main tree is c
[tvm] branch main updated: [ci] Move non-task CI scripts into ci/ folder (#12609)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 5287d8f11e [ci] Move non-task CI scripts into ci/ folder (#12609) 5287d8f11e is described below commit 5287d8f11e28cf4953ca3b5638880397e7ceb48e Author: driazati <9407960+driaz...@users.noreply.github.com> AuthorDate: Tue Aug 30 11:51:12 2022 -0700 [ci] Move non-task CI scripts into ci/ folder (#12609) [CI] Update Hexagon image to install boost (#12613) The new image has xgboost installed, which I need for https://github.com/apache/tvm/pull/12587 Validated in https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/ci-docker-staging/279/pipeline Co-authored-by: masahi --- .github/ISSUE_TEMPLATE/flaky-test.md | 2 +- .github/workflows/cc_bot.yml | 2 +- .github/workflows/docs_bot.yml | 2 +- .github/workflows/nightly_docker_update.yml| 2 +- .github/workflows/ping_reviewers.yml | 2 +- .github/workflows/tag_teams.yml| 2 +- .github/workflows/tests_bot.yml| 2 +- .github/workflows/tvmbot.yml | 2 +- .../workflows/update_last_successful_branch.yml| 2 +- Jenkinsfile| 14 +++--- ci/README.md | 1 + ci/jenkins/Prepare.groovy.j2 | 12 ++-- {tests => ci}/scripts/cmd_utils.py | 0 {tests => ci}/scripts/determine_docker_images.py | 0 {tests => ci}/scripts/git_change_docker.sh | 0 {tests => ci}/scripts/git_change_docs.sh | 0 {tests => ci}/scripts/git_skip_ci.py | 0 {tests => ci}/scripts/git_skip_ci_globs.py | 0 {tests => ci}/scripts/git_utils.py | 0 {tests => ci}/scripts/github_cc_reviewers.py | 0 {tests => ci}/scripts/github_docs_comment.py | 0 .../scripts/github_skipped_tests_comment.py| 0 {tests => ci}/scripts/github_tag_teams.py | 0 {tests => ci}/scripts/github_tvmbot.py | 0 {tests => ci}/scripts/http_utils.py| 0 {tests => ci}/scripts/open_docker_update_pr.py | 0 {tests => ci}/scripts/ping_reviewers.py| 0 {tests => ci}/scripts/pytest_ids.py| 0 {tests => ci}/scripts/pytest_wrapper.py| 0 {tests => ci}/scripts/should_rebuild_docker.py | 0 {tests => ci}/scripts/should_run_slow_tests.py | 0 {tests => ci}/scripts/update_branch.py | 0 docker/bash.sh | 2 +- tests/python/ci/test_ci.py | 22 +++--- tests/python/ci/test_tvmbot.py | 2 +- tests/scripts/setup-pytest-env.sh | 2 +- tests/scripts/task_build.py| 5 + tests/scripts/task_python_frontend.sh | 2 +- 38 files changed, 43 insertions(+), 37 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/flaky-test.md b/.github/ISSUE_TEMPLATE/flaky-test.md index 1d61bbb632..1e8d267f8e 100644 --- a/.github/ISSUE_TEMPLATE/flaky-test.md +++ b/.github/ISSUE_TEMPLATE/flaky-test.md @@ -7,7 +7,7 @@ labels: "test: flaky" Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first :smile_cat: -These tests were found to be flaky (intermittently failing on `main` or failed in a PR with unrelated changes). As per [the docs](https://github.com/apache/tvm/blob/main/docs/contribute/ci.rst#handling-flaky-failures, these failures will be disabled in a PR that references this issue until the test owners can fix the source of the flakiness. +These tests were found to be flaky (intermittently failing on `main` or failed in a PR with unrelated changes). As per [the docs](https://github.com/apache/tvm/blob/main/docs/contribute/ci.rst#handling-flaky-failures), these failures will be disabled in a PR that references this issue until the test owners can fix the source of the flakiness. ### Test(s) diff --git a/.github/workflows/cc_bot.yml b/.github/workflows/cc_bot.yml index ac0baa4902..95aa964262 100644 --- a/.github/workflows/cc_bot.yml +++ b/.github/workflows/cc_bot.yml @@ -44,4 +44,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -eux - python tests/scripts/github_cc_reviewers.py || echo step failed + python ci/scripts/github_cc_reviewers.py || echo step failed diff --git a/.github
[tvm] branch main updated (c5c99a4b52 -> 0de22196db)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from c5c99a4b52 [QNN] Align output_scale/zero_point of sigmoid to Torch (#12624) add 0de22196db [microTVM][Zephyr] Disable test_armv7m_intrinsic since it's broken (#12620) No new revisions were added by this update. Summary of changes: tests/micro/zephyr/test_zephyr_armv7m.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
[tvm] branch main updated (bb00a15c26 -> 01fcdfcf5f)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from bb00a15c26 [CUDA][CodeGen] Fix cuda codegen's fp16 inf literal (#12581) add 01fcdfcf5f [ci] Default to n=2 for test parallelism (#12414) No new revisions were added by this update. Summary of changes: Jenkinsfile | 60 +-- ci/jenkins/Jenkinsfile.j2 | 2 +- ci/jenkins/macros.j2 | 3 ++ python/tvm/testing/plugin.py | 42 +++ tests/scripts/setup-pytest-env.sh | 8 +- 5 files changed, 111 insertions(+), 4 deletions(-)
[tvm] branch main updated (4d104e5ec6 -> 8c23469e20)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 4d104e5ec6 [ETHOSN] Add support for special indices of Reshape (#12556) add 8c23469e20 [MicroTVM] add heap-size to project options (#12390) No new revisions were added by this update. Summary of changes: apps/microtvm/zephyr/template_project/boards.json | 3 +- .../zephyr/template_project/microtvm_api_server.py | 45 ++ .../zephyr/template_project/src/host_driven/main.c | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-)
[tvm] branch main updated (dd7ae2d3e5 -> da5836f230)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from dd7ae2d3e5 [Relay] Add Rsqrt to SimplifyExpr (#12363) add da5836f230 [AutoTVM] Add support for text buffers to ApplyHistoryBest (#12521) No new revisions were added by this update. Summary of changes: python/tvm/autotvm/record.py | 31 -- python/tvm/autotvm/task/dispatcher.py| 87 +++--- tests/micro/common/test_autotune.py | 1 + tests/python/unittest/test_autotvm_record.py | 92 +++- 4 files changed, 155 insertions(+), 56 deletions(-)
[tvm-rfcs] branch main updated: Add Target Features RFC (#78)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm-rfcs.git The following commit(s) were added to refs/heads/main by this push: new 1ab898d Add Target Features RFC (#78) 1ab898d is described below commit 1ab898dfd46ee9ab4af228532b4c791dd06d135d Author: Christopher Sidebottom AuthorDate: Mon Aug 22 18:38:16 2022 +0100 Add Target Features RFC (#78) --- rfcs/0078-target-features.md | 178 +++ 1 file changed, 178 insertions(+) diff --git a/rfcs/0078-target-features.md b/rfcs/0078-target-features.md new file mode 100644 index 000..f0969f4 --- /dev/null +++ b/rfcs/0078-target-features.md @@ -0,0 +1,178 @@ +- Feature Name: target-features +- Start Date: 2022-04-04 +- RFC PR: [apache/tvm-rfcs#78](https://github.com/apache/tvm-rfcs/pull/78) +- GitHub Issue: [apache/tvm#](https://github.com/apache/tvm/issues/) + +# Summary +[summary]: #summary +Provide a standard and easily testable way to inspect features of a given target and provide them to the various parts of TVM which utilise that information. + +# Motivation +[motivation]: #motivation +TVM has multiple ways to define a `Target`s architectural features for use in deciding on schedules or other calculations, here's a few different ways we do this: + +* CPU to Feature Mapping: https://github.com/apache/tvm/blob/d2db9cb0d839e32778f461b77e59f6418282a511/python/tvm/target/arm_isa.py#L22-L39 +* Inspecting `Target` in utility functions: https://github.com/apache/tvm/blob/d2db9cb0d839e32778f461b77e59f6418282a511/python/tvm/topi/arm_cpu/arm_utils.py#L24-L70 +* Inspecting `Target` in utility functions inside legalization code: https://github.com/apache/tvm/blob/02fbaf0ed9120a8f95155e63de42459f230584aa/python/tvm/relay/qnn/op/legalizations.py#L350-L359 +* Inspecting `Target` inside the definition a strategy: https://github.com/apache/tvm/blob/b542724873140bb051492530d97a78b9b7b7983d/python/tvm/relay/op/strategy/arm_cpu.py#L232 +* Processing bespoke Compiler arguments: https://github.com/apache/tvm/blob/d2db9cb0d839e32778f461b77e59f6418282a511/src/relay/backend/contrib/cmsisnn/compiler_attrs.cc#L47-L70 +* Registered as a `PackedFunc` (https://github.com/apache/tvm/blob/24e5498021cecca2fe7d44149ce90efe28b6d930/python/tvm/topi/x86/utils.py#L21-L34) and then used as part of `Op` processing: https://github.com/apache/tvm/blob/24e5498021cecca2fe7d44149ce90efe28b6d930/src/relay/qnn/op/requantize_config.h#L58-L73 + +This RFC aims to standardise the way in which we convert `Target` attributes into architectural features by processing them ahead of time. + +# Guide-level explanation +[guide-level-explanation]: #guide-level-explanation + +An additional property `features` will be added to the `Target` which is created at the time of instantiation, this will be populated by inferred features of the `Target` such as architectural extensions or bus sizes. The main distinction is that `features` are inferred from the `Target` `attrs` rather than being passed in. + +An example of the new `features` attribute will be illustrated using examples targeting TVM for Arm(R) Cortex(R)-M4. + +The `Target` specifies the specific CPU in the `attrs` and uses that to create the `features` object representing the architectural extensions of the `Target`, which can then be accessed using the `GetFeature` method similar to `GetAttr`: + +```c++ +Target my_target("c -mcpu=cortex-m4"); +my_target->GetFeature("is_aarch64", false); // false +my_target->GetFeature("has_dsp", false); // true +``` + +```python +my_target = Target("c -mcpu=cortex-m4") +my_target.features.is_aarch64 # false +my_target.features.has_dsp # true +``` + +This means that instead of the current: + +```python +isa = arm_isa.IsaAnalyzer(target) +if isa.has_dsp_support: +do_dsp_stuff() +``` + +The `Target` can be directly inspected: + +```python +if target.features.dsp: +do_dsp_stuff() +``` + +# Reference-level explanation +[reference-level-explanation]: #reference-level-explanation + +The `Target` class, in C++, will have an an additional property named `features`: + +```c++ +class Target { +... +DictAttrs features; + +... +} +``` + +Which will have similar helper methods to those seen in `IRModule` for `DictAttrs` but with reference to `Features` rather than `Attr`: + +```c++ +template +Optional GetFeatures( +const std::string& attr_key, +Optional default_value = Optional(nullptr)) const { +return attrs.GetAttr(attr_key, default_value); +} + +template +Optional GetFeatures(const std::string& attr_key, TObjectRef default_value) const { +return GetFeatures(attr_key, Optional(default_value)); +} +``` + +As well as a Python class to represent this and allow simple access to the `features` using the `target.features.` syntax: +```p
[tvm] branch main updated (c1bd0227be -> 4d7e7a8b57)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from c1bd0227be [FIX] Fix bug in resize2d unittest func name (#12498) add 4d7e7a8b57 [ci] xfail failing ethosu codegen tests (#12508) No new revisions were added by this update. Summary of changes: python/tvm/testing/utils.py | 24 tests/python/contrib/test_ethosu/test_codegen.py | 20 ++-- 2 files changed, 42 insertions(+), 2 deletions(-)
[tvm] branch main updated (bdcfa01eae -> c83ee08c10)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from bdcfa01eae [Fix] Fix some typos (#11503) add c83ee08c10 fix pytest (#12483) No new revisions were added by this update. Summary of changes: python/tvm/micro/testing/pytest_plugin.py | 1 + 1 file changed, 1 insertion(+)
[tvm] branch main updated (c0d440d7a4 -> 8b3401ce6b)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from c0d440d7a4 Fix test_autotune to support schedules with no tuning space (#12484) add 8b3401ce6b [microTVM] Add config space to dense_dsp schedule (#12444) No new revisions were added by this update. Summary of changes: python/tvm/topi/arm_cpu/dense.py | 8 ++-- python/tvm/topi/arm_cpu/mprofile/dsp/dense.py | 56 +- .../relay/strategy/arm_cpu/test_dense_dsp.py | 40 3 files changed, 68 insertions(+), 36 deletions(-)
[tvm] branch main updated (efd7c45462 -> d1e6f3949c)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from efd7c45462 [TIR] [bfloat16] add bfloat16 promotion for CallNode (#12370) add d1e6f3949c [CMSIS-NN] Re-use CPU Target Parser (#12320) No new revisions were added by this update. Summary of changes: src/relay/backend/contrib/cmsisnn/buffer_size.cc | 26 +++-- src/relay/backend/contrib/cmsisnn/buffer_size.h| 13 +-- .../backend/contrib/cmsisnn/compiler_attrs.cc | 42 ++-- src/relay/backend/contrib/cmsisnn/compiler_attrs.h | 14 +-- src/relay/backend/contrib/cmsisnn/relay_to_tir.cc | 14 +-- src/relay/backend/contrib/cmsisnn/target.cc| 8 +- .../backend/contrib/cmsisnn/buffer_size_test.cc| 31 +++--- .../backend/contrib/cmsisnn/compiler_attrs_test.cc | 114 +++-- .../python/unittest/test_target_parser_mprofile.py | 11 ++ 9 files changed, 95 insertions(+), 178 deletions(-)
[tvm] branch add-riscv-image updated (c5a8ebb9fa -> c644f94c0b)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git discard c5a8ebb9fa Add RISC-V build/test pipeline to Jenkins. add c644f94c0b Add RISC-V build/test pipeline to Jenkins. 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 (c5a8ebb9fa) \ N -- N -- N refs/heads/add-riscv-image (c644f94c0b) 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. No new revisions were added by this update. Summary of changes: Jenkinsfile | 3 ++- ci/jenkins/Test.groovy.j2| 3 +++ tests/scripts/ci.py | 14 ++ tests/scripts/task_riscv_microtvm.sh | 4 +++- 4 files changed, 22 insertions(+), 2 deletions(-)
[tvm] branch main updated (55f1d7e2c4 -> 71d772fcf6)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 55f1d7e2c4 [TIR][UX] allow override when register TensorIntrin (#12439) add 71d772fcf6 Zephyr: Add support for FVP (#12125) No new revisions were added by this update. Summary of changes: .../template_project/CMakeLists.txt.template | 2 +- .../FVP_Corstone_SSE-300_Ethos-U55}| 31 ++- .../zephyr/template_project/microtvm_api_server.py | 306 +++-- .../src/host_driven/fvp/semihost.c | 87 ++ .../src/host_driven/fvp/semihost.h | 28 +- .../zephyr/template_project/src/host_driven/main.c | 42 ++- cmake/modules/Zephyr.cmake | 2 + tests/lint/check_file_type.py | 3 +- tests/micro/zephyr/conftest.py | 28 ++ tests/micro/zephyr/test_zephyr.py | 77 -- tests/micro/zephyr/test_zephyr_aot_exec.py | 14 +- .../zephyr/test_zephyr_aot_exec_standalone.py | 8 +- tests/scripts/task_python_microtvm.sh | 1 + 13 files changed, 536 insertions(+), 93 deletions(-) copy apps/microtvm/zephyr/template_project/{qemu-hack/qemu-system-i386 => fvp-hack/FVP_Corstone_SSE-300_Ethos-U55} (60%) create mode 100644 apps/microtvm/zephyr/template_project/src/host_driven/fvp/semihost.c copy src/target/parsers/cpu.h => apps/microtvm/zephyr/template_project/src/host_driven/fvp/semihost.h (65%)
[tvm] branch add-riscv-image updated (b54be4cc7d -> c5a8ebb9fa)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git discard b54be4cc7d Add RISC-V build/test pipeline to Jenkins. add c5a8ebb9fa Add RISC-V build/test pipeline to Jenkins. 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 (b54be4cc7d) \ N -- N -- N refs/heads/add-riscv-image (c5a8ebb9fa) 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. No new revisions were added by this update. Summary of changes: Jenkinsfile| 10 +- ci/jenkins/Build.groovy.j2 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-)
[tvm] 01/01: Add RISC-V build/test pipeline to Jenkins.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git commit b54be4cc7d2a6d11b8e18a85b4a62db65f55174e Author: Andrew Reusch AuthorDate: Mon Aug 15 10:13:09 2022 -0700 Add RISC-V build/test pipeline to Jenkins. --- Jenkinsfile | 256 +-- ci/jenkins/Build.groovy.j2 | 18 +++ ci/jenkins/Test.groovy.j2| 17 ++ ci/jenkins/generate.py | 10 +- tests/scripts/task_config_build_riscv.sh | 35 + tests/scripts/task_riscv_microtvm.sh | 25 +++ 6 files changed, 311 insertions(+), 50 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bab7257e8f..0d4bd48f42 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-12T14:39:18.041411 +// Generated at 2022-08-15T14:01:29.759271 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> @@ -67,13 +67,14 @@ ci_riscv = 'tlcpack/ci-riscv:20220810-060142-fae79bbc3' properties([ parameters([ string(name: 'ci_arm_param', defaultValue: ''), +string(name: 'ci_cortexm_param', defaultValue: ''), string(name: 'ci_cpu_param', defaultValue: ''), -string(name: 'ci_minimal_param', defaultValue: ''), string(name: 'ci_gpu_param', defaultValue: ''), string(name: 'ci_hexagon_param', defaultValue: ''), string(name: 'ci_i386_param', defaultValue: ''), string(name: 'ci_lint_param', defaultValue: ''), -string(name: 'ci_cortexm_param', defaultValue: ''), +string(name: 'ci_minimal_param', defaultValue: ''), +string(name: 'ci_riscv_param', defaultValue: ''), string(name: 'ci_wasm_param', defaultValue: ''), ]) ]) @@ -81,13 +82,14 @@ properties([ // Placeholders for newly built Docker image names (if rebuild_docker_images // is used) built_ci_arm = null; + built_ci_cortexm = null; built_ci_cpu = null; - built_ci_minimal = null; built_ci_gpu = null; built_ci_hexagon = null; built_ci_i386 = null; built_ci_lint = null; - built_ci_cortexm = null; + built_ci_minimal = null; + built_ci_riscv = null; built_ci_wasm = null; // Global variable assigned during Sanity Check that holds the sha1 which should be @@ -282,7 +284,7 @@ def prepare() { if (env.DETERMINE_DOCKER_IMAGES == 'yes') { sh( -script: "./tests/scripts/determine_docker_images.py ci_arm=${ci_arm} ci_cpu=${ci_cpu} ci_minimal=${ci_minimal} ci_gpu=${ci_gpu} ci_hexagon=${ci_hexagon} ci_i386=${ci_i386} ci_lint=${ci_lint} ci_cortexm=${ci_cortexm} ci_wasm=${ci_wasm} ", +script: "./tests/scripts/determine_docker_images.py ci_arm=${ci_arm} ci_cortexm=${ci_cortexm} ci_cpu=${ci_cpu} ci_gpu=${ci_gpu} ci_hexagon=${ci_hexagon} ci_i386=${ci_i386} ci_lint=${ci_lint} ci_minimal=${ci_minimal} ci_riscv=${ci_riscv} ci_wasm=${ci_wasm} ", label: 'Decide whether to use tlcpack or tlcpackstaging for Docker images', ) // Pull image names from the results of should_rebuild_docker.py @@ -291,16 +293,16 @@ def prepare() { label: "Find docker image name for ci_arm", returnStdout: true, ).trim() + ci_cortexm = sh( +script: "cat .docker-image-names/ci_cortexm", +label: "Find docker image name for ci_cortexm", +returnStdout: true, + ).trim() ci_cpu = sh( script: "cat .docker-image-names/ci_cpu", label: "Find docker image name for ci_cpu", returnStdout: true, ).trim() - ci_minimal = sh( -script: "cat .docker-image-names/ci_minimal", -label: "Find docker image name for ci_minimal", -returnStdout: true, - ).trim() ci_gpu = sh( script: "cat .docker-image-names/ci_gpu", label: "Find docker image name for ci_gpu", @@ -321,9 +323,14 @@ def prepare() { label: "Find docker image name for ci_lint", returnStdout: true, ).trim() - ci_cortexm = sh( -script: "cat .docker-image-names/ci_cortexm", -label: "Find docker image name for ci_cortexm", +
[tvm] branch add-riscv-image updated (dc3820f5d4 -> b54be4cc7d)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git omit dc3820f5d4 Add RISC-V build/test pipeline to Jenkins. new b54be4cc7d Add RISC-V build/test pipeline to Jenkins. 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 (dc3820f5d4) \ N -- N -- N refs/heads/add-riscv-image (b54be4cc7d) 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 1 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: Jenkinsfile| 9 + ci/jenkins/Build.groovy.j2 | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-)
[tvm] branch add-riscv-image updated (03d43e3e8b -> dc3820f5d4)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git omit 03d43e3e8b Add RISC-V build/test pipeline to Jenkins. add dc3820f5d4 Add RISC-V build/test pipeline to Jenkins. 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 (03d43e3e8b) \ N -- N -- N refs/heads/add-riscv-image (dc3820f5d4) 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. No new revisions were added by this update. Summary of changes: .../{task_config_build_cortexm.sh => task_config_build_riscv.sh}| 2 -- tests/scripts/task_riscv_microtvm.sh| 0 2 files changed, 2 deletions(-) copy tests/scripts/{task_config_build_cortexm.sh => task_config_build_riscv.sh} (96%) mode change 100644 => 100755 tests/scripts/task_riscv_microtvm.sh
[tvm] branch add-riscv-image updated (84d92dae6c -> 03d43e3e8b)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git discard 84d92dae6c Add ci_riscv image, update all to 20220810-060142-fae79bbc3. add 3eb673478b [LowerVTCMAlloc] Move LowerVtcmAlloc to after StorageRewrite (#12364) add 57a02f7e26 Update hexagon max_concurrency to be at most equal to the number of HVX units available. (#12394) add 478b672f2b [skip ci] Revert "[ci] Default to n=2 for test parallelism (#12376)" (#12413) add 1737308397 [WIP][Pylint] Making frontend tests pylint compliant (#12028) add 96cac7501d [MetaSchedule] Filter vector_load_lens based on buffer dtype (#12408) add 036aa722ae [TIR] Add pass ManifestSharedMemoryLocalStage (#12355) add d33a332283 [TVMScript] Printer VarTable (#12336) add 8dd621e564 [TIR] Expose ScriptComplete in header (#12419) add d8846ec975 [TOPI][OP]change float multiplication of resize op to integer division (#12315) add 33bf708755 [Fix] Fix precision issue in FFI converting `int/float` to `PrimExpr` (#12417) add 0ac5dd7f64 [Fix] Fix errors in error checking and reporting (#12423) add 24d9d398bb Add `operator()` to `support::With` (#12418) add 8ec7a0a460 [TIR] Fix assert for tensorcore int8 intrinsics (#12365) add 9d4df89833 [TIR] Allow converting `BufferRegion` to vectorized `BufferLoad` (#12420) add 57a3b26343 [Fix] Fix `dtype` in Cache-Read/Write (#12421) add e3d0305881 [TIR] Avoid `import *` in TIR tensor intrinsic registration (#12424) add e111984117 [TIR] Allow `tir.Buffer` converted to `BufferLoad/BufferRegion` with `__getitem__` (#12422) add d805ae3bd9 [TIR] Expose: `call_packed_lowered`, `call_cpacked_lowered` (#12425) add bb513866ad [TIR] Expose Stack-related TVM builtins in Python (#12429) add 849b2f9709 [CI][AArch64] Enable ONNX installation in ci_arm image (#12438) add 25c4a73b1d Add ci_riscv image, update all to 20220810-060142-fae79bbc3. (#12369) add 55f1d7e2c4 [TIR][UX] allow override when register TensorIntrin (#12439) add 03d43e3e8b Add RISC-V build/test pipeline to Jenkins. 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 (84d92dae6c) \ N -- N -- N refs/heads/add-riscv-image (03d43e3e8b) 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. No new revisions were added by this update. Summary of changes: Jenkinsfile| 312 --- ci/jenkins/Build.groovy.j2 | 18 + ci/jenkins/Jenkinsfile.j2 | 2 +- ci/jenkins/Test.groovy.j2 | 17 + ci/jenkins/generate.py | 10 +- ci/jenkins/macros.j2 | 3 - docker/Dockerfile.ci_arm | 4 + include/tvm/ir/expr.h | 4 +- include/tvm/script/printer/var_table.h | 144 +++ include/tvm/support/with.h | 2 + include/tvm/tir/function.h | 3 +- include/tvm/tir/stmt.h | 3 + include/tvm/tir/transform.h| 6 + python/tvm/meta_schedule/default_config.py | 6 +- python/tvm/meta_schedule/testing/schedule_rule.py | 10 +- python/tvm/script/printer/var_table.py | 118 +++ python/tvm/script/tir/scope_handler.py | 4 +- python/tvm/te/operation.py | 14 +- python/tvm/tir/__init__.py | 2 + python/tvm/tir/buffer.py | 41 +- python/tvm/tir/function.py | 10 +- python/tvm/tir/op.py | 123 +++ python/tvm/tir/tensor_intrin/__init__.py | 6 +- python/tvm/tir/tensor_intrin/arm_cpu.py| 1 + python/tvm/tir/tensor_intrin/cuda.py | 4 +- python/tvm/tir/transform/transform.py | 11 + python/tvm/topi/image/resize.py| 65 +- src/driver/driver_api.cc | 4 +- src/ir/expr.cc | 15 + .../schedule_rule/multi_level_tiling.cc| 29 +- src/runtime/threading_backend.cc | 20 +- src/script/printer/var_table.cc
[tvm] branch main updated: Add ci_riscv image, update all to 20220810-060142-fae79bbc3. (#12369)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 25c4a73b1d Add ci_riscv image, update all to 20220810-060142-fae79bbc3. (#12369) 25c4a73b1d is described below commit 25c4a73b1d370d01d147943bfbdf3ac14332586c Author: Andrew Reusch AuthorDate: Mon Aug 15 09:58:29 2022 -0700 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. (#12369) --- Jenkinsfile| 19 ++- ci/jenkins/Jenkinsfile.j2 | 17 + tests/python/ci/test_ci.py | 1 + 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ec6793c80a..bab7257e8f 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,19 +45,20 @@ // '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-11T13:17:04.679404 +// Generated at 2022-08-12T14:39:18.041411 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> -ci_lint = 'tlcpack/ci-lint:20220715-060127-37f9d3c49' -ci_gpu = 'tlcpack/ci-gpu:20220801-060139-d332eb374' -ci_cpu = 'tlcpack/ci-cpu:20220715-060127-37f9d3c49' +ci_lint = 'tlcpack/ci-lint:20220810-060142-fae79bbc3' +ci_gpu = 'tlcpack/ci-gpu:20220810-060142-fae79bbc3' +ci_cpu = 'tlcpack/ci-cpu:20220810-060142-fae79bbc3' ci_minimal = 'tlcpack/ci-minimal:20220725-133226-d3cefdaf1' -ci_wasm = 'tlcpack/ci-wasm:20220715-060127-37f9d3c49' -ci_i386 = 'tlcpack/ci-i386:20220715-060127-37f9d3c49' -ci_cortexm = 'tlcpack/ci-cortexm:v0.01' -ci_arm = 'tlcpack/ci-arm:20220715-060127-37f9d3c49' -ci_hexagon = 'tlcpack/ci-hexagon:20220715-060127-37f9d3c49' +ci_wasm = 'tlcpack/ci-wasm:20220810-060142-fae79bbc3' +ci_i386 = 'tlcpack/ci-i386:20220810-060142-fae79bbc3' +ci_cortexm = 'tlcpack/ci-cortexm:20220810-060142-fae79bbc3' +ci_arm = 'tlcpack/ci-arm:20220810-060142-fae79bbc3' +ci_hexagon = 'tlcpack/ci-hexagon:20220810-060142-fae79bbc3' +ci_riscv = 'tlcpack/ci-riscv:20220810-060142-fae79bbc3' // <--- End of regex-scanned config. // Parameters to allow overriding (in Jenkins UI), the images diff --git a/ci/jenkins/Jenkinsfile.j2 b/ci/jenkins/Jenkinsfile.j2 index 28ce2c8e1c..4960d4f0fa 100644 --- a/ci/jenkins/Jenkinsfile.j2 +++ b/ci/jenkins/Jenkinsfile.j2 @@ -51,15 +51,16 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils {% import 'ci/jenkins/macros.j2' as m with context -%} // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> -ci_lint = 'tlcpack/ci-lint:20220715-060127-37f9d3c49' -ci_gpu = 'tlcpack/ci-gpu:20220801-060139-d332eb374' -ci_cpu = 'tlcpack/ci-cpu:20220715-060127-37f9d3c49' +ci_lint = 'tlcpack/ci-lint:20220810-060142-fae79bbc3' +ci_gpu = 'tlcpack/ci-gpu:20220810-060142-fae79bbc3' +ci_cpu = 'tlcpack/ci-cpu:20220810-060142-fae79bbc3' ci_minimal = 'tlcpack/ci-minimal:20220725-133226-d3cefdaf1' -ci_wasm = 'tlcpack/ci-wasm:20220715-060127-37f9d3c49' -ci_i386 = 'tlcpack/ci-i386:20220715-060127-37f9d3c49' -ci_cortexm = 'tlcpack/ci-cortexm:v0.01' -ci_arm = 'tlcpack/ci-arm:20220715-060127-37f9d3c49' -ci_hexagon = 'tlcpack/ci-hexagon:20220715-060127-37f9d3c49' +ci_wasm = 'tlcpack/ci-wasm:20220810-060142-fae79bbc3' +ci_i386 = 'tlcpack/ci-i386:20220810-060142-fae79bbc3' +ci_cortexm = 'tlcpack/ci-cortexm:20220810-060142-fae79bbc3' +ci_arm = 'tlcpack/ci-arm:20220810-060142-fae79bbc3' +ci_hexagon = 'tlcpack/ci-hexagon:20220810-060142-fae79bbc3' +ci_riscv = 'tlcpack/ci-riscv:20220810-060142-fae79bbc3' // <--- End of regex-scanned config. // Parameters to allow overriding (in Jenkins UI), the images diff --git a/tests/python/ci/test_ci.py b/tests/python/ci/test_ci.py index 1c2ab1ffb7..1e2008fdd7 100644 --- a/tests/python/ci/test_ci.py +++ b/tests/python/ci/test_ci.py @@ -920,6 +920,7 @@ def test_open_docker_update_pr( "ci_cortexm", "ci_arm", "ci_hexagon", +"ci_riscv", ] docker_data = {}
[tvm] branch main updated: [CI][AArch64] Enable ONNX installation in ci_arm image (#12438)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git The following commit(s) were added to refs/heads/main by this push: new 849b2f9709 [CI][AArch64] Enable ONNX installation in ci_arm image (#12438) 849b2f9709 is described below commit 849b2f97099aa3af6210a4c681742789606f7408 Author: Leandro Nunes AuthorDate: Mon Aug 15 16:46:38 2022 +0100 [CI][AArch64] Enable ONNX installation in ci_arm image (#12438) This patch enables ONNX and dependencies installation on ci_arm as a way to enable ONNX and Torch testing. Change-Id: I818db28dea2a3d4ae66e775aa15f7ed2f059d673 --- docker/Dockerfile.ci_arm | 4 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile.ci_arm b/docker/Dockerfile.ci_arm index b7aaba47f4..90fbef4d44 100644 --- a/docker/Dockerfile.ci_arm +++ b/docker/Dockerfile.ci_arm @@ -75,6 +75,10 @@ RUN bash /install/ubuntu_install_boost.sh COPY install/ubuntu_install_caffe.sh /install/ubuntu_install_caffe.sh RUN bash /install/ubuntu_install_caffe.sh +# ONNX +COPY install/ubuntu_install_onnx.sh /install/ubuntu_install_onnx.sh +RUN bash /install/ubuntu_install_onnx.sh + # AutoTVM deps COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh RUN bash /install/ubuntu_install_redis.sh
[tvm] branch main updated (478b672f2b -> 1737308397)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/tvm.git from 478b672f2b [skip ci] Revert "[ci] Default to n=2 for test parallelism (#12376)" (#12413) add 1737308397 [WIP][Pylint] Making frontend tests pylint compliant (#12028) No new revisions were added by this update. Summary of changes: tests/lint/pylint.sh | 13 + tests/python/frontend/caffe/test_forward.py| 79 +- tests/python/frontend/caffe2/model_zoo/__init__.py | 2 +- .../python/frontend/caffe2/model_zoo/squeezenet.py | 10 +- tests/python/frontend/caffe2/test_forward.py | 26 +- tests/python/frontend/coreml/model_zoo/__init__.py | 8 +- tests/python/frontend/coreml/test_forward.py | 194 ++-- tests/python/frontend/darknet/test_forward.py | 37 +- tests/python/frontend/keras/test_forward.py| 743 tests/python/frontend/oneflow/test_forward.py | 67 +- .../python/frontend/oneflow/test_vision_models.py | 10 +- tests/python/frontend/onnx/test_forward.py | 985 - tests/python/frontend/pytorch/test_forward.py | 465 -- tests/python/frontend/tensorflow/test_forward.py | 328 --- tests/python/frontend/tflite/test_forward.py | 384 15 files changed, 1968 insertions(+), 1383 deletions(-)
[tvm] branch add-riscv-image updated (c663d3b325 -> 84d92dae6c)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git discard c663d3b325 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. add 84d92dae6c Add ci_riscv image, update all to 20220810-060142-fae79bbc3. 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 (c663d3b325) \ N -- N -- N refs/heads/add-riscv-image (84d92dae6c) 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. No new revisions were added by this update. Summary of changes: Jenkinsfile | 4 ++-- ci/jenkins/Jenkinsfile.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
[tvm] 01/01: Add ci_riscv image, update all to 20220810-060142-fae79bbc3.
This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git commit c663d3b32587eeb2f1a2d88c3343f061ac5de7d9 Author: Andrew Reusch AuthorDate: Wed Aug 10 17:38:46 2022 -0700 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. --- Jenkinsfile| 21 +++-- ci/jenkins/Jenkinsfile.j2 | 19 ++- tests/python/ci/test_ci.py | 1 + 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb8b31e288..596749c149 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,19 +45,20 @@ // '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-11T15:56:40.509448 +// Generated at 2022-08-12T12:16:33.991841 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> -ci_lint = 'tlcpack/ci-lint:20220715-060127-37f9d3c49' -ci_gpu = 'tlcpack/ci-gpu:20220801-060139-d332eb374' -ci_cpu = 'tlcpack/ci-cpu:20220715-060127-37f9d3c49' -ci_minimal = 'tlcpack/ci-minimal:20220725-133226-d3cefdaf1' -ci_wasm = 'tlcpack/ci-wasm:20220715-060127-37f9d3c49' -ci_i386 = 'tlcpack/ci-i386:20220715-060127-37f9d3c49' -ci_cortexm = 'tlcpack/ci-cortexm:v0.01' -ci_arm = 'tlcpack/ci-arm:20220715-060127-37f9d3c49' -ci_hexagon = 'tlcpack/ci-hexagon:20220715-060127-37f9d3c49' +ci_lint = 'tlcpack/ci-lint:20220810-060142-fae79bbc3' +ci_gpu = 'tlcpack/ci-gpu:20220810-060142-fae79bbc3' +ci_cpu = 'tlcpack/ci-cpu:20220810-060142-fae79bbc3' +ci_minimal = 'tlcpack/ci-minimal:20220810-060142-fae79bbc3' +ci_wasm = 'tlcpack/ci-wasm:20220810-060142-fae79bbc3' +ci_i386 = 'tlcpack/ci-i386:20220810-060142-fae79bbc3' +ci_cortexm = 'tlcpack/ci-cortexm:20220810-060142-fae79bbc3' +ci_arm = 'tlcpack/ci-arm:20220810-060142-fae79bbc3' +ci_hexagon = 'tlcpack/ci-hexagon:20220810-060142-fae79bbc3' +ci_riscv = 'tlcpack/ci-riscv:20220810-060142-fae79bbc3' // <--- End of regex-scanned config. // Parameters to allow overriding (in Jenkins UI), the images diff --git a/ci/jenkins/Jenkinsfile.j2 b/ci/jenkins/Jenkinsfile.j2 index a0c637ef90..85154355e0 100644 --- a/ci/jenkins/Jenkinsfile.j2 +++ b/ci/jenkins/Jenkinsfile.j2 @@ -51,15 +51,16 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils {% import 'ci/jenkins/macros.j2' as m with context -%} // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> -ci_lint = 'tlcpack/ci-lint:20220715-060127-37f9d3c49' -ci_gpu = 'tlcpack/ci-gpu:20220801-060139-d332eb374' -ci_cpu = 'tlcpack/ci-cpu:20220715-060127-37f9d3c49' -ci_minimal = 'tlcpack/ci-minimal:20220725-133226-d3cefdaf1' -ci_wasm = 'tlcpack/ci-wasm:20220715-060127-37f9d3c49' -ci_i386 = 'tlcpack/ci-i386:20220715-060127-37f9d3c49' -ci_cortexm = 'tlcpack/ci-cortexm:v0.01' -ci_arm = 'tlcpack/ci-arm:20220715-060127-37f9d3c49' -ci_hexagon = 'tlcpack/ci-hexagon:20220715-060127-37f9d3c49' +ci_lint = 'tlcpack/ci-lint:20220810-060142-fae79bbc3' +ci_gpu = 'tlcpack/ci-gpu:20220810-060142-fae79bbc3' +ci_cpu = 'tlcpack/ci-cpu:20220810-060142-fae79bbc3' +ci_minimal = 'tlcpack/ci-minimal:20220810-060142-fae79bbc3' +ci_wasm = 'tlcpack/ci-wasm:20220810-060142-fae79bbc3' +ci_i386 = 'tlcpack/ci-i386:20220810-060142-fae79bbc3' +ci_cortexm = 'tlcpack/ci-cortexm:20220810-060142-fae79bbc3' +ci_arm = 'tlcpack/ci-arm:20220810-060142-fae79bbc3' +ci_hexagon = 'tlcpack/ci-hexagon:20220810-060142-fae79bbc3' +ci_riscv = 'tlcpack/ci-riscv:20220810-060142-fae79bbc3' // <--- End of regex-scanned config. // Parameters to allow overriding (in Jenkins UI), the images diff --git a/tests/python/ci/test_ci.py b/tests/python/ci/test_ci.py index 1c2ab1ffb7..1e2008fdd7 100644 --- a/tests/python/ci/test_ci.py +++ b/tests/python/ci/test_ci.py @@ -920,6 +920,7 @@ def test_open_docker_update_pr( "ci_cortexm", "ci_arm", "ci_hexagon", +"ci_riscv", ] docker_data = {}
[tvm] branch add-riscv-image updated (8e84492703 -> c663d3b325)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git omit 8e84492703 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. add 99f5e921a5 Update C++ standard to C++17 (#12337) add de12486271 [ci][docker] Tag tlcpackstaging images to tlcpack (#11832) add e8de88e4f5 [BYOC] [DNNL] enable in-place post-op sum in dnnl json runtime (#12371) add 5deb95a947 [Adreno][OpenCL] Get rid of extra memory copy (#12286) add 3cb57d20a0 [TVMScript] Printer Frame (#12366) add e3e65ce581 Add Python function to get type index by class (#12393) add 702cb43f0b [Target] Fix C5 Target Tag to Include CascadeLake Archs (#12385) add 22dcf4490d [PyTorch] Fix pad_common for float pad_value (#12134) add a1c371f46c [PyTorch] Fix all_any_common with no default input (#12395) add f4120e87ef Add needs-triage label to CI Problem template (#12386) add d874a8ed52 [microNPU] Reorder copies and computes based on the cycle count (#11591) add 1de32b587b [Target] Add Target Parser for Arm(R) Cortex(R) M-Profile CPUs (#12319) add 369e8b2830 [ci] Default to n=2 for test parallelism (#12376) add c3c7c4ccc3 [Profiler] Fix graph_executor_debug hang (#12382) add db1ed779f8 [docs] Update minimum compiler requirements for building from source (#12405) add 779a7ada4f Add sort_by_time flag to debug_executor.run method (#12402) new c663d3b325 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. 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 (8e84492703) \ N -- N -- N refs/heads/add-riscv-image (c663d3b325) 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 1 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: .github/ISSUE_TEMPLATE/ci-problem.md | 1 + CMakeLists.txt | 15 +- Jenkinsfile| 342 + .../android_camera/app/src/main/jni/Application.mk | 2 +- .../android_deploy/app/src/main/jni/Application.mk | 2 +- apps/android_rpc/app/src/main/jni/Application.mk | 2 +- apps/bundle_deploy/Makefile| 2 +- apps/dso_plugin_module/Makefile| 2 +- apps/extension/Makefile| 2 +- apps/howto_deploy/Makefile | 2 +- apps/howto_deploy/tvm_runtime_pack.cc | 2 +- apps/rocm_rpc/Makefile | 2 +- apps/tf_tvmdsoop/CMakeLists.txt| 2 +- ci/jenkins/Deploy.groovy.j2| 63 +++- ci/jenkins/Jenkinsfile.j2 | 2 +- ci/jenkins/macros.j2 | 19 ++ conda/build-environment.yaml | 2 +- conda/recipe/build.sh | 6 +- conda/recipe/meta.yaml | 6 +- docs/install/from_source.rst | 6 +- golang/Makefile| 2 +- include/tvm/runtime/profiling.h| 6 +- include/tvm/script/printer/frame.h | 140 + include/tvm/target/target_kind.h | 5 + python/setup.py| 2 +- python/tvm/_ffi/__init__.py| 2 +- python/tvm/_ffi/_ctypes/object.py | 11 +- python/tvm/_ffi/_cython/object.pxi | 8 +- python/tvm/_ffi/registry.py| 21 +- python/tvm/contrib/debugger/debug_executor.py | 55 +++- python/tvm/contrib/graph_executor.py | 7 + .../relay/backend/contrib/ethosu/tir/compiler.py | 1 + .../tvm/relay/backend/contrib/ethosu/tir/passes.py | 35 ++- python/tvm/relay/frontend/pytorch.py | 21 +- python/tvm/relay/op/strategy/adreno.py | 18 ++ python/tvm/runtime/module.py | 6 + python/tvm/runtime/vm.py | 7 + python/tvm/script/printer/frame.py | 81 + python/tvm/target/target.py|
[tvm] branch add-riscv-image updated (8820449b02 -> 8e84492703)
This is an automated email from the ASF dual-hosted git repository. areusch pushed a change to branch add-riscv-image in repository https://gitbox.apache.org/repos/asf/tvm.git omit 8820449b02 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. add 8e84492703 Add ci_riscv image, update all to 20220810-060142-fae79bbc3. 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 (8820449b02) \ N -- N -- N refs/heads/add-riscv-image (8e84492703) 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. No new revisions were added by this update. Summary of changes: Jenkinsfile | 4 ++-- ci/jenkins/Jenkinsfile.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)