8 Star 1 Fork 24

src-openEuler / pytorch

 / 详情

pytorch build problem in openEuler-22.03-LTS-SP1

已完成
缺陷
创建于  
2022-12-13 10:06

失败详情,请查看附件

附件

评论 (6)

dongjie110 创建了缺陷

Hi dongjie110, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: ai, and any of the maintainers: @sinever , @bbking , @zhunaipan , @guoqi , @kingxian , @yanghaoran , @Henry Shi

openeuler-ci-bot 添加了
 
sig/ai
标签
dongjie110 修改了标题
dongjie110 上传了附件pytorch_x86_64_cbs.443287.txt
dongjie110 负责人设置为谢志鹏

失败均为x86架构编译失败

问题现象与round2的issue不一致,请一并关注:【22.03 SP1 round2 arm/x86】pytorch在22.03 sp1编译失败
https://e.gitee.com/open_euler/milestones/179485/issues/table?issue=I64X0T

I64X0T 本地验证,需要增加一个 make 的依赖,已经提交了pr

small_leek 负责人谢志鹏 修改为zhaotianyang
small_leek 负责人zhaotianyang 修改为未设置

当前issue在本地验证重现后,编译失败原因是x86编译时检测到如下文件函数存在内存泄漏风险,自行中断
但是ARM本地编译也是通过的,结论是编译器对于这个函数段的检查和编译两个平台存在差异,
x86检查过于严格,认为代码存在漏洞。将!=0改为>0后本地x86可以编译通过
/root/rpmbuild/BUILD/pytorch-1.6.0/third_party/XNNPACK/src/f32-rmax/psimd.c
xnn_f32_rmax_ukernel__psimd (...)
{
assert(n != 0);
assert(n % sizeof(float) == 0); //这个assert确保了n是4的倍数
...
float vmax = psimd_reduce_max_f32(vmax0123);
if XNN_UNLIKELY(n != 0) {
do {
const float vx = *x++; //死循环后,这里内存访问会越界
vmax = math_max_f32(vx, vmax);
n -= 4;
} while (n != 0); //n 如果不是4的倍数,这里会死循环
}
*y = vmax;
}

2022-12-13 06:05:00 /home/lkp/rpmbuild/BUILD/pytorch-1.6.0/third_party/XNNPACK/src/f32-rmax/psimd.c:14:6: internal compiler error: Segmentation fault
在编译时gcc发生Segmentation fault,已经修复合入https://gitee.com/src-openeuler/gcc/pulls/235
pytorch已经可以正常构建!7:【轻量级 PR】:update pytorch.spec.
构建截图

small_leek 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 5601221 sinever 1596965257
1
https://gitee.com/src-openeuler/pytorch.git
git@gitee.com:src-openeuler/pytorch.git
src-openeuler
pytorch
pytorch

搜索帮助

14c37bed 8189591 565d56ea 8189591