已合并
[test]fix _test_alltoall_2p_size test_mgr.load #32520
AACAES创建于 3月27日
[test]fix _test_alltoall_2p_size test_mgr.load #32520
已合并
AACAES创建于 3月27日
AACAES成员
3月27日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列
如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

  1. ci只提交分布式用例文件时,会被跳过导致ci跑不到,删除对应逻辑
  2. https://gitcode.com/Ascend/pytorch/pull/31821
    allow_internal_format默认值被改为False,_test_alltoall_2p_size 用例需手动设为True

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

不涉及

【接口变更】

请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

不涉及

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

本pr只修一个分布式用例,ci跑到了
image.png

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 AACAES 的贡献)
AAACAES成员
3月27日 创建了 pull request,commit 35f175e2
ascend-robot
ascend-robot成员
3月27日 评论:

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
repo-Ascend/pytorch htchu, li_jing_hw (2/2) htchu, li_jing_hw (2/1)
test li_jing_hw, htchu, yuhaiyan (3/2) li_jing_hw, htchu (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
3月27日 添加了label:ascend-cla/yes
AtlasAccount
AtlasAccount成员
3月27日 评论:

问题/功能描述

本次PR主要包含两项变更:一是移除了测试文件加载逻辑中针对分布式和inductor测试的过滤条件,确保在指定world_size时相关测试文件仍能被正常加载和运行;二是在一个特定的分布式通信测试用例中,启用了NPU内部格式张量的支持,以确保测试能够正确执行涉及特殊存储格式的张量操作。

修改方案描述

  1. 测试管理逻辑调整:在TestMgr.load方法中,删除了当world_size不为零时跳过包含”test/distributed/””test/_inductor/”路径的修改文件的逻辑。这使得测试管理器在分布式或多进程场景下,也能将这些路径下的测试文件纳入分析范围。
  2. 测试用例功能增强:在test/distributed/test_all_to_all.py文件的_test_alltoall_2p_size方法开头,添加了torch_npu.npu.config.allow_internal_format = True配置。这允许在该测试中使用NPU的内部存储格式(format 29),从而验证分布式通信操作(all_to_all)对内部格式张量的支持情况。
likedislike
AACAES成员
3月27日 评论:

compile

likedislike
AAACAES成员
3月27日 修改标题为 “[test]fix _test_alltoall_2p_size test_mgr.load”,原标题为“[ut]fix _test_alltoall_2p_size test_mgr.load”
此处折叠了6条事件消息 查看更多
ascend-robotascend-robot成员
3月27日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月27日 评论:
流水线 PR-pipeline_pytorch#12889 (重试第2次)已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
Build_ARM_inductor 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 >>>
UT_DIST_X86_Part_02 >>>
UT_DIST_X86_Part_03 >>>
UT_DIST_X86_Part_04 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
AAACAES成员
3月28日 修改了pull request 的描述
haiyan8
haiyan8
3月28日 评论:

/lgtm

likedislike
AAACAES成员
3月28日 修改了pull request 的描述
li_jing_hw成员
3月28日 评论:

/approve

likedislike
ascend-robotascend-robot成员
3月28日 添加了label:approved
htchu成员
3月30日 评论:

/lgtm
/approve

likedislike
ascend-robotascend-robot成员
3月30日 添加了label:lgtm
ascend-robot
ascend-robot成员
3月30日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: htchu, li_jing_hw.
Reviewers who wrote a comment of /lgtm are: yuhaiyan, li_jing_hw, htchu.

likedislike
ascend-robotascend-robot成员
3月30日 合入了pull request