24 Star 21 Fork 288

Ascend / op-plugin

 / 详情

编译报错 could not convert ‘output_sizes’ from ‘SmallVector<[...],8>’ to ‘SmallVector<[...],32>

TODO
其他
创建于  
2024-03-30 10:35

op_plugin编译错误,错误信息如下
op-plugin/build/pytorch/third_party/op-plugin/op_plugin/ops/base_ops/opapi/SwiGluKernelNpuOpApi.cpp:30:12: error: could not convert ‘output_sizes’ from ‘SmallVector<[...],8>’ to ‘SmallVector<[...],32>’
30 | return output_sizes;
| ^~~~~~~~~~~~
| |
| SmallVector<[...],8>

torch 2.1 1.11都试过,均出现这个错误

评论 (6)

Vincent-Xiao 创建了需求
Vincent-Xiao 修改了描述
展开全部操作日志

已解决,gcc版本需要使用10.2.0

Vincent-Xiao 任务类型需求 修改为其他

gcc-11.4.0遇到相同的报错,退回10.5.0后可以修复:

apt-get install gcc-10 g++-10
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10

Can this issue be solved in the implementation of SwiGluKernelNpuOpApi.cpp? @佳威

It is quite complicated for Ubuntu 22.04 users to downgrade to gcc/g++ 10 using conda..

PS. Changing the template parameter to 8 also works.

How to change the template parameter to 8?I can not find this parameter.

对gcc版本有强制要求,能不能在README里写清楚?各种尝试半天,最后翻issue发现是gcc版本问题。

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
8458573 jiaweizhuang 1610180855
1
https://gitee.com/ascend/op-plugin.git
git@gitee.com:ascend/op-plugin.git
ascend
op-plugin
op-plugin

搜索帮助

344bd9b3 5694891 D2dac590 5694891