Open
chore: isfinite 样例加一个空行 #7338
zhugexun_sjtuAdd on 13 days ago
chore: isfinite 样例加一个空行 #7338
Open
zhugexun_sjtuAdd on 13 days ago
zhugexun_sjtu
zhugexun_sjtuCollaborators
13 days ago

改动内容

examples/01_simd_cpp_api/04_advanced_api/10_math/isfinite/isfinite.asc 在 aclInit 与设备/流初始化之间补一个空行,与同一函数里其余按逻辑块分隔的写法保持一致。纯格式改动,一行,无语义变化。

用途

本 PR 同时用于在 !7332 合入后验证新的 presmoke 流水线。

选择改 examples/ 下的 非 .md 文件是必要的,不是随意挑的。按 scripts/util/parse_changed_files.py 的分类规则:

skip_keywords = [".md", "OWNERS", "LICENSE", "classify_rule.yaml", "docs"]
pkg_keywords  = ["examples"]   # 子串匹配,skip 优先
PR 改什么 CI_ACTION 后果
只改 .md(哪怕在 examples/ 下) SKIP build.sh exit 200 不出包 → compile.sh 兜底 touch 出一个空 .run → presmoke 下到 0 字节 → exit 0 静默通过,一个用例都不跑
examples/ 下非 .md PKG 走 build_package,真出包,presmoke 真跑
非 examples/ 的源码 COMPILE 全量编译

已用仓内脚本实测本 PR 的分类结果为 PKG。

另外确认过 run_presmoke.sh 不读 pr_filelist —— --exact-filter 列表来自 schedule 的分片文件,所以 presmoke 跑的是全量用例集,与本 PR 改了哪个样例无关。

合入与否不影响功能,如评审认为不必要可直接关闭。

likedislike
Merge blocked
zhugexun_sjtuzhugexun_sjtuCollaborators
13 days ago Created pull request, commit 240cbbc0
atomgit-bot
atomgit-bot
13 days ago Comments:

变更摘要

本 PR 仅对 examples/01_simd_cpp_api/04_advanced_api/10_math/isfinite/isfinite.asc 做格式层面的调整:在 main 函数的 aclInit(nullptr) 调用与后续设备、流初始化之间插入一个空行,使代码按逻辑块分隔的风格与同一函数中的其他部分保持一致。该改动不涉及任何接口、数据结构或执行语义的变化。按 PR 说明,此改动同时用于验证新 presmoke 流水线在 examples/ 目录下非 .md 文件被归类为 PKG 时的出包与执行路径。

主要改动

  • 空行插入位置:在 main 函数中 aclInit(nullptr) 之后、int32_t deviceId = 0; 与 aclrtSetDevice(deviceId)、aclrtStream stream = nullptr; 之前新增一个空行,将初始化调用与设备/流初始化在视觉上分为两个逻辑块。
  • 纯格式调整:该文件仅新增 1 行空白,aclInit、aclrtSetDevice 等接口调用顺序与参数均未变化,无任何行为或语义影响。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
13 days ago Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
13 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
13 days ago Comments:

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

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
examples ❌ (0/2)(You can also ask: chentianyu19, changxianyu, XuebinYang, louyuxuan, hujiawen_kaven) ❌ (0/1)(You can also ask: YANXI_ZHAO, munanhw, ai_xin, changxianyu, 黄金华)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

xun_zhuge, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
46 messages are collapsed here。 See more
CANN-robot
CANN-robotCollaborators
12 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
12 days ago Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
12 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
12 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
12 days ago Added label: ci-pipeline-passed