| Files | Last commit | Last update |
|---|---|---|
新增位运算、整数点积、64 位原子操作和小向量构造接口 Co-authored-by: baixueyan<baixy2@mails.neu.edu.cn> # message auto-generated for no-merge-commit merge: !7264 merge dev4 into master 新增位运算、整数点积、64 位原子操作和小向量构造接口 Created-by: gcw_1m54gGxh Commit-by: baixueyan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增位运算、整数点积、64 位原子操作和小向量构造接口 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1980 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 修改以下文件: docs/zh/api/README.md docs/zh/api/SIMT-API/SIMD_SIMT_hybrid_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/SIMT_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_add.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_and.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_max.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_min.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_or.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_xor.md docs/zh/api/SIMT-API/math_functions/float_math_functions/float_math_functions.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/integer_math_functions.md impl/simt_api/device_atomic_functions_impl.h impl/simt_api/device_functions_impl.h impl/simt_api/math_functions_impl.h impl/simt_api/vector_functions_impl.h include/simt_api/device_atomic_functions.h include/simt_api/device_functions.h include/simt_api/math_functions.h include/simt_api/vector_functions.h 新增以下文件: docs/zh/api/SIMT-API/math_functions/float_math_functions/__fmaf_ieee_rn.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_hi.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_lo.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp4a.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_l.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_lc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_r.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_rc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap16.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap32.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap64.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7264 | 9 days ago | |
新增位运算、整数点积、64 位原子操作和小向量构造接口 Co-authored-by: baixueyan<baixy2@mails.neu.edu.cn> # message auto-generated for no-merge-commit merge: !7264 merge dev4 into master 新增位运算、整数点积、64 位原子操作和小向量构造接口 Created-by: gcw_1m54gGxh Commit-by: baixueyan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增位运算、整数点积、64 位原子操作和小向量构造接口 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1980 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 修改以下文件: docs/zh/api/README.md docs/zh/api/SIMT-API/SIMD_SIMT_hybrid_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/SIMT_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_add.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_and.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_max.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_min.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_or.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_xor.md docs/zh/api/SIMT-API/math_functions/float_math_functions/float_math_functions.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/integer_math_functions.md impl/simt_api/device_atomic_functions_impl.h impl/simt_api/device_functions_impl.h impl/simt_api/math_functions_impl.h impl/simt_api/vector_functions_impl.h include/simt_api/device_atomic_functions.h include/simt_api/device_functions.h include/simt_api/math_functions.h include/simt_api/vector_functions.h 新增以下文件: docs/zh/api/SIMT-API/math_functions/float_math_functions/__fmaf_ieee_rn.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_hi.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_lo.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp4a.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_l.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_lc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_r.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_rc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap16.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap32.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap64.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7264 | 9 days ago | |
SIMT资料易用性整改 Co-authored-by: shaonaite<shaonaite@huawei.com> # message auto-generated for no-merge-commit merge: !7405 merge master into master SIMT资料易用性整改 Created-by: shaonaite Commit-by: shaonaite Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> SIMT资料易用性整改 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7405 | 14 days ago | |
docs: 修复 half/bfloat16 转换示例越界判断 Co-authored-by: lishangfan<lishangfan@h-partners.com> # message auto-generated for no-merge-commit merge: !6873 merge master into master docs: 修复 half/bfloat16 转换示例越界判断 Created-by: ruoshuisixue Commit-by: lishangfan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 修复 half 与 bfloat16 精度转换类接口文档中的线程索引越界判断。示例注释已经说明线程索引等于输入长度(或 half2/bfloat16x2 对应的半长度)时应停止处理,但原示例使用 ">" 判断,导致最后一个合法线程被跳过。本 PR 将相关判断统一修正为 ">=",并同步更新 __aicore__ 与 __simt_vf__ 两类示例。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1856 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 本 PR 仅修改中文 API 文档中的示例代码,未修改运行时代码和测试用例,未执行 NPI/NPU 二级冒烟或算子泛化测试。已人工核对每个变更文件的 diff,确认仅调整线程索引边界判断,且 __aicore__ 与 __simt_vf__ 两类示例保持一致。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> - 更新 25 个 docs/zh/api/SIMT-API/math_functions/ 下的 half/bfloat16 精度转换接口文档示例。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6873 | 1 month ago | |
docs(address): add measured IO examples Co-authored-by: lishangfan<lishangfan@h-partners.com> # message auto-generated for no-merge-commit merge: !6731 merge address_sapce into master docs(address): add measured IO examples Created-by: ruoshuisixue Commit-by: lishangfan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 为 SIMT 地址空间相关 API 文档补充上板实测的输入输出示例,共更新 9 个 Markdown 文件,覆盖 docs/zh/api/SIMT-API/ 下两类接口: - 地址空间转换函数:__cvta_generic_to_global、__cvta_generic_to_local、__cvta_generic_to_ubuf、__cvta_global_to_generic、__cvta_local_to_generic、__cvta_ubuf_to_generic。 - 地址空间判断函数:__isGlobal、__isLocal、__isUbuf。 每个文档均在现有调用示例后新增统一的“输入输出示例如下”文本块,展示典型输入数据以及地址转换、地址判断接口对应的实际输出结果。转换类示例展示 Global Memory 偏移量、Local 栈偏移量或 UB 地址值等输出;判断类示例展示对指定地址空间的判定结果。 本 PR 仅新增文档示例,不修改 API 定义、示例代码逻辑或构建配置。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1856 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 本 PR 仅修改 Markdown 文档,不涉及算子实现、示例代码执行逻辑或构建配置,因此无需执行二级冒烟、算子泛化等运行测试。 已完成的文档校验: - 确认变更范围:9 个文件全部位于 address_space_conversion_functions 和 address_space_predicate_functions 目录,每个文件新增一个输入输出示例块。 - 检查 Markdown 结构:新增提示语、空行、 `text 代码围栏和结尾围栏完整,9 个示例块均闭合。 - 校验示例格式:标签使用半角冒号,多个数值使用英文逗号加空格分隔。 - 校验输入输出形态:转换类示例按 src/addr_val 与实际地址输出或 result 对应展示;判断类示例的 x 与 result 逐项对应。 - 示例数据均来自 NPU 上板实测,未改动接口行为。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了 docs/zh/api/SIMT-API/address_space_conversion_functions/ 下 6 个地址转换 API 文档,以及 docs/zh/api/SIMT-API/address_space_predicate_functions/ 下 3 个地址判断 API 文档,为其补充实测输入输出示例。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6731 | 1 month ago | |
新增位运算、整数点积、64 位原子操作和小向量构造接口 Co-authored-by: baixueyan<baixy2@mails.neu.edu.cn> # message auto-generated for no-merge-commit merge: !7264 merge dev4 into master 新增位运算、整数点积、64 位原子操作和小向量构造接口 Created-by: gcw_1m54gGxh Commit-by: baixueyan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增位运算、整数点积、64 位原子操作和小向量构造接口 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1980 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 修改以下文件: docs/zh/api/README.md docs/zh/api/SIMT-API/SIMD_SIMT_hybrid_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/SIMT_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_add.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_and.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_max.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_min.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_or.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_xor.md docs/zh/api/SIMT-API/math_functions/float_math_functions/float_math_functions.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/integer_math_functions.md impl/simt_api/device_atomic_functions_impl.h impl/simt_api/device_functions_impl.h impl/simt_api/math_functions_impl.h impl/simt_api/vector_functions_impl.h include/simt_api/device_atomic_functions.h include/simt_api/device_functions.h include/simt_api/math_functions.h include/simt_api/vector_functions.h 新增以下文件: docs/zh/api/SIMT-API/math_functions/float_math_functions/__fmaf_ieee_rn.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_hi.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_lo.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp4a.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_l.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_lc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_r.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_rc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap16.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap32.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap64.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7264 | 9 days ago | |
docs(cooperative-groups): add measured IO examples Co-authored-by: lishangfan<lishangfan@h-partners.com> # message auto-generated for no-merge-commit merge: !6734 merge cooperative_groups into master docs(cooperative-groups): add measured IO examples Created-by: ruoshuisixue Commit-by: lishangfan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 为 SIMT Cooperative Groups 相关 API 文档补充上板实测的输入输出示例,共更新 56 个 Markdown 文件,全部位于 docs/zh/api/SIMT-API/cooperative_groups/ 目录,覆盖以下接口类别: - 顶层分组与划分接口:binary_partition、tiled_partition、sync。 - coalesced_group:构造、同步、线程编号、组大小、元组信息、投票以及 Shuffle 接口。 - grid_group:构造、合法性、Block/Grid 编号与维度、线程数量、组大小、同步和线程编号接口。 - thread_block:构造、同步、线程编号、线程索引、组索引、维度和线程数量接口。 - thread_block_tile:构造、同步、线程编号、组大小、元组信息、投票以及 Shuffle 接口。 - thread_group:构造、类型、同步、线程编号、组大小和线程数量接口。 每个文档均在现有调用示例后新增统一的“输入输出示例如下”文本块,展示分组、线程编号、组属性、同步、投票或 Shuffle 操作对应的实际输出;对于按线程逐项输出的接口,结果按线程顺序列出,便于直接理解接口语义和执行结果。 本 PR 仅新增文档示例,不修改 API 定义、示例代码逻辑或构建配置。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1856 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 本 PR 仅修改 Markdown 文档,不涉及算子实现、示例代码执行逻辑或构建配置,因此无需执行二级冒烟、算子泛化等运行测试。 已完成的文档校验: - 确认变更范围:56 个文件全部位于 docs/zh/api/SIMT-API/cooperative_groups/ 目录,每个文件新增一个输入输出示例块。 - 检查 Markdown 结构:新增提示语、空行、 `text 代码围栏和结尾围栏完整,56 个示例块均闭合。 - 校验示例格式:标签使用半角冒号,多个数值使用英文逗号加空格分隔。 - 校验输入输出形态:输入与输出数量按线程/元素逐项对应;无显式输入的接口按实际函数形态仅展示 result。 - 示例数据均来自 NPU 上板实测,未改动接口行为。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了 docs/zh/api/SIMT-API/cooperative_groups/ 下 56 个 API 文档,为顶层分组与划分、coalesced_group、grid_group、thread_block、thread_block_tile 和 thread_group 相关接口补充实测输入输出示例。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6734 | 1 month ago | |
新增位运算、整数点积、64 位原子操作和小向量构造接口 Co-authored-by: baixueyan<baixy2@mails.neu.edu.cn> # message auto-generated for no-merge-commit merge: !7264 merge dev4 into master 新增位运算、整数点积、64 位原子操作和小向量构造接口 Created-by: gcw_1m54gGxh Commit-by: baixueyan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增位运算、整数点积、64 位原子操作和小向量构造接口 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1980 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 修改以下文件: docs/zh/api/README.md docs/zh/api/SIMT-API/SIMD_SIMT_hybrid_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/SIMT_programming_intro/extended_syntax/builtin_data_types.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_add.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_and.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_max.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_min.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_or.md docs/zh/api/SIMT-API/atomic_operations/asc_atomic_xor.md docs/zh/api/SIMT-API/math_functions/float_math_functions/float_math_functions.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/integer_math_functions.md impl/simt_api/device_atomic_functions_impl.h impl/simt_api/device_functions_impl.h impl/simt_api/math_functions_impl.h impl/simt_api/vector_functions_impl.h include/simt_api/device_atomic_functions.h include/simt_api/device_functions.h include/simt_api/math_functions.h include/simt_api/vector_functions.h 新增以下文件: docs/zh/api/SIMT-API/math_functions/float_math_functions/__fmaf_ieee_rn.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_hi.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp2a_lo.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__dp4a.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_l.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_lc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_r.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/__funnelshift_rc.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap16.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap32.md docs/zh/api/SIMT-API/math_functions/integer_math_functions/asc_bswap64.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7264 | 9 days ago | |
docs(simt): 补 hello_world 入门注释与 cache modifier 家族选型说明 Co-authored-by: qixingkai<qixingkai@huawei.com> # message auto-generated for no-merge-commit merge: !7399 merge simt-touchpoint-fix-20261112 into master docs(simt): 补 hello_world 入门注释与 cache modifier 家族选型说明 Created-by: qixingkai Commit-by: qixingkai Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 针对 SIMT 触点易用性评测中 2 条文档/样例质量问题做纯增量修复(纯注释追加,0 逻辑变更): 1. **入门样例零注释**: hello_world_simt/hello_world.asc 补逐段注释——__global__修饰符含义、threadIdx/blockIdx/blockDim/gridDim四个内置变量、<<<blocks, threads, dyn_ubuf_size, stream>>>四个执行配置参数含义、aclrtSynchronizeDevice同步等待时机。 2. **cache modifier 家族示例缺选型说明**:asc_ldca.md/asc_ldcg.md/asc_stcg.md/asc_stwt.md四页的SIMT与混合编程两场景示例,在API调用处各补一段本接口缓存行为与选型注释(何时ldca vs ldcg、何时stcg vs stwt)。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 无关联Issue。 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> - hello_world.asc于Ascend 950PR(dav-3510)真机构建运行,输出2块×3行共6行,与改前行为一致(零逻辑变更) - 本地pre-commit全链路通过:clang-format、codespell、OAT合规、markdown-link-check(4480文件) ## 文档更新 <!--如果这个PR包含文档的更新的话,请在这里指出。例如:更新了README.md文件。--> - docs/zh/api/SIMT-API/memory_access_functions/asc_ldca.md、asc_ldcg.md、asc_stcg.md、asc_stwt.md - examples/03_simt_api/00_introduction/00_quickstart/hello_world_simt/hello_world.asc(仅注释) ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!7399 | 14 days ago | |
docs(memory): add measured IO examples Co-authored-by: lishangfan<lishangfan@h-partners.com> # message auto-generated for no-merge-commit merge: !6722 merge memory_sync into master docs(memory): add measured IO examples Created-by: ruoshuisixue Commit-by: lishangfan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 为 SIMT 内存访问、内存栅栏与同步相关 API 文档补充上板实测的输入输出示例,共更新 10 个 Markdown 文件,覆盖三类接口: - 内存访问函数: asc_dcci_entire、asc_dcci_single、asc_ldca、asc_ldcg、asc_nop、asc_stcg、asc_stwt。 - 内存栅栏函数:asc_threadfence、asc_threadfence_block。 - 线程块同步接口:asc_syncthreads。 每个文档均在现有调用示例后新增统一的“输入输出示例如下”文本块,展示典型输入数据、标志位状态或同步前数据,以及接口调用后的实际输出结果;asc_ldca/asc_ldcg/asc_stcg/asc_stwt 使用 half 数据展示读写结果,DCC invalidate 与栅栏/同步类接口则展示标志位、数据和最终结果之间的关系。 同时,asc_dcci_entire 和 asc_dcci_single 文档中的两个示例均将 while (data[0] != 1) 调整为 while (*(volatile uint32_t *)data != 1),确保轮询标志位时每次都从内存读取最新值,避免编译器优化或缓存导致示例行为不符合预期。 本 PR 仅更新文档与文档内示例代码,不修改 API 实现、测试工程或构建配置。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/1856 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 本 PR 仅修改 Markdown 文档与文档内示例代码,不涉及算子实现、测试工程或构建配置,因此无需执行二级冒烟、算子泛化等运行测试。 已完成的文档校验: - 确认变更范围:10 个文件分别位于 memory_access_functions、sync_and_memory_fence/memory_fence 和 sync_and_memory_fence/sync_interface 目录,每个文件新增一个输入输出示例块。 - 检查示例代码调整:asc_dcci_entire 和 asc_dcci_single 中共有 4 处标志位轮询改为 volatile 读取,其余文档未修改示例代码。 - 检查 Markdown 结构:新增提示语、空行、 `text 代码围栏和结尾围栏完整,10 个示例块均闭合。 - 校验示例格式:标签使用半角冒号,多个数值使用英文逗号加空格分隔,省略输出使用 … 保持一致。 - 校验输入输出形态:读写类示例的 x/val 与 result 逐项对应;同步与栅栏类示例按 data、flag、result 展示状态变化。 - 新增示例数据均来自 NPU 上板实测,asc_dcci_entire、asc_dcci_single 的 volatile 轮询示例已验证能读到最新标志位并得到正确结果。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了 docs/zh/api/SIMT-API/memory_access_functions/ 下 7 个内存访问 API 文档、docs/zh/api/SIMT-API/sync_and_memory_fence/memory_fence/ 下 2 个内存栅栏 API 文档,以及 docs/zh/api/SIMT-API/sync_and_memory_fence/sync_interface/asc_syncthreads.md,为其补充实测输入输出示例;并修正 DCC invalidate 两个示例中的标志位轮询读取方式。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6722 | 1 month ago | |
refactor(docs): 重命名 SIMT-API/AI-CPU-API/Utils-API/附录 目录及文件为英文小写下划线 Co-authored-by: munan<munan@huawei.com> # message auto-generated for no-merge-commit merge: !4866 merge master into master refactor(docs): 重命名 SIMT-API/AI-CPU-API/Utils-API/附录 目录及文件为英文小写下划线 Created-by: munanhw Commit-by: munan Merged-by: cann-robot Description: ## 描述 refactor(docs): 重命名 SIMT-API/AI-CPU-API/Utils-API/附录 目录及文件为英文小写下划线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4866 | 3 months ago | |
同步ub和kernel Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !5145 merge br_refactor_kernel_ub_name into master 同步ub和kernel Created-by: haipingmao Commit-by: haipingmao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 统一资料中UB和核函数Kernel的称呼 - 在一篇文档中,第一次出现的地方使用Unified Buffer(UB),后续采用UB。 - 将核函数/Kernel/核函数Kernel等统一为:核函数(Kernel) ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> NA ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> compile ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> - docs/zh下所有文件信息 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5145 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 9 days ago | ||
| 9 days ago | ||
| 14 days ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 9 days ago | ||
| 1 month ago | ||
| 9 days ago | ||
| 14 days ago | ||
| 1 month ago | ||
| 3 months ago | ||
| 3 months ago |