| Files | Last commit | Last update |
|---|---|---|
fix(machine): Support write file for tilefwk log Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !669 merge br_compiler into master fix(machine): Support write file for tilefwk log Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: ## 描述 tilefwk host 日志支持文件写入,当前内置日志模块默认输出方式是打屏,如果设置了ASCEND_PROCESS_LOG_PATH环境变量,则日志会输出到ASCEND_PROCESS_LOG_PATH目录下 1、感知环境变量ASCEND_PROCESS_LOG_PATH,用户设置了路径之后,会创建该目录,并且在该目录下创建plog和device-0目录,分别用于host和仿真日志的写入  日志限制:host/simulation分别限制10个文件,每个文件限制10m大小。 2、如何区分仿真和host日志,在tilefwk_log.h中判断SIMULATION_DEVIC是否定义来区分当前是host还是仿真日志 3、仿真日志:当前仿真日志主要两个地方会输出 - simulation组件,即cost_mode目录下的动态库。当前为相关动态库定义宏SIMULATION_DEVICE - machine的device代码在非device中运行的时候,会在device_log.h中定义宏SIMULATION_DEVICE 4、host日志:除了仿真日志之外的其他日志都认为是host日志 PS:当前在dlog侧新增了PYPTO的moduleId,考虑到社区的CANN未更新,当前的策略临时调整为全部使用内置log进行打印。 后期社区CANN包更新之后,在按照上述策略重新调整 5、删除TMP_LOG,原先在开启ENABLE_TMP_LOG的情况下,无论在host(包含仿真)还是device,都会把日志dump在/tmp目录下 修改为 host侧(包含仿真)的日志通过新增tilefwk_log输出,device侧只通过dlog输出。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!669 | 8 months ago | |
feat(dfx): Add errcode Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !1795 merge dev_err into master feat(dfx): Add errcode Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: Machine: 1. MACHINE_LOGE/DEV_ERROR/DEV_ASSERT添加错误码,2. dev_encode InitOperation超大函数拆分,3. 规范少量日志级别和内容 Distributed: 1. DEV_ERROR/DEV_ASSERT添加错误码,2. 添加distributed.md See merge request: cann/pypto!1795 | 8 months ago | |
Initial commit | 11 months ago | |
feat(machine): Remove code and test cases of static graph Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !1447 merge br_rm_static into master feat(machine): Remove code and test cases of static graph Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 删除和静态shape相关的代码以及测试用例 本次识别到的静态用例如下 OnBoardTest.test_cos_dim4_float16 (1890 ms) OnBoardTest.test_sin_dim2_float32 (1604 ms) OnBoardTest.test_unary_operation_16_16_64_64_tileop_exp (1544 ms) OnBoardTest.test_unary_operation_16_32_32_tileop_exp (1303 ms) OnBoardTest.test_unary_operation_32_32_tileop_exp (1260 ms) OnBoardTest.test_operation_ub_reshape (1416 ms) OnBoardTest.test_operation_gm_reshape (1309 ms) OnBoardTest.test_reshape_matmul_mul (1321 ms) OnBoardTest.test_operation_ub_reshape_3dimto2dim (1468 ms) OnBoardTest.test_unary_operation_32_32_tileop_sqrt (1269 ms) OnBoardTest.test_unary_operation_16_32_32_tileop_sqrt (1312 ms) OnBoardTest.test_unary_operation_16_16_64_64_tileop_sqrt (1560 ms) OnBoardTest.test_unary_operation_16_16_64_70_tileop_sqrt (1548 ms) OnBoardTest.test_unary_operation_32_32_tileop_reciprocal (1252 ms) OnBoardTest.test_unary_operation_16_32_32_tileop_reciprocal (1303 ms) OnBoardTest.test_unary_operation_16_16_64_64_tileop_reciprocal (1687 ms) OnBoardTest.test_query_states_bf16_b32_n32 (3257 ms) SoftmaxOnBoard.test_softmax_deepseek (2428 ms) RoPEOnBoardTest.test_operation_rope_deepseekv3 (1617 ms) RoPEOnBoardTest.test_operation_rope_v2_deepseekv3_b32 (2431 ms) RoPESubGraphOnBoardTest.test_operation_rope_subgraph_deepseekv3_bf16_2batch (2066 ms) RoPESubGraphOnBoardTest.test_operation_rope_subgraph_deepseekv3_bf16 (2097 ms) RoPESubGraphOnBoardTest.test_operation_rope_subgraph_deepseekv3_bf16_32batch (3645 ms) RoPESubGraphOnBoardTest.test_CD_bf16_32batch (4336 ms) RoPESubGraphOnBoardTest.test_CD_bf16_32batch_4k (4548 ms) TransposeTest.TestTranspose_ROPE_5D (1652 ms) TransposeTest.TestTranspose_MLA_3D_0 (1375 ms) TransposeTest.TestTranspose_MLA_3D_1 (1607 ms) TransposeTest.TestTranspose_MLA_4D_0 (1386 ms) TransposeTest.TestTranspose_MLA_4D_1 (1387 ms) TransposeTest.TestTranspose_MLA_4D_3 (1304 ms) TransposeTest.TestTranspose_MLA_4D_4 (1403 ms) TransposeTest.TestTranspose_MLA_4D_50 (1383 ms) TransposeTest.TestTranspose_MLA_4D_5 (1826 ms) TransposeTest.TestTranspose_MLA_4D_6 (1417 ms) TransposeTest.TestTranspose_MLA_3D_2 (1444 ms) TransposeTest.Test_Datamove_Nonalign_Dim3 (1350 ms) TransposeTest.Test_Datamove_Nonalign_Dim4 (1413 ms) QuantTest.Test_ScalarOp (1362 ms) QuantOnBoardTest.test_Quant_32_1_7168 (4777 ms) QuantOnBoardTest.test_Quant_Smooth_32_7168 (2719 ms) QuantOnBoardTest.test_Quant_32_7168 (2248 ms) QuantMMOnBoardTest.test_QuantMM_128_32_512_times_128_512_128_torch (8763 ms) ArgsortOnBoardTest.test_operation_tensor_64__argsort_moe (1436 ms) RmsNormTest.test_32_32_tileop_rmsnorm (1772 ms) RmsNormTest.test_2_32_32_tileop_rmsnorm (1731 ms) RmsNormTest.test_2_2_32_32_tileop_rmsnorm (1795 ms) RmsNormTest.test_32_1536_tileop_rmsnorm_fp16_realCase (1797 ms) RmsNormTest.test_32_1536_tileop_rmsnorm_gamma_fp16_realCase (1755 ms) SigmoidTest.test_32_32_tileop_sigmoid (1464 ms) SigmoidTest.test_32_256_tileop_sigmoid_realcase (1414 ms) See merge request: cann/pypto!1447 | 8 months ago |