| Files | Last commit | Last update |
|---|---|---|
fix(machine): Log macro replacement Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !1958 merge log into master fix(machine): Log macro replacement Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: host日志宏整改,ALOG_DEBUG_F -> MACHINE_LOGD See merge request: cann/pypto!1958 | 8 months ago | |
feat(dfx): Optimize print output for Compiler Monitor functionality. Co-authored-by: z00521416<zhangyongtao7@hisilicon.com> # message auto-generated for no-merge-commit merge: !1769 merge dfx_cloud into master feat(dfx): Optimize print output for Compiler Monitor functionality. Created-by: z00521416 Commit-by: z00521416 Merged-by: cann-robot Description: Optimize print output for Compiler Monitor functionality. See merge request: cann/pypto!1769 | 8 months ago | |
refactor(interface): Refactor assert and FUNCTION_LOGE_E. Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !1427 merge log into master refactor(interface): Refactor assert and FUNCTION_LOGE_E. Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Function错误码整改 See merge request: cann/pypto!1427 | 8 months ago | |
feat(IR): Add core infrastructure and IRNode base class for new IR Co-authored-by: guhuangxing<guhuangxing@hisilicon.com> # message auto-generated for no-merge-commit merge: !1538 merge new-pr1 into master feat(IR): Add core infrastructure and IRNode base class for new IR Created-by: guhuangxing Commit-by: guhuangxing Merged-by: cann-robot Description: Add the foundational core library and IRNode base class as the first step of the new IR system. This PR provides error handling, logging, data types, and the core IRNode hierarchy that all subsequent IR PRs depend on. Changes: - Add core utility headers: common.h (macros), dtype.h (data types), logging.h (logging system), any_cast.h (type-safe any cast) - Add error handling framework: error.h/error.cpp with InternalError, TypeError, and diagnostic infrastructure - Add stack trace support: backtrace.cpp via execinfo + addr2line - Add IR base types: span.h (source location), core.h (IRNode base class, ObjectKind enum), reflection/field_traits.h (field reflection traits) - Add ir/core.cpp with Span method implementations (ToString, IsValid, Unknown) - Add unit tests for all new components (5 test files) - Update CMakeLists.txt to include core/*.cpp and ir/*.cpp in build This is PR 1 of 6 in the new IR series. No external dependencies. Commits: - feat(ir): Add core infrastructure headers and implementations (16 files) - build(ir): Add core and ir source directories to tile_fwk_interface See merge request: cann/pypto!1538 | 8 months ago | |
feat(frontend): Pypto frontend support parallel loop Co-authored-by: HuangYuqian<huangyuqian2@huawei.com> # message auto-generated for no-merge-commit merge: !1765 merge parallel_loop_new into master feat(frontend): Pypto frontend support parallel loop Created-by: huangyuqian Commit-by: HuangYuqian Merged-by: cann-robot Description: Related Issue: https://gitcode.com/cann/pypto/issues/486 See merge request: cann/pypto!1765 | 8 months ago | |
feat(frontend): Add LaunchKernelTorch to support torch tensor input Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1104 merge refacter_entry into master feat(frontend): Add LaunchKernelTorch to support torch tensor input Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: feat(frontend): Add LaunchKernelTorch to support torch tensor input. Using dlpack to extract shape, device and data_ptr attributes from torch tensor See merge request: cann/pypto!1104 | 8 months ago | |
feat(interpreter): Adaptation to various reshape scenarios. Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !1764 merge reshape_fix into master feat(interpreter): Adaptation to various reshape scenarios. Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 目前Reshape有一下几种场景: 1. 标准场景:输入输出都由validshape,且size一致。则仅对validshape部分做reshape 2. 输入有validshape,但是输出没有指定validshape,则认为对整个tensor做reshape,即带脏数据进行reshape,考虑到前端没有禁止这种写法,精度工具也放开 3. 输入输出的raw不一致,但是logicalTensor的shape一致:只要validshape不大于raw,则放开,精度工具内部会对小的raw做padding 4. 输出有validshape,但是输入没有,认为是一个类似于view的行为,前端不禁止,也放开 See merge request: cann/pypto!1764 | 8 months ago | |
feat(IR): Add IR core type system - type/expr/stmt/function/program Co-authored-by: guhuangxing<guhuangxing@hisilicon.com> # message auto-generated for no-merge-commit merge: !1553 merge new-pr2 into master feat(IR): Add IR core type system - type/expr/stmt/function/program Created-by: guhuangxing Commit-by: guhuangxing Merged-by: cann-robot Description: Add the complete IR type hierarchy, expression/statement nodes, function and program containers, and kind_traits for type dispatch. Headers (10): - ir/type.h: type system (ScalarType, TensorType, ShapedType, TupleType) - ir/expr.h: expression nodes (Var, Op, Call, MakeTuple, GlobalVar, etc.) - ir/scalar_expr.h: scalar expression node definitions (ConstInt, ConstFloat, BinaryExpr, UnaryExpr) - ir/scalar_expr_ops.h: higher-level scalar expression construction functions (Make*, type promotion helpers) - ir/stmt.h: statement nodes (AssignStmt, EvalStmt, ForStmt, IfStmt, SeqStmt, OpStmts) - ir/function.h: function definition container - ir/program.h: program container with GlobalVar-Function mapping - ir/memref.h: memory reference type with MemorySpace enum - ir/pipe.h: Pipe enum definition - ir/kind_traits.h: IRNode kind traits for type dispatch (moved from PR3) - ir/reflection/field_visitor.h: field accessor for IR node reflection Source files (5): - ir/expr.cpp: MakeTuple and TupleGetItemExpr constructors - ir/type.cpp: ShapedType convenience constructor (int64_t shape) - ir/stmt.cpp: OpStmts constructor with statement validation - ir/memref.cpp: MemRef constructor and MemorySpaceToString - ir/program.cpp: Program constructor, GetFunction, GetGlobalVar Unit tests (10): - test_common, test_span_irnode, test_memref, test_expr, test_expr_basic - test_scalar_expr_basic, test_stmt, test_type, test_program - test_program_stmt_error Depends-on: PR1 (core infrastructure + IRNode base class) See merge request: cann/pypto!1553 | 8 months ago | |
feat(machine): AicorePrint enhance Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !1813 merge aicprint into master feat(machine): AicorePrint enhance Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: 1. 支持打印bf16/fp16变量 eg: AiCoreLogF(param->ctx, "ub_bf16[0]=%f\n", ((bfloat16\_t \_\_ubuf\_\_ *)ubTensor\_0.GetAddr())[0]); 2. 提供打印shape接口 eg: AiCorePrintShape(param->ctx, Shape4Dim(sym\_15\_dim\_0, sym\_15\_dim\_1, sym\_15\_dim\_2, sym\_15\_dim\_3)); 3. 提供打印gm tensor数据接口 eg: AiCorePrintGmTensor(param->ctx, (\_\_gm\_\_ float*)gmTensor\_0.GetAddr(), 8, 0); 4. 提供打印ub tensor接口 eg: AiCorePrintUbTensor(param->ctx, (bfloat16_t \_\_ubuf\_\_ *)ubTensor\_0.GetAddr(), 8, 0); See merge request: cann/pypto!1813 | 8 months ago | |
fix(Pass): Revise the tile expansion logic of index_add Co-authored-by: m00896683<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !1898 merge my_index_add into master fix(Pass): Revise the tile expansion logic of index_add Created-by: Catherie Commit-by: m00896683 Merged-by: cann-robot Description: fix(Pass): Revise the tile expansion logic of index_add https://gitcode.com/cann/pypto/issues/600 See merge request: cann/pypto!1898 | 8 months ago | |
feat(interface): Add plugin framework and codegensrc plugin Co-authored-by: yinjie27<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !456 merge ircodegen.plugin into master feat(interface): Add plugin framework and codegensrc plugin Created-by: yinjie27_ Commit-by: yinjie27 Merged-by: cann-robot Description: Add plugin framework and codegensrc plugin See merge request: cann/pypto!456 | 10 months ago | |
fix(interface): Delay recycle of tensor slot Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !1911 merge fix/slot into master fix(interface): Delay recycle of tensor slot Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: each tensor will create a tensor slot, the information need be free. slot of incast/outcast will be used during end function, while the tensor may be deleted earlier in the following case with pypto.function("main", a, b, c): a = b + 1 Inorder to handle this, slot will be added to recycle list during recording otherwise it will be deleted immediately. the recycle list will be cleared after the end function. Related Issue: #873 See merge request: cann/pypto!1911 | 8 months ago | |
Initial commit | 10 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 | |
fix(interface): Delay recycle of tensor slot Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !1911 merge fix/slot into master fix(interface): Delay recycle of tensor slot Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: each tensor will create a tensor slot, the information need be free. slot of incast/outcast will be used during end function, while the tensor may be deleted earlier in the following case with pypto.function("main", a, b, c): a = b + 1 Inorder to handle this, slot will be added to recycle list during recording otherwise it will be deleted immediately. the recycle list will be cleared after the end function. Related Issue: #873 See merge request: cann/pypto!1911 | 8 months ago | |
fix(operation): Fix possible not reset scenario. Co-authored-by: wang-zhiyue2<wangzhiyue2@huawei.com> # message auto-generated for no-merge-commit merge: !1941 merge tf32fixreset into master fix(operation): Fix possible not reset scenario. Created-by: wang-zhiyue2 Commit-by: wang-zhiyue2 Merged-by: cann-robot Description: 修复其他因素没有复位TF32模式导致的精度问题: 1. 修改cube_pto处理逻辑,在进行matmul计算前,先对TF32计算模式进行reset See merge request: cann/pypto!1941 | 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 | |
feat(IR): Add core infrastructure and IRNode base class for new IR Co-authored-by: guhuangxing<guhuangxing@hisilicon.com> # message auto-generated for no-merge-commit merge: !1538 merge new-pr1 into master feat(IR): Add core infrastructure and IRNode base class for new IR Created-by: guhuangxing Commit-by: guhuangxing Merged-by: cann-robot Description: Add the foundational core library and IRNode base class as the first step of the new IR system. This PR provides error handling, logging, data types, and the core IRNode hierarchy that all subsequent IR PRs depend on. Changes: - Add core utility headers: common.h (macros), dtype.h (data types), logging.h (logging system), any_cast.h (type-safe any cast) - Add error handling framework: error.h/error.cpp with InternalError, TypeError, and diagnostic infrastructure - Add stack trace support: backtrace.cpp via execinfo + addr2line - Add IR base types: span.h (source location), core.h (IRNode base class, ObjectKind enum), reflection/field_traits.h (field reflection traits) - Add ir/core.cpp with Span method implementations (ToString, IsValid, Unknown) - Add unit tests for all new components (5 test files) - Update CMakeLists.txt to include core/*.cpp and ir/*.cpp in build This is PR 1 of 6 in the new IR series. No external dependencies. Commits: - feat(ir): Add core infrastructure headers and implementations (16 files) - build(ir): Add core and ir source directories to tile_fwk_interface See merge request: cann/pypto!1538 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago |