Skip to content

Commit 3ec58ff

Browse files
Merge branch 'main' into with_fields_functions
2 parents ee9abe1 + 2a91f0d commit 3ec58ff

File tree

231 files changed

+11419
-1492
lines changed

Some content is hidden

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

231 files changed

+11419
-1492
lines changed

.github/workflows/cc_bot.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# GH actions.
19+
# We use it to cover windows and mac builds
20+
# Jenkins is still the primary CI
21+
22+
name: PR
23+
24+
on:
25+
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
26+
pull_request_target:
27+
types: [assigned, opened, synchronize, reopened, edited, ready_for_review]
28+
29+
concurrency:
30+
group: PR-${{ github.event.pull_request.number }}
31+
cancel-in-progress: true
32+
33+
jobs:
34+
cc-reviewers:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
with:
39+
submodules: "recursive"
40+
- name: Add cc'ed reviewers
41+
env:
42+
PR: ${{ toJson(github.event.pull_request) }}
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: |
45+
set -eux
46+
python tests/scripts/github_cc_reviewers.py || echo step failed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
4646

4747
// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
4848
ci_lint = "tlcpack/ci-lint:v0.67"
49-
ci_gpu = "tlcpack/ci-gpu:v0.79"
49+
ci_gpu = "tlcpack/ci-gpu:v0.80"
5050
ci_cpu = "tlcpack/ci-cpu:v0.80"
5151
ci_wasm = "tlcpack/ci-wasm:v0.71"
5252
ci_i386 = "tlcpack/ci-i386:v0.74"
53-
ci_qemu = "tlcpack/ci-qemu:v0.08"
53+
ci_qemu = "tlcpack/ci-qemu:v0.09"
5454
ci_arm = "tlcpack/ci-arm:v0.06"
5555
// <--- End of regex-scanned config.
5656

cmake/modules/Hexagon.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ if(USE_HEXAGON_RPC)
301301
${HEXAGON_RPC_OUTPUT} COPYONLY)
302302

303303
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${HEXAGON_RPC_OUTPUT}")
304-
305-
# Used in `src/target/llvm/llvm_common.h`
306-
add_definitions(-DTVM_USE_HEXAGON_LLVM)
307304
endif()
308305

309306
if(USE_HEXAGON_DEVICE STREQUAL "${PICK_SIM}")

cmake/modules/HexagonSDK.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function(find_hexagon_sdk_root HEXAGON_SDK_PATH HEXAGON_ARCH)
3131

3232
# Initial verification of the Hexagon SDK.
3333
message(STATUS "Checking Hexagon SDK root: ${HEXAGON_SDK_PATH}")
34-
tvm_file_glob(GLOB_RECURSE VERSION_HEADERS "${HEXAGON_SDK_PATH}/*/version.h")
34+
file(GLOB_RECURSE VERSION_HEADERS "${HEXAGON_SDK_PATH}/*/version.h")
3535
if(VERSION_HEADERS)
3636
foreach(HEADER IN LISTS VERSION_HEADERS)
3737
if(HEADER MATCHES "incs/version.h$")

docker/Dockerfile.ci_arm

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ RUN apt-get install -y ca-certificates gnupg2
2626
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
2727
RUN bash /install/ubuntu_install_core.sh
2828

29+
# Rust env
30+
COPY install/ubuntu_install_rust.sh /install/ubuntu_install_rust.sh
31+
RUN bash /install/ubuntu_install_rust.sh
32+
ENV RUSTUP_HOME /opt/rust
33+
ENV CARGO_HOME /opt/rust
34+
ENV PATH $PATH:$CARGO_HOME/bin
35+
36+
# sccache
37+
COPY install/ubuntu_install_sccache.sh /install/ubuntu_install_sccache.sh
38+
RUN bash /install/ubuntu_install_sccache.sh
39+
2940
COPY install/ubuntu_install_llvm.sh /install/ubuntu_install_llvm.sh
3041
RUN bash /install/ubuntu_install_llvm.sh
3142

3243
COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
3344
RUN bash /install/ubuntu1804_install_python.sh
3445

3546
# Globally disable pip cache
36-
RUN pip config set global.cache-dir false
47+
RUN pip config set global.no-cache-dir false
3748

3849
COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh
3950
RUN bash /install/ubuntu_install_cmake_source.sh

docker/Dockerfile.ci_cpu

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
2828
RUN bash /install/ubuntu1804_install_python.sh
2929

3030
# Globally disable pip cache
31-
RUN pip config set global.cache-dir false
31+
RUN pip config set global.no-cache-dir false
3232

3333
COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh
3434
RUN bash /install/ubuntu_install_python_package.sh
@@ -53,6 +53,10 @@ ENV RUSTUP_HOME /opt/rust
5353
ENV CARGO_HOME /opt/rust
5454
ENV PATH $PATH:$CARGO_HOME/bin
5555

56+
# wasmtime
57+
COPY install/ubuntu_install_wasmtime.sh /install/ubuntu_install_wasmtime.sh
58+
RUN bash /install/ubuntu_install_wasmtime.sh
59+
5660
# AutoTVM deps
5761
COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh
5862
RUN bash /install/ubuntu_install_redis.sh
@@ -126,3 +130,7 @@ ENV PATH /opt/arm/gcc-arm-none-eabi/bin:/opt/arm/FVP_Corstone_SSE-300/models/Lin
126130
# PaddlePaddle deps
127131
COPY install/ubuntu_install_paddle.sh /install/ubuntu_install_paddle.sh
128132
RUN bash /install/ubuntu_install_paddle.sh
133+
134+
# sccache
135+
COPY install/ubuntu_install_sccache.sh /install/ubuntu_install_sccache.sh
136+
RUN bash /install/ubuntu_install_sccache.sh

docker/Dockerfile.ci_gpu

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
2929
RUN bash /install/ubuntu1804_install_python.sh
3030

3131
# Globally disable pip cache
32-
RUN pip config set global.cache-dir false
32+
RUN pip config set global.no-cache-dir false
3333

3434
COPY install/ubuntu1804_install_llvm.sh /install/ubuntu1804_install_llvm.sh
3535
RUN bash /install/ubuntu1804_install_llvm.sh
@@ -101,6 +101,10 @@ ENV RUSTUP_HOME /opt/rust
101101
ENV CARGO_HOME /opt/rust
102102
ENV PATH $PATH:$CARGO_HOME/bin
103103

104+
# wasmtime
105+
COPY install/ubuntu_install_wasmtime.sh /install/ubuntu_install_wasmtime.sh
106+
RUN bash /install/ubuntu_install_wasmtime.sh
107+
104108
# AutoTVM deps
105109
COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh
106110
RUN bash /install/ubuntu_install_redis.sh
@@ -117,6 +121,10 @@ RUN bash /install/ubuntu_install_universal.sh
117121
COPY install/ubuntu_install_papi.sh /install/ubuntu_install_papi.sh
118122
RUN bash /install/ubuntu_install_papi.sh "cuda rocm"
119123

124+
# sccache
125+
COPY install/ubuntu_install_sccache.sh /install/ubuntu_install_sccache.sh
126+
RUN bash /install/ubuntu_install_sccache.sh
127+
120128
# Environment variables
121129
ENV PATH=/usr/local/nvidia/bin:${PATH}
122130
ENV PATH=/usr/local/cuda/bin:${PATH}

docker/Dockerfile.ci_i386

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh
3232
RUN bash /install/ubuntu_install_python.sh
3333

3434
# Globally disable pip cache
35-
RUN pip config set global.cache-dir false
35+
RUN pip config set global.no-cache-dir false
3636

3737
COPY install/ubuntu_install_cmake_source.sh /install/ubuntu_install_cmake_source.sh
3838
RUN bash /install/ubuntu_install_cmake_source.sh

docker/Dockerfile.ci_lint

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COPY install/ubuntu1804_install_python.sh /install/ubuntu1804_install_python.sh
2828
RUN bash /install/ubuntu1804_install_python.sh
2929

3030
# Globally disable pip cache
31-
RUN pip config set global.cache-dir false
31+
RUN pip config set global.no-cache-dir false
3232

3333
RUN apt-get update && apt-get install -y doxygen graphviz curl
3434

@@ -41,6 +41,10 @@ ENV RUSTUP_HOME /opt/rust
4141
ENV CARGO_HOME /opt/rust
4242
ENV PATH $PATH:$CARGO_HOME/bin
4343

44+
# wasmtime
45+
COPY install/ubuntu_install_wasmtime.sh /install/ubuntu_install_wasmtime.sh
46+
RUN bash /install/ubuntu_install_wasmtime.sh
47+
4448
# java deps for rat
4549
COPY install/ubuntu_install_java.sh /install/ubuntu_install_java.sh
4650
RUN bash /install/ubuntu_install_java.sh

docker/Dockerfile.ci_qemu

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN bash /install/ubuntu1804_install_python_venv.sh
2929
ENV PATH=/opt/tvm-venv/bin:/opt/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH
3030

3131
# Globally disable pip cache
32-
RUN pip config set global.cache-dir false
32+
RUN pip config set global.no-cache-dir false
3333

3434
COPY install/ubuntu_install_python_package.sh /install/ubuntu_install_python_package.sh
3535
RUN bash /install/ubuntu_install_python_package.sh
@@ -42,6 +42,7 @@ COPY install/ubuntu_install_rust.sh /install/ubuntu_install_rust.sh
4242
RUN bash /install/ubuntu_install_rust.sh
4343
ENV RUSTUP_HOME /opt/rust
4444
ENV CARGO_HOME /opt/rust
45+
ENV PATH $PATH:$CARGO_HOME/bin
4546

4647
# AutoTVM deps
4748
COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh
@@ -59,6 +60,10 @@ RUN bash /install/ubuntu_install_tensorflow.sh
5960
COPY install/ubuntu_install_tflite.sh /install/ubuntu_install_tflite.sh
6061
RUN bash /install/ubuntu_install_tflite.sh
6162

63+
# sccache
64+
COPY install/ubuntu_install_sccache.sh /install/ubuntu_install_sccache.sh
65+
RUN bash /install/ubuntu_install_sccache.sh
66+
6267
# Zephyr SDK deps
6368
COPY install/ubuntu_install_zephyr.sh /install/ubuntu_install_zephyr.sh
6469
COPY install/ubuntu_init_zephyr_project.sh /install/ubuntu_init_zephyr_project.sh

0 commit comments

Comments
 (0)