Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Merge with main branch from TVM official repo #3

Merged
merged 97 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
808c6a1
[ETHOSN] Remove the compiler library from the runtime link (#10334)
leo-blonk Feb 22, 2022
91b2e91
[Hexagon] Export `ir_lower_vtcm_pass` function in the init file (#10330)
masahi Feb 22, 2022
33082e0
[runtime] Add Metadata classes for AOTExecutor (#10282)
areusch Feb 22, 2022
5956125
[ONNX] only broadcast matmul if the shape has changed (#10321)
Feb 22, 2022
b5f1dab
[TIR] Tir constants integration into compilation pipeline (#8509)
d-smirnov Feb 22, 2022
27d9960
Simple workaround for PyTorch symbol crash problem in meta schedule t…
masahi Feb 22, 2022
97648d8
add reading of nRF5340 DK product ID to determine which COM port to u…
alanmacd Feb 23, 2022
6c6e873
[ARM_CPU] Conv2d int8 intrinsic for cortex-A72 (#10310)
Feb 23, 2022
dcebd4d
[CI][Hexagon] Add Hexagon Tests to pipeline (#10302)
mehrdadh Feb 23, 2022
270c1b3
[TIR] Misc minor updates (#10335)
MasterJH5574 Feb 23, 2022
0abb1bd
[CUBLAS] Fix cublas batch matmul strategy plevel (#10351)
masahi Feb 23, 2022
70cc2ab
[CI] Re-introduce redirect follow and update hash for Boost download …
Mousius Feb 23, 2022
faa2e6a
Add per channel quantization to QLinearConv and fix related bugs (#10…
sfvaroglu Feb 23, 2022
c338299
[CI] Fix Flaky Test `test_task_scheduler_gradient` (#10360)
zxybazh Feb 23, 2022
8947729
[TOPI] VNNI support for batch matmul (#10332)
masahi Feb 23, 2022
d3d8715
[TIR] TIR Schedule Misc Update (#10341)
jinhongyii Feb 23, 2022
d8f639a
[AOT] BugFix of workspace calculation (#10337)
manupak Feb 23, 2022
1cd42e8
[runtime] Improved log information with function signature (#10326)
cyx-6 Feb 23, 2022
cc82214
refactored GraphProto.from_onnx into smaller functions (#10267)
SebastianBoblest Feb 23, 2022
fbea569
[skip ci] Fix onnx frontend lint (#10363)
driazati Feb 23, 2022
c5baa59
[COMMUNITY] csullivan -> Committer (#10364)
ZihengJiang Feb 24, 2022
0c210fc
[BUGFIX][ARITH] Fix FloorMod Simplifier (#10336)
lazycal Feb 24, 2022
b329544
[Lint] Fix Pylint Issues (#10358)
Johnson9009 Feb 24, 2022
d295ea6
[TIR][Transform] relax LoopPartition restriction that the intersectio…
qsqqsqqsq-intellif Feb 24, 2022
d110aa1
[ETHOSN] Improved identification of driver library version (#10285)
leo-blonk Feb 24, 2022
25cc311
[ETHOSN] Stricter data type conversion checks (#10271)
leo-blonk Feb 24, 2022
f1ff61a
[microNPU][4] Add the cascader Proposal generator (#9959)
mbaret Feb 24, 2022
4102ebf
[Runtime][Pipeline Executor] multiple threads management and the data…
huajsj Feb 24, 2022
cb7f773
[Hexagon] RPC server/client for simulator (#10361)
Feb 24, 2022
7e2467a
[TIR, Relay] improve bfloat16 support (#10112)
yangulei Feb 24, 2022
35df464
[ci] Check more events before pinging reviewers (#10208)
driazati Feb 24, 2022
dcbdedd
Lower cache_read and cache_write to Hexagon DMA via tensorize (#10365)
adstraw Feb 25, 2022
d9fac4f
[microNPU] adding more tests with USMP (#10362)
manupak Feb 25, 2022
308d320
[RELAY] [VIRTUALDEVICE] Change syntax for device planning and store p…
electriclilies Feb 25, 2022
d62a364
[VirtualMachine] new method allowing to set one input tensor by its i…
vvchernov Feb 25, 2022
07ad977
[Hexagon] Replace strlen in constant initialization with sizeof (#10381)
Feb 25, 2022
221329f
check to avoid crash in opt_level=0 vm build (#10347)
wrongtest-intellif Feb 25, 2022
329d8a5
[DOCS] Add how to contribute TVM docs with images. (#10287)
Feb 25, 2022
b31a5cc
[MetaSchedule] Update Tuning Interfaces. (#10367)
zxybazh Feb 25, 2022
920654c
[Bugfix][TVMScript] Convert BufferSlice to BufferLoad when used as ra…
yzh119 Feb 25, 2022
8b30198
[FIX,PROFILING] Add extra precision to numbers when serializing to js…
Feb 25, 2022
37f7e57
Fix plint error. (#10394)
huajsj Feb 26, 2022
4a9db23
meta schedule misc update (#10389)
jinhongyii Feb 26, 2022
01f306f
Fix tvmc run error message when inputs aren't found. (#10017)
areusch Feb 26, 2022
784618e
[Runtime][PipelineExecutor] Polish the name and comments of variable.…
huajsj Feb 28, 2022
40f881b
Enable groups argument for conv2d_transpose on the cudnn backend (#10…
JCBrouwer Feb 28, 2022
b7caa12
Fixed a bug in the convert_fully_connected() function (#10371)
ophirfrish Feb 28, 2022
9ca2139
[TensorIR] Renormalize split pattern (#10401)
spectrometerHBH Feb 28, 2022
7127296
[MetaSchedule] Arithmetic analysis (#10403)
spectrometerHBH Feb 28, 2022
5b5d969
Add @slow decorator to run tests on `main` (#10057)
driazati Feb 28, 2022
b56770b
[microTVM] Zephyr: refactor _find_openocd_serial_port (#10346)
gromero Feb 28, 2022
b55997d
[microTVM][RVM] Skip USB device attach if device is already attached …
gromero Feb 28, 2022
b72e115
Realize the function op during forward rewrite (#10410)
wrongtest-intellif Feb 28, 2022
92a80e9
[ci][1/2] Shard `frontend: GPU` job into 2 jobs (#10413)
driazati Mar 1, 2022
111b2da
RelayViz Graphviz renderer (#10400)
chiwwang Mar 1, 2022
5e353d5
[Runtime][ThreadPool]Refactor affinity function and support CPU affin…
huajsj Mar 1, 2022
d101c50
[CI][1/2] Update the Python version of pyxir (#10406)
ekalda Mar 1, 2022
bd14a4d
Modify debug output (#10372)
argrento Mar 1, 2022
f49a853
Fix relative include path (#10402)
bnavigator Mar 1, 2022
1115d3d
[ci][2/2] Shard `frontend: GPU` job into 2 jobs (#10414)
driazati Mar 2, 2022
a8ec423
[TensorIR] Update VerifyGPU (#10405)
Hzfengsy Mar 2, 2022
6962ffa
[Bugfix][Arith] Fix TryFuseIter (#10427)
spectrometerHBH Mar 2, 2022
8e10713
Lily -> Committer (#10417)
icemelon Mar 2, 2022
122be3f
Add group_conv2d_transpose_nchw to CUDA backend (#10423)
JCBrouwer Mar 2, 2022
1df1580
[MISC] Add miss Type2Str and remove compile warnings (#10430)
comaniac Mar 2, 2022
8f6fa8f
[cleanup] Log compile errors for AOT tests (#10214)
driazati Mar 2, 2022
a772de8
[skip ci][CI][Fix] Fixing lint (#10445)
lhutton1 Mar 2, 2022
4913453
[CMSIS-NN] enable USMP with CMSIS-NN (#10224)
manupak Mar 2, 2022
29f64c6
Fix plint complain for some files. (#10433)
huajsj Mar 2, 2022
60ffcb5
Fix a Uninitialized Variable Warnings. (#10436)
huajsj Mar 2, 2022
fdbb88f
[Frontend][TFLite] Added broadcasting to prelu alpha. (#10435)
blackkker Mar 2, 2022
a5cb76a
[Relay] Fix shape func for strided slice (#10418)
AndrewZhaoLuo Mar 2, 2022
74a08b9
[skip-ci][COMMUNITY] leandron to PMC (#10448)
tqchen Mar 3, 2022
5e33ffc
[Hexagon] Allow execution on target or simulator from HexagonLauncher…
Mar 3, 2022
0c836b7
[microNPU][5] Convert Proposals to te.Schedules (#10062)
mbaret Mar 3, 2022
8f46d12
hot fix (#10464)
Hzfengsy Mar 3, 2022
70ad1d5
[ci] Add workflow to cc teams (#10322)
driazati Mar 3, 2022
db14b7e
just a typo fixed (#10442)
Mar 3, 2022
d721d32
[runtime] AOTExecutor implementation and c target code-generator (#10…
areusch Mar 3, 2022
3001d3d
[Runtime][ThreadPool] Handle the default value of affinity mode. (#10…
huajsj Mar 3, 2022
5691566
[Relay] Fix output dtype for conv2d wgrad when the original one is vo…
masahi Mar 3, 2022
45d3830
[skip ci][ci] Remove -i from lint scripts (#10469)
driazati Mar 3, 2022
4d586e2
Modify Jenkinsfile to prevent builds from triggering on branch indexi…
konturn Mar 3, 2022
2ea6e55
[skip ci][ci] Skip actions on forks (#10468)
driazati Mar 3, 2022
ede5601
[ci] Use available CPUs in builds (#10359)
driazati Mar 3, 2022
64bf0ef
[ci] Fix slow test script permissions (#10457)
driazati Mar 3, 2022
83f8e54
[runtime][Hexagon] AOTExecutor implementation for C Codegen (#10311)
mehrdadh Mar 4, 2022
b7922f3
[microTVM] Zephyr: add B-U585I-IOT02A board support (#10416)
gromero Mar 4, 2022
1271e6c
[MetaSchedule] Fix Cyclic Dependency in PyClass Family (#10368)
zxybazh Mar 4, 2022
33b9b5c
[Hotfix] Black format (#10482)
junrushao Mar 4, 2022
9679e68
[MetaSchedule] Keep Task / Trial / Iter / Postproc Number Consistent …
zxybazh Mar 4, 2022
646d8cd
[Torch] fix torch version check (#10481)
yogurfrul Mar 4, 2022
bf8e7e0
[microNPU] Remove unused code from testing infra (#10462)
ekalda Mar 4, 2022
865f34e
[MetaSchedule] Enable AutoTVM-style template-based search space (#10461)
junrushao Mar 4, 2022
6ad7638
[MetaSchedule] update misc parts (#10444)
Hzfengsy Mar 4, 2022
0f2392c
[Arith] Handle mod/floormod in modular set analysis (#10453)
vinx13 Mar 4, 2022
d1046f5
Correctly enable architecture extensions in CMSIS-NN Zephyr Demo (#10…
Mousius Mar 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/cc_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ concurrency:

jobs:
cc-reviewers:
if: github.repository == 'apache/tvm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ping_reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:

jobs:
ping:
if: github.repository == 'apache/tvm'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/tag_teams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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.

# GH actions.
# We use it to cover windows and mac builds
# Jenkins is still the primary CI

name: Teams

on:
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
pull_request_target:
types: [opened, reopened, edited, ready_for_review, labeled]
issues:
types: [opened, edited, reopened, labeled]

concurrency:
group: Teams-${{ github.event.pull_request.number }}-${{ github.event.issue.number }}
cancel-in-progress: true

jobs:
tag-teams:
if: github.repository == 'apache/tvm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tag people from relevant teams
env:
PR: ${{ toJson(github.event.pull_request) }}
ISSUE: ${{ toJson(github.event.issue) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eux
python tests/scripts/github_tag_teams.py || echo failed
1 change: 1 addition & 0 deletions .github/workflows/update_last_successful_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ concurrency:

jobs:
update-last-successful-branch:
if: github.repository == 'apache/tvm'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ tvm_option(USE_LLVM "Build with LLVM, can be set to specific llvm-config path" O
tvm_option(USE_STACKVM_RUNTIME "Include stackvm into the runtime" OFF)
tvm_option(USE_GRAPH_EXECUTOR "Build with tiny graph executor" ON)
tvm_option(USE_GRAPH_EXECUTOR_CUDA_GRAPH "Build with tiny graph executor with CUDA Graph for GPUs" OFF)
tvm_option(USE_AOT_EXECUTOR "Build with AOT executor" ON)
tvm_option(USE_PROFILER "Build profiler for the VM and graph executor" ON)
tvm_option(USE_OPENMP "Build with OpenMP thread pool implementation" OFF)
tvm_option(USE_RELAY_DEBUG "Building Relay in debug mode..." OFF)
Expand Down Expand Up @@ -395,6 +396,13 @@ if(USE_PROFILER)
list(APPEND RUNTIME_SRCS ${RUNTIME_VM_PROFILER_SRCS})
endif(USE_PROFILER)

if(USE_AOT_EXECUTOR)
message(STATUS "Build with AOT Executor support...")
file(GLOB RUNTIME_AOT_EXECUTOR_SRCS src/runtime/aot_executor/*.cc)
list(APPEND RUNTIME_SRCS ${RUNTIME_AOT_EXECUTOR_SRCS})

endif(USE_AOT_EXECUTOR)

# Enable ctest if gtest is available
if(USE_GTEST)
# Check env var for backward compatibility. A better way to specify package
Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ We do encourage everyone to work anything they are interested in.
- [Thierry Moreau](https://github.com/tmoreau89) (PMC): @tmoreau89 - vta
- [Kazutaka Morita](https://github.com/kazum): @kazum - frontends, opencl
- [Trevor Morris](https://github.com/trevor-m): @trevor-m - byoc, compiler
- [Leandro Nunes](https://github.com/leandron): @leandron - tvmc
- [Leandro Nunes](https://github.com/leandron) (PMC): @leandron - tvmc
- [Lily Orth-Smith](https://github.com/electriclilies): @electriclilies - relay
- [Krzysztof Parzyszek](https://github.com/kparzysz-quic): @kparzysz-quic - hexagon, llvm
- [Andrew Reusch](https://github.com/areusch): (PMC) @areusch - runtime, microTVM
- [Jared Roesch](https://github.com/jroesch) (PMC): @jroesch - relay
Expand All @@ -64,6 +65,7 @@ We do encourage everyone to work anything they are interested in.
- [Christopher Sidebottom](https://github.com/Mousius): @Mousius - arm, ethos-u, relay
- [Junru Shao](https://github.com/junrushao1994) (PMC): @junrushao1994 - relay, compiler
- [Haichen Shen](https://github.com/icemelon) (PMC): @icemelon - relay, topi
- [Chris Sullivan](https://github.com/csullivan): @csullivan - amd backend
- [Siva Rama Krishna Reddy](https://github.com/srkreddy1238): @srkreddy1238 - frontends, golang
- [Zhixun Tan](https://github.com/phisiart): @phisiart - opengl, web
- [Andrew Tulloch](https://github.com/ajtulloch): @ajtulloch - topi, compiler, runtime
Expand Down Expand Up @@ -106,7 +108,7 @@ We do encourage everyone to work anything they are interested in.
- [Manupa Karunaratne](https://github.com/manupa-arm): @manupa-arm
- [Marisa Kirisame](https://github.com/MarisaKirisame): @MarisaKirisame
- [Tristan Konolige](https://github.com/tkonolige): @tkonolige
- [Ruihang Lai](https://github.com/MasterJH5574): @MasterJH5574
- [Ruihang Lai](https://github.com/MasterJH5574): @MasterJH5574
- [Wuwei Lin](https://github.com/vinx13): @vinx13
- [Andrew Liu](https://github.com/hypercubestart): @hypercubestart
- [Henry Liu](https://github.com/optima2005): @optima2005
Expand Down
115 changes: 99 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@
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:v0.68"
ci_gpu = "tlcpack/ci-gpu:v0.81"
ci_cpu = "tlcpack/ci-cpu:v0.81"
ci_wasm = "tlcpack/ci-wasm:v0.71"
ci_i386 = "tlcpack/ci-i386:v0.74"
ci_qemu = "tlcpack/ci-qemu:v0.10"
ci_arm = "tlcpack/ci-arm:v0.07"
ci_lint = 'tlcpack/ci-lint:v0.68'
ci_gpu = 'tlcpack/ci-gpu:v0.81'
ci_cpu = 'tlcpack/ci-cpu:v0.81'
ci_wasm = 'tlcpack/ci-wasm:v0.71'
ci_i386 = 'tlcpack/ci-i386:v0.74'
ci_qemu = 'tlcpack/ci-qemu:v0.10'
ci_arm = 'tlcpack/ci-arm:v0.07'
ci_hexagon = 'tlcpack/ci-hexagon:v0.01'
// <--- End of regex-scanned config.

// Parameters to allow overriding (in Jenkins UI), the images
Expand Down Expand Up @@ -104,6 +105,21 @@ def init_git() {
}
}

def should_skip_slow_tests(pr_number) {
withCredentials([string(
credentialsId: 'tvm-bot-jenkins-reader',
variable: 'GITHUB_TOKEN',
)]) {
// Exit code of 1 means run slow tests, exit code of 0 means skip slow tests
result = sh (
returnStatus: true,
script: "./tests/scripts/should_run_slow_tests.py --pr '${pr_number}'",
label: 'Check if CI should run slow tests',
)
}
return result == 0
}

def cancel_previous_build() {
// cancel previous build if it is not on main.
if (env.BRANCH_NAME != 'main') {
Expand Down Expand Up @@ -131,6 +147,14 @@ def should_skip_ci(pr_number) {
return git_skip_ci_code == 0
}

// skips builds from branch indexing; sourced from https://www.jvt.me/posts/2020/02/23/jenkins-multibranch-skip-branch-index/
// execute this before anything else, including requesting any time on an agent
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED' // optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful
return
}

cancel_previous_build()

stage('Prepare') {
Expand Down Expand Up @@ -168,6 +192,7 @@ stage('Sanity Check') {
label: 'Check for docs only changes',
)
skip_ci = should_skip_ci(env.CHANGE_ID)
skip_slow_tests = should_skip_slow_tests(env.CHANGE_ID)
sh (
script: "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh",
label: 'Run lint',
Expand All @@ -177,6 +202,7 @@ stage('Sanity Check') {
}
}


// Run make. First try to do an incremental make from a previous workspace in hope to
// accelerate the compilation. If something is wrong, clean the workspace and then
// build from scratch.
Expand Down Expand Up @@ -237,13 +263,13 @@ def python_unittest(image) {
def fsim_test(image) {
sh (
script: "${docker_run} ${image} ./tests/scripts/task_python_vta_fsim.sh",
label: 'Run VTA tests in FSIM ',
label: 'Run VTA tests in FSIM',
)
}

def cmake_build(image, path, make_flag) {
sh (
script: "${docker_run} ${image} ./tests/scripts/task_build.sh ${path} ${make_flag}",
script: "${docker_run} ${image} ./tests/scripts/task_build.py --num-executors ${CI_NUM_EXECUTORS} --sccache-bucket tvm-sccache-prod",
label: 'Run cmake build',
)
}
Expand All @@ -256,6 +282,9 @@ def cpp_unittest(image) {
}

stage('Build') {
environment {
SKIP_SLOW_TESTS = "${skip_slow_tests}"
}
parallel 'BUILD: GPU': {
if (!skip_ci) {
node('GPUBUILD') {
Expand Down Expand Up @@ -286,7 +315,7 @@ stage('Build') {
ci_setup(ci_cpu)
// sh "${docker_run} ${ci_cpu} ./tests/scripts/task_golang.sh"
// TODO(@jroesch): need to resolve CI issue will turn back on in follow up patch
sh (script: "${docker_run} ${ci_cpu} ./tests/scripts/task_rust.sh", label: "Rust build and test")
sh (script: "${docker_run} ${ci_cpu} ./tests/scripts/task_rust.sh", label: 'Rust build and test')
}
}
}
Expand Down Expand Up @@ -381,10 +410,41 @@ stage('Build') {
} else {
Utils.markStageSkippedForConditional('BUILD: QEMU')
}
},
'BUILD: Hexagon': {
if (!skip_ci && is_docs_only_build != 1) {
node('CPU') {
ws(per_exec_ws('tvm/build-hexagon')) {
init_git()
sh (
script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_config_build_hexagon.sh",
label: 'Create Hexagon cmake config',
)
try {
make(ci_hexagon, 'build', '-j2')
sh (
script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh",
label: 'Build Hexagon API',
)
sh (
script: "${docker_run} ${ci_hexagon} ./tests/scripts/task_python_hexagon.sh",
label: 'Run Hexagon tests',
)
} finally {
junit 'build/pytest-results/*.xml'
}
}
}
} else {
Utils.markStageSkippedForConditional('BUILD: Hexagon')
}
}
}

stage('Test') {
environment {
SKIP_SLOW_TESTS = "${skip_slow_tests}"
}
parallel 'unittest: GPU': {
if (!skip_ci && is_docs_only_build != 1) {
node('TensorCore') {
Expand Down Expand Up @@ -442,7 +502,7 @@ stage('Test') {
'unittest: CPU': {
if (!skip_ci && is_docs_only_build != 1) {
node('CPU') {
ws(per_exec_ws("tvm/ut-python-cpu")) {
ws(per_exec_ws('tvm/ut-python-cpu')) {
try {
init_git()
unpack_lib('cpu', tvm_multilib_tsim)
Expand All @@ -452,7 +512,7 @@ stage('Test') {
fsim_test(ci_cpu)
sh (
script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta_tsim.sh",
label: "Run VTA tests in TSIM",
label: 'Run VTA tests in TSIM',
)
}
} finally {
Expand Down Expand Up @@ -537,7 +597,7 @@ stage('Test') {
Utils.markStageSkippedForConditional('topi: GPU')
}
},
'frontend: GPU': {
'frontend: GPU 1': {
if (!skip_ci && is_docs_only_build != 1) {
node('GPU') {
ws(per_exec_ws('tvm/frontend-python-gpu')) {
Expand All @@ -547,8 +607,31 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh",
label: 'Run Python frontend tests',
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 1",
label: 'Run Python frontend tests (shard 1)',
)
}
} finally {
junit 'build/pytest-results/*.xml'
}
}
}
} else {
Utils.markStageSkippedForConditional('frontend: GPU 1')
}
},
'frontend: GPU 2': {
if (!skip_ci && is_docs_only_build != 1) {
node('GPU') {
ws(per_exec_ws('tvm/frontend-python-gpu')) {
try {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 2",
label: 'Run Python frontend tests (shard 2)',
)
}
} finally {
Expand All @@ -557,7 +640,7 @@ stage('Test') {
}
}
} else {
Utils.markStageSkippedForConditional('frontend: GPU')
Utils.markStageSkippedForConditional('frontend: GPU 2')
}
},
'frontend: CPU': {
Expand Down
Loading