| Files | Last commit | Last update |
|---|---|---|
feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !5599 merge v3_02_compile into master feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. First functional piece of the exported custom-op subsystem: everything downstream needs a way to recover a kernel's source and to compile it under a stable contract. **API surface map for this whole series — every def with its signature, introducing PR and callers:** https://claude.ai/code/artifact/a42e70ca-5cf9-4a67-8eb3-b7d3c8e17f1a Changes: - Add kernel-source introspection for decorated kernel functions: source recovery, annotation-span editing, scope classification, and the authoring helpers that read a DIRECT kernel's declared shape/dtype constants and classify a factory's signature - Define the runtime compile contract: CompileEntry(jit_kernel=… | factory=…, num_inputs=, num_outputs=, factory_signature=), called as entry(shapes, dtypes, attrs, soc_version) -> compiled-kernel path, result cached per key. Construction accepts exactly one kernel form and rejects an unknown factory_signature or a non-positive input/output count; each call requires soc_version and checks the shape/dtype count against num_inputs - infer_shape / infer_dtype are read/write properties, rejecting a non-callable at assignment rather than deep in dispatch; without a hook every output takes the first input's shape and dtype - Enforce author-declared annotations at compile: a pinned dtype that disagrees with the runtime dtype raises, a pinned shape warns - Wire build_kernel through the frontend parser (single-object contract stated in its error), register the package in pyproject.toml - Add the kernel compile samples and the unit tests over the contract, the declared annotations and the warning paths Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!5599 | 2 months ago | |
feat(pro): direction-aware tensor shape profiling via pl.Input/pl.Output annotation markers Co-authored-by: gravel1997<shili19@huawei.com> Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !6306 merge jit_profilling_attempt into master feat(pro): direction-aware tensor shape profiling via pl.Input/pl.Output annotation markers Created-by: gravel1997 Commit-by: gravel1997;gaoxiang Merged-by: cann-robot Description: feat(pro): direction-aware tensor shape profiling via pl.Input/pl.Output annotation markers Related Issue: [#3299](https://gitcode.com/cann/pypto/issues/3299) See merge request: cann/pypto!6306 | 2 months ago | |
fix(pypto-pro): lower loop target and classify tuple Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6261 merge master into master fix(pypto-pro): lower loop target and classify tuple Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: 1. add lower for loop target 2. classify tuple to tuple, named tuple, struct in parser 3. add doc for astype interface See merge request: cann/pypto!6261 | 2 months ago | |
test(machine): add aclgraph ST for dynamic cell-match pool H2D reset Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !6310 merge add_st into master test(machine): add aclgraph ST for dynamic cell-match pool H2D reset Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 增加aclgraph模式下的 H2D 的st See merge request: cann/pypto!6310 | 2 months ago | |
Initial commit | 10 months ago | |
fix(docs): Correct install guidance and README documentation center description Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !6147 merge doc_master into master fix(docs): Correct install guidance and README documentation center description Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 安装指引对齐实际流程:统一导向 build_ci.py + run 包,并补齐自定义 CANN 路径下的安装参数说明,避免首次安装失败。 README 文档中心描述纠错:去掉不存在的贡献指南,突出调试调优工具。 See merge request: cann/pypto!6147 | 2 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 10 months ago | ||
| 2 months ago |