Skip to content

compiler failed due to gemm_conv2d_op.h #4286

@luotao1

Description

@luotao1

When compiling the latest develop :

/home/luotao02/Paddle/paddle/operators/gemm_conv2d_op.h(79): error: a const_cast can only adjust type qualifiers; it cannot change the underlying type
          detected during:
            implicit generation of "paddle::operators::GemmConv2DKernel<Place, T>::~GemmConv2DKernel() [with Place=paddle::platform::GPUPlace, T=float]" 
/home/luotao02/Paddle/paddle/framework/op_registry.h(109): here
            instantiation of class "paddle::operators::GemmConv2DKernel<Place, T> [with Place=paddle::platform::GPUPlace, T=float]" 
/home/luotao02/Paddle/paddle/framework/op_registry.h(109): here
            implicit generation of "paddle::operators::GemmConv2DKernel<Place, T>::GemmConv2DKernel() [with Place=paddle::platform::GPUPlace, T=float]" 
/home/luotao02/Paddle/paddle/framework/op_registry.h(109): here
            instantiation of class "paddle::operators::GemmConv2DKernel<Place, T> [with Place=paddle::platform::GPUPlace, T=float]" 
/home/luotao02/Paddle/paddle/framework/op_registry.h(109): here
            instantiation of "paddle::framework::OpKernelRegistrar<PlaceType, KernelType>::OpKernelRegistrar(const char *) [with PlaceType=paddle::platform::GPUPlace, KernelType=paddle::operators::GemmConv2DKernel<paddle::platform::GPUPlace, float>]" 
/home/luotao02/Paddle/paddle/operators/conv2d_op.cu(19): here

make64[2]: *** [paddle/operators/CMakeFiles/conv2d_op.dir/conv2d_op_generated_conv2d_op.cu.o] Error 1
make64[1]: *** [paddle/operators/CMakeFiles/conv2d_op.dir/all] Error 2
make64: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions