| fix(doc): fix doc issue Co-authored-by: kpxing<xingkaipeng@huawei.com> # message auto-generated for no-merge-commit merge: !697 merge master into master fix(doc): fix doc issue Created-by: kpxing Commit-by: kpxing Merged-by: ascend-robot Description: ### 相关的Issue [#248](https://gitcode.com/Ascend/triton-ascend/issues/248) [#247](https://gitcode.com/Ascend/triton-ascend/issues/247) [#244](https://gitcode.com/Ascend/triton-ascend/issues/244) ### 原因(目的、解决的问题等) 不涉及 ### 描述(做了什么,变更了什么) 修复doc相关issue ### 测试用例(新增、改动、可能影响的功能) 不涉及 See merge request: Ascend/triton-ascend!697 | 11 months ago |
| feat: add html documentation support for triton ascend **Changes:** - Add HTML documentation support for triton ascend - Refactor and format documentation - Add automatic rendering via GitHub Action **Next steps**: - API descriptions should be written into the source code and updated as the code is updated, so all triton APIs that differ from upstream triton need to be updated. | 1 year ago |
| feat(libdevice): support index_put op Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !838 merge index_put into master feat(libdevice): support index_put op Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为支持从统一缓冲区(Unified Buffer, UB)到全局内存(Global Memory, GM)的高效数据散射(Index Put)操作,实现按指定索引将数据精准写入目标张量,新增 libdevice.index_put 接口。TA 层在代码生成阶段会构造 func.call "triton_index_put" 调用,底层对接 SIMT 架构的模板实现,适配硬件级别的高效数据搬移需求,满足 2~5 维张量的索引写入场景。 ### 接口说明 index_put 接口用于将 UB 中的 value 张量,按照 UB 中的 index 索引,沿目标张量的指定维度 dim,写入到 GM 中的 ptr 目标张量。 #### 参数说明 | 参数名 | 类型 | 是否必填 | 说明 | | ------------ | ----------------- | ---- | ---------------------------------------- | | ptr | tl.tensor(指针类型) | 是 | 全局内存(GM)中的目标张量指针,数据将写入此张量 | | index | tl.tensor | 是 | 统一缓冲区(UB)中的索引张量,必须为 1D 整数张量 | | value | tl.tensor | 是 | 统一缓冲区(UB)中的待写入数据张量,支持 2~5 维 | | dim | int | 是 | 散射操作沿目标张量的维度,需满足0 ≤ dim < value.rank-1 | | dst_shape | Tuple[int] | 是 | 目标张量的完整形状,用于计算写入位置的全局偏移 | | dst_offset | Tuple[int] | 是 | 目标张量各维度的偏移量,用于定位写入区域在目标张量中的起始位置 | #### 约束与限制 * 维度一致性:ptr(目标张量)与 value(待写入张量)的秩(rank)必须相同。 * 数据类型限制:ptr 和 value 的数据类型仅支持 float16、bfloat16、float32 三种浮点类型。 * 索引张量约束:index 必须为整数类型张量,且index 固定为 1D 维度。 * 维度范围约束:value 仅支持 2~5 维张量;dim 需为有效维度(满足 0 ≤ dim < rank(value)-1),确保沿合法维度进行散射。 ## checklist <!-- [x] 表示选中 --> - [x] 是否通过本地IDE对代码进行静态检查 - [x] 是否通过本地IDE对代码进行格式化处理 - [x] 是否进行空指针校验 - [x] 是否进行返回值校验 - [x] 是否正确释放new/malloc申请的内存 - [x] 是否充分考虑接口的异常场景 - [x] 是否正确记录错误日志 See merge request: Ascend/triton-ascend!838 | 11 months ago |
| fix(sec): remove triton user in docker Co-authored-by: huafengchun<huafengchun@huawei.com> # message auto-generated for no-merge-commit merge: !744 merge master into master fix(sec): remove triton user in docker Created-by: huafengchun Commit-by: huafengchun Merged-by: ascend-robot Description: ## 描述 1. 解决安全扫描问题,避免在Dockerfile中添加无密码的普通用户 2. 添加CANN依赖的LD_LIBRARY_PATH环境变量 ## checklist <!-- [x] 表示选中 --> - [ ] 是否通过本地IDE对代码进行静态检查 - [ ] 是否通过本地IDE对代码进行格式化处理 - [ ] 是否进行空指针校验 - [ ] 是否进行返回值校验 - [ ] 是否正确释放new/malloc申请的内存 - [ ] 是否充分考虑接口的异常场景 - [ ] 是否正确记录错误日志 See merge request: Ascend/triton-ascend!744 | 11 months ago |
| fix(doc): associate_scan api doc | 10 months ago |
| feat(910_95): Add support for Ascend910_95 series Co-authored-by: zhang-chunli01<zhangchunli19@huawei.com> # message auto-generated for no-merge-commit merge: !687 merge 1104-sync-A5 into master feat(910_95): Add support for Ascend910_95 series Created-by: zhang-chunli01 Commit-by: zhang-chunli01 Merged-by: ascend-robot Description: ### 相关的Issue ### 原因(目的、解决的问题等) ### 描述(做了什么,变更了什么) ### 测试用例(新增、改动、可能影响的功能) See merge request: Ascend/triton-ascend!687 | 11 months ago |
| feat(third party): AscendNPU-IR standalone build adaption Co-authored-by: wcleungaj<leung.wing.chung@huawei.com> # message auto-generated for no-merge-commit merge: !570 merge ascend-npu-ir-adapation into master feat(third party): AscendNPU-IR standalone build adaption Created-by: wcleungaj Commit-by: wcleungaj Merged-by: ascend-robot Description: ### 相关的Issue ### 原因(目的、解决的问题等) ### 描述(做了什么,变更了什么) ### 测试用例(新增、改动、可能影响的功能) See merge request: Ascend/triton-ascend!570 | 1 year ago |
| feat(libdevice): support index_put op Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !838 merge index_put into master feat(libdevice): support index_put op Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为支持从统一缓冲区(Unified Buffer, UB)到全局内存(Global Memory, GM)的高效数据散射(Index Put)操作,实现按指定索引将数据精准写入目标张量,新增 libdevice.index_put 接口。TA 层在代码生成阶段会构造 func.call "triton_index_put" 调用,底层对接 SIMT 架构的模板实现,适配硬件级别的高效数据搬移需求,满足 2~5 维张量的索引写入场景。 ### 接口说明 index_put 接口用于将 UB 中的 value 张量,按照 UB 中的 index 索引,沿目标张量的指定维度 dim,写入到 GM 中的 ptr 目标张量。 #### 参数说明 | 参数名 | 类型 | 是否必填 | 说明 | | ------------ | ----------------- | ---- | ---------------------------------------- | | ptr | tl.tensor(指针类型) | 是 | 全局内存(GM)中的目标张量指针,数据将写入此张量 | | index | tl.tensor | 是 | 统一缓冲区(UB)中的索引张量,必须为 1D 整数张量 | | value | tl.tensor | 是 | 统一缓冲区(UB)中的待写入数据张量,支持 2~5 维 | | dim | int | 是 | 散射操作沿目标张量的维度,需满足0 ≤ dim < value.rank-1 | | dst_shape | Tuple[int] | 是 | 目标张量的完整形状,用于计算写入位置的全局偏移 | | dst_offset | Tuple[int] | 是 | 目标张量各维度的偏移量,用于定位写入区域在目标张量中的起始位置 | #### 约束与限制 * 维度一致性:ptr(目标张量)与 value(待写入张量)的秩(rank)必须相同。 * 数据类型限制:ptr 和 value 的数据类型仅支持 float16、bfloat16、float32 三种浮点类型。 * 索引张量约束:index 必须为整数类型张量,且index 固定为 1D 维度。 * 维度范围约束:value 仅支持 2~5 维张量;dim 需为有效维度(满足 0 ≤ dim < rank(value)-1),确保沿合法维度进行散射。 ## checklist <!-- [x] 表示选中 --> - [x] 是否通过本地IDE对代码进行静态检查 - [x] 是否通过本地IDE对代码进行格式化处理 - [x] 是否进行空指针校验 - [x] 是否进行返回值校验 - [x] 是否正确释放new/malloc申请的内存 - [x] 是否充分考虑接口的异常场景 - [x] 是否正确记录错误日志 See merge request: Ascend/triton-ascend!838 | 11 months ago |
| style: update .clang-format to adapt to Huawei standard | 1 year ago |
| feat(op): support make/load/store_tensor_descriptor | 1 year ago |
| fix(ci): set depth = 1 for submodule Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !588 merge fix-clone into master fix(ci): set depth = 1 for submodule Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ### 相关的Issue 无 ### 原因(目的、解决的问题等) 在当前的 CI 流程中,拉取 Triton-Ascend 仓库时,会递归更新子模块(包括 LLVM),这导致拉取过程过于缓慢。而在编译 Ascend NPU IR 时,LLVM 并不是必须的,因此可以优化此流程。 ### 描述(做了什么,变更了什么) * 删除了 --recursive 选项,避免递归拉取子模块。 * 同步设置 --depth 1,仅拉取子模块的第一层,而不递归拉取子模块的子模块,从而减少 CI 拉取时间【需在 CI 工程修改,不在仓库代码体现】。 * 删除已废弃的脚本文件: * 删除 scripts/build.sh 和 scripts/prepare_build.sh:这两个脚本为旧的 Gitee 构建流程脚本,现已不再使用。 * 删除 ascend/examples/generalization_cases/full_run.sh:目前不再使用此脚本进行测试。 ### 测试信息(新增、改动、可能影响的功能) 修改前:执行命令 git submodule sync && git submodule update --init --recursive,会递归拉取子模块及其子模块(例如 LLVM),导致拉取时间较长。  修改后:执行命令 git submodule sync && git submodule update --init --depth 1,只会拉取第一层子模块,而不会递归拉取子模块的子模块(例如 LLVM),如图所示:  See merge request: Ascend/triton-ascend!588 | 1 year ago |
| add online docs | 10 months ago |
| common cmake | 1 year ago |
| fix(copyright): add copyright headers and LICENSE to all files while retaining the copyright of the Triton community. Co-authored-by: wangzhanpeng5<wangzhanpeng5@huawei.com> | 1 year ago |
| fix(ci):keep dist when upload-pypi Co-authored-by: zhaijiahao<982539404@qq.com> # message auto-generated for no-merge-commit merge: !804 merge mlir into master fix(ci):keep dist when upload-pypi Created-by: leopold0801 Commit-by: zhaijiahao Merged-by: ascend-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## checklist <!-- [x] 表示选中 --> - [ ] 是否通过本地IDE对代码进行静态检查 - [ ] 是否通过本地IDE对代码进行格式化处理 - [ ] 是否进行空指针校验 - [ ] 是否进行返回值校验 - [ ] 是否正确释放new/malloc申请的内存 - [ ] 是否充分考虑接口的异常场景 - [ ] 是否正确记录错误日志 See merge request: Ascend/triton-ascend!804 | 11 months ago |
| update owners Co-authored-by: huchengbei<huqiao9@huawei.com> | 1 year ago |
| Initial commit | 1 year ago |
| docs:更新里程碑中特性更新情况 Signed-off-by: gymgit1 <guoyiming17@huawei.com> | 10 months ago |
| fix(doc): fix document issues Co-authored-by: fengrui<fengrui15@huawei.com> # message auto-generated for no-merge-commit merge: !696 merge fix-doc-issues into master fix(doc): fix document issues Created-by: fengrui886 Commit-by: fengrui Merged-by: ascend-robot Description: ### 相关的Issue ### 原因(目的、解决的问题等) ### 描述(做了什么,变更了什么) ### 测试用例(新增、改动、可能影响的功能) See merge request: Ascend/triton-ascend!696 | 11 months ago |
| feat(CI): add llvm and triton-ascend build scripts | 1 year ago |
| fix(setup): add pyproject.toml to use the modern way to setup | 1 year ago |
| fix(ut): set num_cube_core fixed value.. Co-authored-by: candyhong<1102229410@qq.com> # message auto-generated for no-merge-commit merge: !836 merge fix-ci into master fix(ut): set num_cube_core fixed value.. Created-by: candyhong Commit-by: candyhong Merged-by: ascend-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 主要修复CI机器中 ut 以下报错: 1. test_linearize.py 中调用 triton.runtime.driver, 概率发生进程限制报错: [PID: 17195] 2025-11-28-01:34:46.869.427 NN_Process_Count_Limit_Exceeded(E30003): The number of started NN processes exceeds the limit. -> 修复方案:避免在ut调用 triton.runtime.driver.active.get_current_device() 2. test_min_dim0.py 和 test_min_dim1.py 中 torch.min 算子在执行 int8 类型时,概率发生以下报错: RuntimeError: call aclnnMinDim failed, detail:[PID: 1404221] 2025-12-01-10:52:40.127.820 AclNN_Parameter_Error(EZ1001): Tensor self not implemented for DT_INT8, should be in dtype support list [DT_FLOAT,DT_FLOAT16,DT_INT64,DT_BOOL,DT_BFLOAT16,]. -> 修复方案:torch 标杆在 int8 类型时,先升到 int64 类型计算再恢复为 int8 2. test_max_dim0.py 和 test_max_dim1.py 中 torch.max 算子在执行 int8 类型时,概率发生以下报错: RuntimeError: call aclnnMaxDim failed, detail:[PID: 1471388] 2025-12-01-11:42:51.165.980 AclNN_Parameter_Error(EZ1001): Tensor self not implemented for DT_INT8, should be in dtype support list [DT_FLOAT,DT_FLOAT16,DT_INT64,DT_BOOL,DT_BFLOAT16,]. -> 修复方案:torch 标杆在 int8 类型时,先升到 int64 类型计算再恢复为 int8 ## checklist <!-- [x] 表示选中 --> - [ ] 是否通过本地IDE对代码进行静态检查 - [ ] 是否通过本地IDE对代码进行格式化处理 - [ ] 是否进行空指针校验 - [ ] 是否进行返回值校验 - [ ] 是否正确释放new/malloc申请的内存 - [ ] 是否充分考虑接口的异常场景 - [ ] 是否正确记录错误日志 See merge request: Ascend/triton-ascend!836 | 11 months ago |
| feat(ci): update ISSUE_TEMPLATE.zh-CN.md | 1 year ago |
| feat(dep):add runtime dependency pybind11 | 10 months ago |
| test(CI): Use makefile for building and testing | 1 year ago |