Skip to content

Commit ea41337

Browse files
committed
main merge
1 parent 097d05f commit ea41337

File tree

2,684 files changed

+41346
-59202
lines changed

Some content is hidden

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

2,684 files changed

+41346
-59202
lines changed

.asf.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ github:
5858
main:
5959
required_status_checks:
6060
contexts:
61-
- unity/pr-head
6261
- arm/pr-head
6362
- cpu/pr-head
6463
- docker/pr-head
6564
- gpu/pr-head
66-
- hexagon/pr-head
67-
- i386/pr-head
68-
- lint/pr-head
6965
- wasm/pr-head
7066

7167
required_pull_request_reviews:

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# https://clang.llvm.org/docs/ClangFormat.html
55
BasedOnStyle: Google
66
DerivePointerAlignment: false
7-
ColumnLimit: 100
7+
ColumnLimit: 100
88
PointerAlignment: Left

.github/CODEOWNERSHIP

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# Github code owners file
18+
# GitHub code owners file
1919
# This file is used as a convenient tool to map
2020
# committers' areas of expertise and faciliate the review process.
2121
#
@@ -66,7 +66,7 @@ web/** @tqchen @jroesch
6666
docker/** @areusch @leandron @jroesch
6767

6868
# Conda
69-
conda/** @tqchen @junrushao1994 @comaniac
69+
tests/conda/** @tqchen @junrushao1994 @comaniac
7070

7171
# CMake
7272
cmake/** @jroesch @tqchen @areusch @junrushao1994 @comaniac

.github/actions/setup/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
runs:
22
using: "composite"
33
steps:
4-
- uses: actions/cache@v4
4+
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
55
env:
66
CACHE_NUMBER: 2
77
with:
88
path: ~/conda_pkgs_dir
9-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/conda/build-environment.yaml') }}
10-
- uses: conda-incubator/setup-miniconda@v3
9+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('tests/conda/build-environment.yaml') }}
10+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
1111
continue-on-error: true
1212
id: conda1
1313
with:
1414
activate-environment: tvm-build
1515
channel-priority: strict
16-
environment-file: conda/build-environment.yaml
16+
environment-file: tests/conda/build-environment.yaml
1717
auto-activate-base: false
1818
miniforge-version: latest
1919
python-version: 3.9
20-
condarc-file: conda/condarc
21-
- uses: conda-incubator/setup-miniconda@v3
20+
condarc-file: tests/conda/condarc
21+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
2222
if: steps.conda1.outcome == 'failure'
2323
with:
2424
activate-environment: tvm-build
2525
channel-priority: strict
26-
environment-file: conda/build-environment.yaml
26+
environment-file: tests/conda/build-environment.yaml
2727
auto-activate-base: false
2828
miniforge-version: latest
2929
use-only-tar-bz2: true
3030
python-version: 3.9
31-
condarc-file: conda/condarc
31+
condarc-file: tests/conda/condarc
3232
- name: Conda info
3333
shell: pwsh
3434
run: |

.github/workflows/cc_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: github.repository == 'apache/tvm'
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939
with:
4040
submodules: "recursive"
4141
- name: Add cc'ed reviewers
Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# CI docker GPU env
19-
FROM tlcpack/ci-gpu
18+
name: Lint
2019

21-
COPY utils/apt-install-and-clear.sh /usr/local/bin/apt-install-and-clear
20+
on:
21+
push:
22+
branches: [main]
23+
pull_request:
24+
branches: [main]
2225

23-
# Clang tool for CLML source codegen
24-
RUN apt-get update && apt-install-and-clear -y clang-format-15
26+
concurrency:
27+
group: Lint-${{ github.event.pull_request.number || github.sha }}
28+
cancel-in-progress: true
2529

26-
#Google Test
27-
COPY install/ubuntu_install_googletest.sh /install/ubuntu_install_googletest.sh
28-
RUN bash install/ubuntu_install_googletest.sh
30+
jobs:
31+
lint:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35+
with:
36+
fetch-depth: 0
37+
fetch-tags: true
38+
- name: Set up uv
39+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
40+
- name: Set up Python environment
41+
run: uv sync --group lint --no-install-project
42+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.github/workflows/main.yml

Lines changed: 3 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: ${{ github.repository == 'apache/tvm' }}
4040
runs-on: macOS-latest
4141
steps:
42-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4343
with:
4444
submodules: 'recursive'
4545
- name: Set up environment
@@ -58,22 +58,7 @@ jobs:
5858
shell: bash -l {0}
5959
run: |
6060
pip install dist/*.whl
61-
# - name: Build iOS RPC
62-
# run: |
63-
# IOS_VERSION="14.0"
64-
# CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release \
65-
# -DCMAKE_SYSTEM_NAME=iOS \
66-
# -DCMAKE_SYSTEM_VERSION=${IOS_VERSION} \
67-
# -DCMAKE_OSX_SYSROOT=iphonesimulator \
68-
# -DCMAKE_OSX_ARCHITECTURES=x86_64 \
69-
# -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
70-
# -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
71-
# -DUSE_IOS_RPC=ON"
72-
#
73-
# mkdir build-ios-simulator
74-
# cd build-ios-simulator
75-
# cmake .. ${CMAKE_FLAGS}
76-
# cmake --build . --target ios_rpc
61+
7762
- name: Test
7863
shell: bash -l {0}
7964
run: >-
@@ -89,20 +74,12 @@ jobs:
8974
python -m pytest -v -s 'tests/python/codegen/test_target_codegen_metal.py'
9075
python -m pytest -v -s 'tests/python/codegen/test_target_codegen_gpu_common.py'
9176
python -m pytest -v -s 'tests/python/codegen/test_gpu_codegen_allreduce.py::test_allreduce_sum[dims0-metal]'
92-
# - name: Test iOS RPC
93-
# shell: bash -l {0}
94-
# run: >-
95-
# python -m pip install tornado psutil cloudpickle &&
96-
# export PYTHONPATH=tests/python/contrib:${PYTHONPATH} &&
97-
# export BUNDLE_ID=org.apache.tvmrpc &&
98-
# export BUNDLE_PATH=build-ios-simulator/apps/ios_rpc/ios_rpc/src/ios_rpc-build/Release-iphonesimulator/tvmrpc.app &&
99-
# python -m pytest -v tests/python/contrib/test_rpc_server_device.py
10077
10178
Windows:
10279
if: ${{ github.repository == 'apache/tvm' }}
10380
runs-on: windows-latest
10481
steps:
105-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
10683
with:
10784
submodules: 'recursive'
10885
- name: Set up environment
@@ -125,40 +102,3 @@ jobs:
125102
shell: cmd /C call {0}
126103
run: >-
127104
python -m pytest -v tests/python/all-platform-minimal-test
128-
129-
# Android:
130-
# if: ${{ github.repository == 'apache/tvm' }}
131-
# runs-on: ubuntu-22.04
132-
# steps:
133-
# - uses: actions/checkout@v2
134-
# with:
135-
# submodules: 'recursive'
136-
# - name: Set up environment
137-
# uses: ./.github/actions/setup
138-
# - name: Set up java
139-
# uses: actions/setup-java@v3
140-
# with:
141-
# distribution: 'zulu'
142-
# java-version: '11'
143-
# - name: Build TVM
144-
# shell: bash -l {0}
145-
# run: |
146-
# mkdir build
147-
# cd build
148-
# ../tests/scripts/task_config_build_jvm.sh .
149-
# cmake ..
150-
# make
151-
# - name: Build TVM4J
152-
# run: |
153-
# make jvmpkg
154-
# - name: Build android_rpc
155-
# working-directory: apps/android_rpc
156-
# run: |
157-
# set -eux
158-
# export PATH="${ANDROID_NDK_LATEST_HOME}:$PATH"
159-
# gradle clean build
160-
# - name: Upload android_rpc APK
161-
# uses: actions/upload-artifact@v4
162-
# with:
163-
# name: android_rpc-debug.apk
164-
# path: ./apps/android_rpc/app/build/outputs/apk/debug/app-debug.apk

.github/workflows/nightly_docker_update.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
name: Nightly Docker Update
33
on:
4-
schedule:
5-
- cron: "0 0 * * *"
64
workflow_dispatch:
75

86
concurrency:
@@ -22,7 +20,7 @@ jobs:
2220
if: github.repository == 'apache/tvm'
2321
runs-on: ubuntu-latest
2422
steps:
25-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2624
- name: Open PR to update Docker images
2725
env:
2826
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ping_reviewers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.repository == 'apache/tvm'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
- name: Ping reviewers
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tag_teams.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
if: github.repository == 'apache/tvm'
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
- name: Tag people from relevant teams
3535
env:
3636
PR: ${{ toJson(github.event.pull_request) }}

0 commit comments

Comments
 (0)