PaddlePaddle / models

Officially maintained, supported by PaddlePaddle, including CV, NLP, Speech, Rec, TS, big models and so on.
Apache License 2.0
6.9k stars 2.91k forks source link

PointNet++ ext_op 算子编译报错 #5344

Open zjuncd opened 3 years ago

zjuncd commented 3 years ago

基于 Docker 编译源码:

基础镜像:registry.baidubce.com/paddlepaddle/paddle:2.1.2-gpu-cuda11.2-cudnn8

Paddle 源码编译通过,但是在编译算子时报错,ext_op/src

报错关联对象:

paddle/fluid/platform/complex.h(115): error: explicit type is missing ("int" assumed)

paddle/fluid/platform/complex.h(115): error: qualified name is not allowed

paddle/fluid/platform/complex.h(115): error: expected a ")"

paddle/fluid/platform/complex.h(123): error: explicit type is missing ("int" assumed)

paddle/fluid/platform/complex.h(123): error: qualified name is not allowed

paddle/fluid/platform/complex.h(123): error: expected a ")"

paddle/fluid/platform/complex.h(122): error: invalid redeclaration of member function template >"paddle::platform::complex::complex(int)" (114): here

heavengate commented 3 years ago

你好,这个是1.6版本静态图的custom op编译,如果需要用这个可能需要用Paddle 1.6版本,并且编译Paddle和编译ext_op的环境,比如g++, cmake版本这些需要一致