| Files | Last commit | Last update |
|---|---|---|
Initial commit | 11 months ago | |
Initial commit | 11 months ago | |
feat(operator): Operator host log rectification Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !1699 merge master into master feat(operator): Operator host log rectification Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: 算子host测日志整改 See merge request: cann/pypto!1699 | 8 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
fix(pass): Fix multi_data_load issue Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !1512 merge assignmem into master fix(pass): Fix multi_data_load issue Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: 场景:使能大包搬运后,cube子图中含有ub操作,经排查发现误插UB至L1通路 解法:assign mem 识别该场景,修改为DDR到L1 See merge request: cann/pypto!1512 | 8 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(pass): NBufferMerge and L1CopyInReuse params optimization Co-authored-by: zhangxiangjie<zhangxiangjie5@huawei.com> # message auto-generated for no-merge-commit merge: !1198 merge feat-params-optimize into master feat(pass): NBufferMerge and L1CopyInReuse params optimization Created-by: zhangxiangjie Commit-by: zhangxiangjie Merged-by: cann-robot Description: 1. 使用setting信息推导合并模式,去掉vec_nbuffer_mode、cube_l1_reuse_mode、cube_nbuffer_mode模式参数配置 2. 对手动合并模式,如果没配置默认合并力度,根据并行度配置自动计算没有配置的同构子图的合并力度 See merge request: cann/pypto!1198 | 8 months ago | |
feat(operator): Operator host log rectification Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !1699 merge master into master feat(operator): Operator host log rectification Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: 算子host测日志整改 See merge request: cann/pypto!1699 | 8 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(operator): Operator host log rectification Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !1699 merge master into master feat(operator): Operator host log rectification Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: 算子host测日志整改 See merge request: cann/pypto!1699 | 8 months ago | |
feat(pass): NBufferMerge and L1CopyInReuse params optimization Co-authored-by: zhangxiangjie<zhangxiangjie5@huawei.com> # message auto-generated for no-merge-commit merge: !1198 merge feat-params-optimize into master feat(pass): NBufferMerge and L1CopyInReuse params optimization Created-by: zhangxiangjie Commit-by: zhangxiangjie Merged-by: cann-robot Description: 1. 使用setting信息推导合并模式,去掉vec_nbuffer_mode、cube_l1_reuse_mode、cube_nbuffer_mode模式参数配置 2. 对手动合并模式,如果没配置默认合并力度,根据并行度配置自动计算没有配置的同构子图的合并力度 See merge request: cann/pypto!1198 | 8 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
feat(machine): Add compile stage in host options Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !741 merge cs into master feat(machine): Add compile stage in host options Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 描述 新增编译模式,可以在编译阶段停止,不上板运行. host_options的配置项重置. 含义:控制编译执行的阶段 说明: ALL_COMPLETE: 无影响,正常编译与运行; TENSOR_GRAPH: 编译阶段,生成最终张量图后停止; TILE_GRAPH: 编译阶段,生成最终分片图后终止; EXECUTE_GRAPH: 编译阶段,生成最终执行图后终止; CODEGEN_INSTRUCTION: 编译阶段,生成指令代码后终止; CODEGEN_BINARY: 编译生成代码二进制后终止, 编译阶段结束。 取值范围: CompStage (ALL_COMPLETE/TENSOR_GRAPH/TILE_GRAPH/EXECUTE_GRAPH/CODEGEN_INSTRUCTION/CODEGEN_BINARY) 默认值: ALL_COMPLETE 更新所有相关的ST/UT用例. ## 测试 import os import pypto import torch def compile_stage(comp_stage): @pypto.jit( host_options={"compile_stage": comp_stage}, runtime_options={"run_mode": 0} ) def compile_func(a, b, c): pypto.set_vec_tile_shapes(4, 4) c[:] = a + b a = torch.ones((4, 4), dtype=torch.float32) * 2 b = torch.ones((4, 4), dtype=torch.float32) * 3 c = torch.ones((4, 4), dtype=torch.float32) input_a = pypto.from_torch(a, "a") input_b = pypto.from_torch(b, "b") output_c = pypto.from_torch(c, "c") compile_func(input_a, input_b, output_c) def test_all_compile_stages(): compile_stage(pypto.CompStage.TENSOR_GRAPH) compile_stage(pypto.CompStage.TILE_GRAPH) compile_stage(pypto.CompStage.EXECUTE_GRAPH) compile_stage(pypto.CompStage.CODEGEN_INSTRUCTION) compile_stage(pypto.CompStage.CODEGEN_BINARY) if __name__ == "__main__": test_all_compile_stages() ## 文档更新 更新了配置文件framework/src/interface/configs/tile_fwk_config_schema.json 更新了说明文档docs/api/config/pypto-set_host_options.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!741 | 9 months ago | |
fix(operation): Solving Performance Degradation of SFA Operator in Large-Packet Mode. Co-authored-by: chen-yongkang16<chenyongkang16@huawei.com> # message auto-generated for no-merge-commit merge: !1728 merge reset_db into master fix(operation): Solving Performance Degradation of SFA Operator in Large-Packet Mode. Created-by: chen-yongkang16 Commit-by: chen-yongkang16 Merged-by: cann-robot Description: 添加SFA算子非大包场景 See merge request: cann/pypto!1728 | 8 months ago | |
Initial commit | 11 months ago | |
fix(function): Add dtype check for assemble. Co-authored-by: z00471782<zhangjiarui6@huawei.com> # message auto-generated for no-merge-commit merge: !1663 merge master into master fix(function): Add dtype check for assemble. Created-by: blue_jan Commit-by: z00471782 Merged-by: cann-robot Description: 1. Add dtype check for assemble op, src and dest dtype must be the same 2. Remove some unused st tests Related Issue: #415 See merge request: cann/pypto!1663 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 11 months ago | ||
| 11 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 11 months ago | ||
| 8 months ago |