Skip to content

Commit 5cb5322

Browse files
committed
Merge branch 'main' into sk-build-core
2 parents 8940863 + a13cde2 commit 5cb5322

Some content is hidden

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

52 files changed

+3034
-223
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Checks: >
4646
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
4747
-clang-analyzer-deadcode.DeadStores,
4848
-clang-analyzer-optin.cplusplus.VirtualCall,
49+
-clang-diagnostic-tautological-constant-compare,
4950
5051
WarningsAsErrors: '*'
5152

.editorconfig

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# https://editorconfig.org/
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 4
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.{py,pyi}]
14+
indent_size = 4
15+
16+
[*.{cpp,hpp,cxx,cc,c,h,cu,cuh}]
17+
indent_size = 4
18+
19+
[*.{yaml,yml}]
20+
indent_size = 2
21+
22+
[.clang-{format,tidy}]
23+
indent_size = 2
24+
25+
[Makefile]
26+
indent_style = tab
27+
28+
[*.sh]
29+
indent_size = 4
30+
31+
[*.bat]
32+
indent_size = 4
33+
end_of_line = crlf
34+
35+
[*.md]
36+
indent_size = 2
37+
x-soft-wrap-text = true
38+
39+
[*.rst]
40+
indent_size = 4
41+
x-soft-wrap-text = true

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
time: "12:00"
9+
timezone: "Asia/Shanghai"
10+
commit-message:
11+
prefix: "[CI]"

.github/workflows/amd_ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI Test on AMD
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -12,16 +16,16 @@ jobs:
1216
runs-on: [self-hosted, amd, gpu]
1317

1418
permissions:
15-
contents: write
19+
contents: write
1620

1721
steps:
1822
- name: Checkout repository
19-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2024
with:
2125
fetch-depth: 0
2226

2327
- name: Set up Python
24-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v6
2529
with:
2630
python-version: ${{ env.PYTHON_VERSION }}
2731

@@ -68,14 +72,14 @@ jobs:
6872
contents: read
6973
steps:
7074
- name: Checkout repository
71-
uses: actions/checkout@v4
75+
uses: actions/checkout@v5
7276
with:
7377
fetch-depth: 1
7478
repository: ${{ github.event.pull_request.head.repo.full_name }}
7579
ref: ${{ github.event.pull_request.head.ref }}
7680

7781
- name: Set up Python
78-
uses: actions/setup-python@v2
82+
uses: actions/setup-python@v6
7983
with:
8084
python-version: ${{ env.PYTHON_VERSION }}
8185

@@ -85,7 +89,7 @@ jobs:
8589
set -e
8690
REQS_HASH=$(sha256sum requirements-rocm.txt | cut -d ' ' -f 1)
8791
MARKER="${{ runner.tool_cache }}/.venv_marker_${{ env.PYTHON_VERSION }}_${REQS_HASH:0:8}"
88-
92+
8993
echo "Installing requirements"
9094
if [[ -f "$MARKER" ]] && [[ -f "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" ]]; then
9195
echo "venv exists and hash matches – reuse it"
@@ -117,4 +121,4 @@ jobs:
117121
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
118122
cd testing/python/amd
119123
unset PYTHONPATH
120-
python -m pytest -v test_tilelang_test_amd.py
124+
python -m pytest -v --cache-clear test_tilelang_test_amd.py

.github/workflows/bot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bot
22

3-
on:
3+
on:
44
issue_comment:
55
types: [created]
66

@@ -16,13 +16,13 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v5
2020
with:
2121
ref: refs/pull/${{ github.event.issue.number }}/merge
2222
fetch-depth: 0
2323

2424
- name: Set up Python
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: '3.9'
2828

@@ -36,7 +36,7 @@ jobs:
3636
- name: Build original version
3737
run: |
3838
echo "Check files to be deleted!"
39-
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
39+
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
4040
git clean -dxn | grep -v 'tll/' | xargs -I{} rm -rf {}
4141
echo "Delete files completed!"
4242
git checkout main

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -13,9 +17,10 @@ jobs:
1317
contents: write
1418
env:
1519
UV_INDEX_URL: https://mirrors.bfsu.edu.cn/pypi/web/simple
20+
1621
steps:
1722
- name: Checkout repository
18-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
1924
with:
2025
fetch-depth: 0
2126
submodules: recursive
@@ -60,7 +65,7 @@ jobs:
6065
UV_INDEX_URL: https://mirrors.bfsu.edu.cn/pypi/web/simple
6166
steps:
6267
- name: Checkout repository
63-
uses: actions/checkout@v4
68+
uses: actions/checkout@v5
6469
with:
6570
fetch-depth: 0
6671
submodules: recursive
@@ -88,9 +93,9 @@ jobs:
8893
- name: Run examples
8994
run: |
9095
cd examples
91-
python -m pytest -n 4 **/test*.py -v -r fE --durations=0
96+
python -m pytest -n 4 **/test*.py -v -r fE --durations=0 --cache-clear
9297
9398
- name: Run tests
9499
run: |
95100
cd testing/python
96-
python -m pytest -n 4 -v -r fE --durations=0 --timeout=3600
101+
python -m pytest -n 4 -v -r fE --durations=0 --cache-clear --timeout=3600

.github/workflows/dependabot.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/metal_ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI Test on Metal
22
on: [pull_request]
33

4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.ref }}"
6+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7+
48
env:
59
PYTHON_VERSION: '3.12'
610
VENV_DIR: tilelang_ci
@@ -11,17 +15,17 @@ jobs:
1115
runs-on: [macos-latest]
1216

1317
permissions:
14-
contents: write
18+
contents: write
1519

1620
steps:
1721
- name: Checkout repository
18-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
1923
with:
2024
fetch-depth: 0
2125
submodules: recursive
2226

2327
- name: Install python via uv
24-
uses: astral-sh/setup-uv@v6
28+
uses: astral-sh/setup-uv@v7
2529
with:
2630
enable-cache: true
2731
ignore-nothing-to-cache: true
@@ -58,7 +62,7 @@ jobs:
5862
CMAKE_CXX_COMPILER_LAUNCHER: ccache
5963
steps:
6064
- name: Checkout repository
61-
uses: actions/checkout@v4
65+
uses: actions/checkout@v5
6266
with:
6367
fetch-depth: 1
6468
submodules: recursive
@@ -70,7 +74,7 @@ jobs:
7074
key: ${{ github.job }}-${{ matrix.os }}
7175

7276
- name: Install python via uv
73-
uses: astral-sh/setup-uv@v6
77+
uses: astral-sh/setup-uv@v7
7478
with:
7579
enable-cache: true
7680
ignore-nothing-to-cache: true
@@ -89,4 +93,4 @@ jobs:
8993
run: |
9094
cd testing/python
9195
unset PYTHONPATH
92-
python -m pytest -k metal -v -r fE --durations=0 --timeout=3600
96+
python -m pytest -k metal -v -r fE --durations=0 --cache-clear --timeout=3600

.github/workflows/publish_docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' }} || ${{ github.event_name == 'workflow_dispatch' }}
1515
runs-on: [self-hosted, nvidia]
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v5
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.10'
2121
- name: Build docs
@@ -41,4 +41,3 @@ jobs:
4141
else
4242
echo "No changes detected, skipping commit and push."
4343
fi
44-

.github/workflows/reminder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Remind
10-
uses: actions/github-script@v7
10+
uses: actions/github-script@v8
1111
with:
1212
script: |
1313
github.rest.issues.createComment({
@@ -20,4 +20,4 @@ jobs:
2020
'🚀'
2121
})
2222
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)