文件最后提交记录最后更新时间
!1836 merge all_ut into main feat(ssbuf): add ut for AddControlFlowCondition pass Created-by: ma_journey Commit-by: m-everglow Merged-by: ascend-robot Description: 动态CV控制:添加AddControlFlowCondition控制流部分的UT <!--- The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace [ ] with [x] to indicate you have done them. --> # New contributor declaration - [ ] I am not making a trivial change, such as fixing a typo in a comment. - [ ] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [ ] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [ ] This PR does not need a test because FILL THIS IN. - Select one of the following. - [ ] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!183619 天前
test(tutorials): move test cases in tutorials to pytest_ut, move examples to unitest Co-authored-by: jeshd<chengmaofan@huawei.com> # message auto-generated for no-merge-commit merge: !1644 merge cases_refactor_for_main into main test(tutorials): move test cases in tutorials to pytest_ut, move examples to unitest Created-by: jeshd Commit-by: jeshd Merged-by: ascend-robot Description: <!--- The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace [ ] with [x] to indicate you have done them. --> ### Related Issue https://gitcode.com/Ascend/triton-ascend/issues/396 ### Summary This PR mainly organizes the examples in the Ascend tutorial into pytest cases, and migrates the original examples to unittest. ### Changes Added test cases for low-memory dropout, extern functions, grouped gemm, persistent matmul, etc. Meanwhile, converted the corresponding test cases under the tutorial directory to pytest format, keeping them consistent with the original tutorial examples. Fixed test failures in fused-softmax, matrix-multiplication, demo-libentry, rab_time, hstu_attention and other test cases. For each test script name.py in third_party/ascend/tutorials, there is a corresponding pytest test case script test_name.py in third_party/ascend/unittest/pytest_ut. - [x] I am not making a trivial change, such as fixing a typo in a comment. - [x] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [x] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [x] This PR does not need a test because fix test cases. - Select one of the following. - [x] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!16441 个月前
fix: Handle Name node only when parsing split axis with func in BinOp Co-authored-by: wutianyao<wutianyao1@huawei.com> # message auto-generated for no-merge-commit merge: !1553 merge main2 into main fix: Handle Name node only when parsing split axis with func in BinOp Created-by: wutianyao Commit-by: wutianyao Merged-by: ascend-robot Description: The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace [ ] with [x] to indicate you have done them. - [ ] I am not making a trivial change, such as fixing a typo in a comment. - [ ] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [ ] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [ ] This PR does not need a test because FILL THIS IN. - Select one of the following. - [ ] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!15531 个月前
test(tutorials): move test cases in tutorials to pytest_ut, move examples to unitest Co-authored-by: jeshd<chengmaofan@huawei.com> # message auto-generated for no-merge-commit merge: !1644 merge cases_refactor_for_main into main test(tutorials): move test cases in tutorials to pytest_ut, move examples to unitest Created-by: jeshd Commit-by: jeshd Merged-by: ascend-robot Description: <!--- The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace [ ] with [x] to indicate you have done them. --> ### Related Issue https://gitcode.com/Ascend/triton-ascend/issues/396 ### Summary This PR mainly organizes the examples in the Ascend tutorial into pytest cases, and migrates the original examples to unittest. ### Changes Added test cases for low-memory dropout, extern functions, grouped gemm, persistent matmul, etc. Meanwhile, converted the corresponding test cases under the tutorial directory to pytest format, keeping them consistent with the original tutorial examples. Fixed test failures in fused-softmax, matrix-multiplication, demo-libentry, rab_time, hstu_attention and other test cases. For each test script name.py in third_party/ascend/tutorials, there is a corresponding pytest test case script test_name.py in third_party/ascend/unittest/pytest_ut. - [x] I am not making a trivial change, such as fixing a typo in a comment. - [x] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [x] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [x] This PR does not need a test because fix test cases. - Select one of the following. - [x] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!16441 个月前
test: move mindspore cases to generalization Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !1453 merge main/fix-test-case into main test: move mindspore cases to generalization Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ## Summary 1. Move MindSpore test cases from pytest_ut to generalization_cases to improve CI execution efficiency. 2. Adjust the tolerance threshold for matmul in test_sync_block to 3e-2, which falls within an acceptable accuracy range. 3. Temporarily disable kernel test cases in CI due to intermittent RuntimeError issues affecting stability; tests will be re-enabled after fixes are applied. ## CheckList - [x] I am not making a trivial change, such as fixing a typo in a comment. - [x] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [x] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [x] This PR does not need a test because FILL THIS IN. - Select one of the following. - [x] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!14532 个月前
fix(docs): correct some documents Co-authored-by: KanuaK<zhouyihan1@huawei.com> # message auto-generated for no-merge-commit merge: !1665 merge fix/docs-fix into main fix(docs): correct some documents Created-by: KanuaK Commit-by: KanuaK Merged-by: ascend-robot Description: <!--- The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace [ ] with [x] to indicate you have done them. --> # New contributor declaration - [ ] I am not making a trivial change, such as fixing a typo in a comment. - [ ] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [ ] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [ ] This PR does not need a test because FILL THIS IN. - Select one of the following. - [ ] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!16651 个月前
Merge remote-tracking branch 'upstream/main' into main_cann 21 天前
feat(filecheck): add mlir filecheck and delete failed test cases temporarily 1 个月前
feat(ci):A set of general-purpose kernel performance comparison test methods designed for subsequent kernel testing. Co-authored-by: zhudada0120<zhuguanda@huawei.com> # message auto-generated for no-merge-commit merge: !1053 merge main-common-kernel-test-method into main feat(ci):A set of general-purpose kernel performance comparison test methods designed for subsequent kernel testing. Created-by: zhudada Commit-by: zhudada0120 Merged-by: ascend-robot Description: # 描述 ## 一、背景 当前triton-ascend仓的CI中没有将上游框架或算子库中的kernel看护起来,例如vllm-ascend中重写过的kernel算子,当前triton-ascend CI没有感知这部分算子问题的能力。 ## 二、改动目标 1、提供一套通用的 Triton kernel 单测框架,统一加载 GPU dump 的 pt 测试用例,运行 NPU 上的 Triton kernel 并与 GPU上的Triton kernel或PyTorch算子 输出做精度比对,避免为每个 kernel 重复编写测试逻辑。当前方案支持sglang也按同样的方式新增测试kernel。 2、将这部分需要看护的算子纳入到CI当中看护起来。 ## 三、具体改动 1、third_party/ascend/unittest下新增kernels文件夹,用于存放三方kernel的算子及通用测试用例,kernels文件夹目录结构如下: kernels |-- vllm/ |-- sglang/ |-- README.md |-- common_kernel.py |-- test_triton_kernel.py |-- test_common.py 内容说明: - 不同的框架或三方库kernels的独立文件夹,如vllm/、sglang/:存放不同来源的kernel - README.md:补充新kernel用例的指导文档 - common_kernel.py:三方kernel中使用频率较高的公用kernel - test_triton_kernel.py:通用的 Triton kernel 测试入口,扫描kernels 下的 kernel 文件,按本地或远端 pt 文件生成参数化用例并调用 run_and_compare_ptfile验证结果精度。 - test_common.py:测试公用方法 2、conftest.py中增加--kernel pytest 选项,可在命令行指定要执行的 kernel(未指定的将被跳过)。 3、Makefile Test部分补充kernel用例执行命令 ## 四、补充新用例的流程 ![drawio.png](https://raw.gitcode.com/user-images/assets/7623225/405d4951-fd69-4b37-9574-e7b8c8a79fd5/drawio.png 'drawio.png') ## 测试 全量算子测试: ![image.png](https://raw.gitcode.com/user-images/assets/7623225/bfa9a391-78b6-432c-bc30-78fb5a9c4e29/image.png 'image.png') 特定算子测试: ![image.png](https://raw.gitcode.com/user-images/assets/7623225/c9cf16fc-0430-4be4-a925-771c3749cc4a/image.png 'image.png') Makefile cmake测试: ![image.png](https://raw.gitcode.com/user-images/assets/7623225/b5181d8c-586f-4d9d-ae82-0e4ab5a7978d/image.png 'image.png') 流水线CI日志: ![image.png](https://raw.gitcode.com/user-images/assets/7623225/bb760868-0c6e-4831-9551-0be564352a2b/image.png 'image.png') master分支的PR: https://gitcode.com/Ascend/triton-ascend/pull/995 See merge request: Ascend/triton-ascend!10534 个月前
feat(filecheck): add mlir filecheck and delete failed test cases temporarily 1 个月前
feat(filecheck): add mlir filecheck and delete failed test cases temporarily 1 个月前
fix(makefile): correct generalization_cases path for tests Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !1114 merge main/fix-makefile into main fix(makefile): correct generalization_cases path for tests Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ## Background The generalization_cases test directory has been relocated to third_party/ascend/unittest/generalization_cases in the main branch, but the corresponding path references in the Makefile were not updated synchronously. This inconsistency could lead to test execution failures. --- ## Changes Made 1. Align Makefile with actual directory structure 2. Optimize script comments in run_prtest.sh --- ## Checklist - [x] I am not making a trivial change, such as fixing a typo in a comment. - [x] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [x] I have run pre-commit run --from-ref origin/main --to-ref HEAD. - Select one of the following. - [ ] I have added tests. - /test for lit tests - /unittest for C++ tests - /python/test for end-to-end tests - [x] This PR does not need a test because it only fixes test directory configuration and script comments.. - Select one of the following. - [x] I have not added any lit tests. - [ ] The lit tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) See merge request: Ascend/triton-ascend!11144 个月前