From 842fab4ff04cc790fcff0e84f8263c6b22cef2f3 Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 11:08:08 +0800 Subject: [PATCH 01/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/release_notes_v0.2.0_cn.md | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 reports/v0.2.0/release_notes_v0.2.0_cn.md diff --git a/reports/v0.2.0/release_notes_v0.2.0_cn.md b/reports/v0.2.0/release_notes_v0.2.0_cn.md new file mode 100644 index 000000000..2591eb7c9 --- /dev/null +++ b/reports/v0.2.0/release_notes_v0.2.0_cn.md @@ -0,0 +1,36 @@ +[English](./release_notes_v0.2.0.md) + +## FlagTree 0.2.0 Release + +### Highlights + +FlagTree 继承前一版本的能力,持续集成新的后端,拓展对 Triton 版本的支持,提供硬件感知优化能力。项目当前处于初期,目标是兼容各芯片后端现有适配方案,统一代码仓库,打造代码共建平台,快速实现单仓库多后端支持。 + +### New features + +* 新增多后端支持 + +目前支持的后端包括 iluvatar、xpu (klx)、mthreads、__metax__、__aipu__(arm npu)、__ascend__ npu & cpu、__tsingmicro__、cambricon,其中 __加粗__ 为本次新增。 +各新增后端保持前一版本的能力:跨平台编译与快速验证、高差异度模块插件化、CI/CD、质量管理能力。 + +* 两种编译路径支持 + +支持 TritonGPU、Linalg 两种编译路径。对非 GPGPU 后端提供多种接入范式,新增 FLIR 仓库支持基于 Linalg Dialect 扩展的后端编译。 + +* 新增 Triton 版本支持 + +目前支持的 Triton 版本包括 3.0.x、3.1.x、__3.2.x__、__3.3.x__,其中 __加粗__ 为本次新增。 + +* 硬件感知优化支持 + +支持为后端通用或特有的硬件特性提供指导编程接口。通过注解等兼容式地扩展,在语言层添加指导信息以提高具体后端的性能。当前已实现对 Async DMA 的硬件感知优化支持。 + +* 与 FlagGems 算子库联合建设 + +在版本适配、后端适配、推理芯片特性适配等方面,与 [FlagGems](https://github.com/FlagOpen/FlagGems) 算子库联合支持相关特性。 + +### Looking ahead + +GPGPU 后端代码将作整合,将后端差异化改动与 TritonGPU 解耦;非 GPGPU 后端将在 FLIR 基础上横向整合,对通用 Pass 进行统一设计。 +为后端厂商提供 Triton 适配版本升级指南:3.0 -> 3.1 -> 3.2 -> 3.3。 +CI/CD 将添加 FlagGems 算子库功能测试。 From 6afd36e60a3f29d010e95b64d24e830a44394a5d Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 12:37:55 +0800 Subject: [PATCH 02/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/release_notes_v0.2.0_cn.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reports/v0.2.0/release_notes_v0.2.0_cn.md b/reports/v0.2.0/release_notes_v0.2.0_cn.md index 2591eb7c9..001570fb4 100644 --- a/reports/v0.2.0/release_notes_v0.2.0_cn.md +++ b/reports/v0.2.0/release_notes_v0.2.0_cn.md @@ -10,8 +10,8 @@ FlagTree 继承前一版本的能力,持续集成新的后端,拓展对 Trit * 新增多后端支持 -目前支持的后端包括 iluvatar、xpu (klx)、mthreads、__metax__、__aipu__(arm npu)、__ascend__ npu & cpu、__tsingmicro__、cambricon,其中 __加粗__ 为本次新增。 -各新增后端保持前一版本的能力:跨平台编译与快速验证、高差异度模块插件化、CI/CD、质量管理能力。 +目前支持的后端包括 iluvatar、xpu (klx)、mthreads、__metax__、__aipu__(arm npu)、__ascend__ npu & cpu、__tsingmicro__、cambricon,其中 __加粗__ 为本次新增。
+各新增后端保持前一版本的能力:跨平台编译与快速验证、高差异度模块插件化、CI/CD、质量管理能力。
* 两种编译路径支持 @@ -31,6 +31,6 @@ FlagTree 继承前一版本的能力,持续集成新的后端,拓展对 Trit ### Looking ahead -GPGPU 后端代码将作整合,将后端差异化改动与 TritonGPU 解耦;非 GPGPU 后端将在 FLIR 基础上横向整合,对通用 Pass 进行统一设计。 -为后端厂商提供 Triton 适配版本升级指南:3.0 -> 3.1 -> 3.2 -> 3.3。 -CI/CD 将添加 FlagGems 算子库功能测试。 +GPGPU 后端代码将作整合,将后端差异化改动与 TritonGPU 解耦;非 GPGPU 后端将在 FLIR 基础上横向整合,对通用 Pass 进行统一设计。
+为后端厂商提供 Triton 适配版本升级指南:3.0 -> 3.1 -> 3.2 -> 3.3。
+CI/CD 将添加 FlagGems 算子库功能测试。
From 51d82978664bd4a93910a8b4c84b48621904d5e7 Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:12:38 +0800 Subject: [PATCH 03/10] [DOC] Add v0.2.0 release notes --- README.md | 2 +- README_cn.md | 2 +- reports/v0.2.0/report_tests.md | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 reports/v0.2.0/report_tests.md diff --git a/README.md b/README.md index f3e4b9bc1..6567b263a 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ git checkout -b triton_v3.3.x origin/triton_v3.3.x export FLAGTREE_BACKEND=tsingmicro python3 -m pip install . --no-build-isolation -v ``` -[ascend](https://github.com/FlagTree/flagtree/tree/triton_v3.2.x/third_party/ascend/) +[ascend](https://github.com/FlagTree/flagtree/blob/triton_v3.2.x/python/setup_tools/setup_helper.py) ```shell # Recommended: Use the Dockerfile flagtree/dockerfiles/Dockerfile-ubuntu20.04-python3.9-ascend # After registering an account at https://www.hiascend.com/developer/download/community/result?module=cann, diff --git a/README_cn.md b/README_cn.md index 84ce16d81..047e1e861 100644 --- a/README_cn.md +++ b/README_cn.md @@ -73,7 +73,7 @@ git checkout -b triton_v3.3.x origin/triton_v3.3.x export FLAGTREE_BACKEND=tsingmicro python3 -m pip install . --no-build-isolation -v ``` -[ascend](https://github.com/FlagTree/flagtree/tree/triton_v3.2.x/third_party/ascend/) +[ascend](https://github.com/FlagTree/flagtree/blob/triton_v3.2.x/python/setup_tools/setup_helper.py) ```shell # 推荐使用镜像 flagtree/dockerfiles/Dockerfile-ubuntu20.04-python3.9-ascend # 在 https://www.hiascend.com/developer/download/community/result?module=cann diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md new file mode 100644 index 000000000..49d09a725 --- /dev/null +++ b/reports/v0.2.0/report_tests.md @@ -0,0 +1,14 @@ + + +## FlagTree Test-Report + +FlagTree tests are validated on different backends, but currently the tests consist of only unit tests, which we will refine in the future for smaller or larger scale tests. + +### 1. Python unit test: + +| | default | xpu (klx) | iluvatar | mthreads | metax | +|----------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| +| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | +| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | +| command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| passing rate | 100% | 100% | 100% | 100% | 100% | From d2bbdf7c89e5f33341451e87faf20dbfc71f47dd Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:18:53 +0800 Subject: [PATCH 04/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index 49d09a725..373969d02 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -6,9 +6,9 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: -| | default | xpu (klx) | iluvatar | mthreads | metax | -|----------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| -| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | -| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | -| command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | -| passing rate | 100% | 100% | 100% | 100% | 100% | +| | default | xpu (klx) | iluvatar | mthreads | metax | +|----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| +| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | +| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | +| test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| passing rate | 100% | 100% | 100% | 100% | 100% | From 936b74688bd5a92dcef671627bcda0c92083764b Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:22:24 +0800 Subject: [PATCH 05/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index 373969d02..4f58a9553 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -6,9 +6,9 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: -| | default | xpu (klx) | iluvatar | mthreads | metax | +| | default | xpu (klx) | iluvatar | mthreads | metax | |----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| -| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | -| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | -| test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | -| passing rate | 100% | 100% | 100% | 100% | 100% | +| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | +| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | +| test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| passing rate | 100% | 100% | 100% | 100% | 100% | From ca20717f1352579ed659e89def6bcda35fd32c40 Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:22:42 +0800 Subject: [PATCH 06/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index 4f58a9553..c2086bda3 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -7,7 +7,7 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: | | default | xpu (klx) | iluvatar | mthreads | metax | -|----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| +|--------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| | Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | | Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | | test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | From b099c879a34081e072ebf8da56ba4a7712edac34 Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:25:37 +0800 Subject: [PATCH 07/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index c2086bda3..b5dc8d10c 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -6,9 +6,9 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: -| | default | xpu (klx) | iluvatar | mthreads | metax | +|                          | default | xpu (klx) | iluvatar | mthreads | metax | |--------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| | Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | | Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | -| test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | -| passing rate | 100% | 100% | 100% | 100% | 100% | +| Test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| Passing rate | 100% | 100% | 100% | 100% | 100% | From 79ddef27d1bd6365135a9954c0c99893a36bdd7c Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:33:46 +0800 Subject: [PATCH 08/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index b5dc8d10c..4f74047ca 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -7,8 +7,8 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: |                          | default | xpu (klx) | iluvatar | mthreads | metax | -|--------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| -| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | -| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | -| Test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | -| Passing rate | 100% | 100% | 100% | 100% | 100% | +|----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| +| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | +| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | +| Test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| Passing rate | 100% | 100% | 100% | 100% | 100% | From f7959d9bd8e0cf8c2ab318d5d1f40e5cafa14c4c Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:37:20 +0800 Subject: [PATCH 09/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index 4f74047ca..2631ba341 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -6,7 +6,7 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: -|                          | default | xpu (klx) | iluvatar | mthreads | metax | +|                      | default | xpu (klx) | iluvatar | mthreads | metax | |----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| | Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | | Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | From dff46c52c2bf6e2d40c564af58efd48140cbc315 Mon Sep 17 00:00:00 2001 From: zhengyang Date: Tue, 17 Jun 2025 17:38:47 +0800 Subject: [PATCH 10/10] [DOC] Add v0.2.0 release notes --- reports/v0.2.0/report_tests.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reports/v0.2.0/report_tests.md b/reports/v0.2.0/report_tests.md index 2631ba341..e11e82be2 100644 --- a/reports/v0.2.0/report_tests.md +++ b/reports/v0.2.0/report_tests.md @@ -6,9 +6,9 @@ FlagTree tests are validated on different backends, but currently the tests cons ### 1. Python unit test: -|                      | default | xpu (klx) | iluvatar | mthreads | metax | -|----------------------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| -| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | -| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | -| Test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | -| Passing rate | 100% | 100% | 100% | 100% | 100% | +|              | default | xpu (klx) | iluvatar | mthreads | metax | +|----------------------|---------------------------|-------------------------------------------|------------------------------------------------|------------------------------------------------|---------------------------------------------| +| Number of unit tests | 11353 items | 12623 items | 14808 items | 10392 items | 13728 items | +| Script location | flagtree/python/test/unit | flagtree/third_party/xpu/python/test/unit | flagtree/third_party/iluvatar/python/test/unit | flagtree/third_party/mthreads/python/test/unit | flagtree/third_party/metax/python/test/unit | +| Test command | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | python3 -m pytest -s | +| Passing rate | 100% | 100% | 100% | 100% | 100% |