Pull Request has been successfully merged by CANN-robot.
(Thank you for gravel1997's contribution.)Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| python/pypto_pro | ✅ gaoxiang618, congqiannan (2/2) | ✅ gaoxiang618 (1/1) |
| repo-cann/pypto | ✅ gaoxiang618, congqiannan (2/2) | ✅ gaoxiang618 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
gravel1997, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |





return (
"#include "acl/acl_prof.h"\n"
"// Weak: a toolkit without it links to null and we report unconditionally, as before.\n"
"extern "C" attribute((weak)) char *MsprofGetPath();\n",
" {\n"
" // Skip the ~1.5us push/pop pair unless a profiler is collecting; empty path means off.\n"
" const char *pyptoProfPath = (MsprofGetPath != nullptr) ? MsprofGetPath() : nullptr;\n"
" const bool pyptoProfOn =\n"
" (MsprofGetPath == nullptr) || (pyptoProfPath != nullptr && pyptoProfPath[0] != '\0');\n"
" // Outside the guard on purpose: libmsprofiler dereferences these pointers when the\n"
" // launch below is reported, so the storage has to outlive the <<<>>> line.\n"
" aclprofTensor pyptoProfTensors[] = {\n"
+ "\n".join(tensor_inits)
+ "\n };\n"
" aclprofTensorInfo pyptoProfInfo;\n"
" aclprofEventAttributes pyptoProfAttrs;\n"
" if (pyptoProfOn) {\n"
" pyptoProfInfo.opNameId = aclprofStr2Id("" + op_name + "");\n"
" pyptoProfInfo.opTypeId = aclprofStr2Id("PyPTO");\n"
" pyptoProfInfo.resv = 0;\n"
f" pyptoProfInfo.tensorNum = {len(tensor_inits)};\n"
" pyptoProfInfo.kernelType = 0;\n"
" pyptoProfInfo.blockNums = blockDim;\n"
" pyptoProfInfo.stream = stream;\n"
" pyptoProfInfo.tensors = pyptoProfTensors;\n"
" pyptoProfAttrs.version = 1;\n"
" pyptoProfAttrs.size = sizeof(pyptoProfAttrs.message);\n"
" pyptoProfAttrs.messageType = 0;\n"
" pyptoProfAttrs.message.tensorInfo = &pyptoProfInfo;\n"
" (void)aclprofRangePushEx(&pyptoProfAttrs);\n"
" }\n",
" if (pyptoProfOn) {\n"
" (void)aclprofRangePop();\n"
" }\n"
" }\n",
)


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


store和store_tile都要考虑


/lgtm
/approve


对于make_tensor场景或者赋值场景会有别名,需要在parser的时候记录一下


/lgtm


feat(pro): report tensor shape via aclprof range in the JIT launcher
Related Issue: #3299