已合并
matmul: replace include guards with #pragma once in common headers #3501
chenqi317创建于 4月2日
matmul: replace include guards with #pragma once in common headers #3501
已合并
chenqi317创建于 4月2日
chenqi317成员
4月2日

描述

matmul/batch_mat_mul_v3/op_host/op_tiling/arch35/batch_matmul_v3_tiling_strategy.h
matmul/common/cmct/block/block_mmad_a8w8_fixpipe_quant.h
等头文件的 OP_HOST_BATCH_MATMUL_V3_TILING_STRATEGY_H 、BLOCK_MMAD_A8W8_FIXPIPE_QUANT_H等头文件宏较混乱,格式不统一
且容易冲突,因此改为使用#pragma once

关联的Issue

https://gitcode.com/cann/ops-nn/issues/2088

测试

UT,ST 网络用例验证通过

文档更新

不涉及

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chenqi317 的贡献)
Cchenqi317成员
4月2日 创建了 pull request,commit 68b0672b
CANN-robotCANN-robot成员
4月2日 添加了label:stat/needs-squash
CANN-robot
CANN-robot成员
4月2日 评论:

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


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
*/*/op_host/op_api/*.h fanqirui, wangyongguang (2/2) wangyongguang (1/1)
matmul sxb154714, fanqirui (2/2) fanqirui, sxb154714 (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
4月2日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
4月2日 将sxb154714,chaotang233,crystalhu,yangyang016,fanqirui,zhou-qilong,liubo75,tangweiwei2,wangzitao_leo,wangyongguang,zhang-wu设为评审人
CANN-robotCANN-robot成员
4月2日 将sxb154714,chaotang233,crystalhu,yangyang016,fanqirui,liubo75,tangweiwei2,wangzitao_leo,wangyongguang,zhang-wu设为审查人
CANN-robot
CANN-robot成员
4月2日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
Cchenqi317成员
4月2日 修改了pull request 的描述
chenqi317成员
4月15日 评论:

compile

likedislike
CANN-robotCANN-robot成员
4月15日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
4月15日 评论:

流水线任务触发成功
任务链接 [32527cd8c8af47c48aff534f3b5e1d0d][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950 ✅ SUCCESS >>>>> >>>>>
Pre_Compile ✅ SUCCESS
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>>
Compile_X86_monitor ✅ SUCCESS >>>>> >>>>>
Compile_ARM_monitor ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
ATK_Test_A2 ✅ SUCCESS

[2026-04-15 19:13:08]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
4月15日 评论:

流水线任务触发成功
任务链接 [fb6b51b6d4d949b6b4e70bfcdef8de80][流水线指导]

任务名称状态日志下载链接
codecheck ❌ FAILED >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_style ✅ SUCCESS
likedislike
CANN-robotCANN-robot成员
4月15日 添加了label:api-check-pass
CANN-robotCANN-robot成员
4月15日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月15日 添加了label:ci-pipeline-failed
CANN-robotCANN-robot成员
4月16日 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
4月16日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月16日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
4月16日 评论:

流水线任务触发成功
任务链接 [294f525ea83d4abca4d9d8e840fcff1a][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_style ✅ SUCCESS

[2026-04-16 09:50:16]    CI执行结束

likedislike
CANN-robotCANN-robot成员
4月16日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月16日 添加了label:ci-pipeline-passed
Cchenqi317成员
4月16日 修改标题为 “matmul: replace include guards with #pragma once in common headers”,原标题为“refactor(matmul): replace include guards with #pragma once in common headers”
Cchenqi317成员
4月16日 修改了pull request 的描述
Cchenqi317成员
4月16日 修改了pull request 的描述
Cchenqi317成员
4月16日 修改了pull request 的描述
范其瑞
范其瑞成员
4月16日 评论:

/lgtm
/approve

likedislike
sxb154714
sxb154714成员
4月16日 评论:

/lgtm
/approve

likedislike
wangyongguang成员
4月16日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
4月16日 添加了label:lgtmapproved
CANN-robot
CANN-robot成员
4月16日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: fanqirui, sxb154714, wangyongguang.
Reviewers who wrote a comment of /lgtm are: sxb154714, wangyongguang, fanqirui.

likedislike
CANN-robotCANN-robot成员
4月16日 关闭了关联的issue
CANN-robotCANN-robot成员
4月16日 合入了pull request