Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

编译错误 ubuntu 18.04. error: identifier "DmcnIm2colBilinear" is undefined

Open kgdev opened this issue 7 years ago • 5 comments

  • 版本、环境信息:    1)PaddlePaddle版本:release/1.5    2)CPU:Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz    3)GPU:Nvidia GeForce 2070 ,CUDA 10, CUDNN 7    4)系统环境:Ubuntu 18.04
  • 安装方式信息: 2)本地编译 cmake .. -DPY_VERSION=3.6 -DWITH_GPU=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
/home/kgdev/Paddle/paddle/fluid/operators/deformable_conv_op.cu(263): error: identifier "DmcnIm2colBilinear" is undefined
          detected during:
            instantiation of "void paddle::operators::ModulatedDeformableCol2imCoordGpuKernel(int, const T *, const T *, const T *, const T *, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, T *, T *) [with T=float]"
(306): here
            instantiation of "void paddle::operators::ModulatedDeformableCol2imCoord(const paddle::platform::DeviceContext &, const T *, const T *, const T *, const T *, std::vector<int64_t, std::allocator<int64_t>>, std::vector<int64_t, std::allocator<int64_t>>, std::vector<int64_t, std::allocator<int64_t>>, std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>, int, T *, T *) [with T=float]"
(680): here
            instantiation of "void paddle::operators::DeformableConvGradCUDAKernel<DeviceContext, T>::Compute(const paddle::framework::ExecutionContext &) const [with DeviceContext=CUDA, T=float]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(107): here
            implicit generation of "paddle::operators::DeformableConvGradCUDAKernel<DeviceContext, T>::~DeformableConvGradCUDAKernel() [with DeviceContext=CUDA, T=float]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(107): here
            instantiation of class "paddle::operators::DeformableConvGradCUDAKernel<DeviceContext, T> [with DeviceContext=CUDA, T=float]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(107): here
            implicit generation of "paddle::operators::DeformableConvGradCUDAKernel<DeviceContext, T>::DeformableConvGradCUDAKernel() [with DeviceContext=CUDA, T=float]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(107): here
            instantiation of class "paddle::operators::DeformableConvGradCUDAKernel<DeviceContext, T> [with DeviceContext=CUDA, T=float]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(107): here
            instantiation of "void paddle::framework::OpKernelRegistrarFunctor<PlaceType, false, I, KernelTypes...>::operator()(const char *, const char *, int) const [with PlaceType=paddle::platform::CUDAPlace, I=0UL, KernelTypes=<paddle::operators::DeformableConvGradCUDAKernel<CUDA, float>>]"
/home/kgdev/Paddle/paddle/fluid/framework/op_registry.h(130): here
            instantiation of "paddle::framework::OpKernelRegistrar<PlaceType, KernelType...>::OpKernelRegistrar(const char *, const char *, int) [with PlaceType=paddle::platform::CUDAPlace, KernelType=<paddle::operators::DeformableConvGradCUDAKernel<CUDA, float>>]"
(742): here

kgdev avatar Jul 23 '19 07:07 kgdev

您的gcc版本是多少

JiabinYang avatar Jul 24 '19 10:07 JiabinYang

7.4.0

把DmcnIm2colBilinear 往前挪一下 可以修掉这个error

kgdev avatar Jul 24 '19 10:07 kgdev

是的

JiabinYang avatar Jul 24 '19 12:07 JiabinYang

你们修一下吗

kgdev avatar Jul 24 '19 13:07 kgdev

@kgdev 这个问题我们会尽快在develop分支中修复,感谢反馈

baiyfbupt avatar Jul 24 '19 13:07 baiyfbupt