Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler failed due to gemm_conv2d_op.h #4286

Closed
luotao1 opened this issue Sep 21, 2017 · 2 comments
Closed

compiler failed due to gemm_conv2d_op.h #4286

luotao1 opened this issue Sep 21, 2017 · 2 comments

Comments

@luotao1
Copy link
Contributor

luotao1 commented Sep 21, 2017

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
@Xreki
Copy link
Contributor

Xreki commented Sep 21, 2017

I met the same error.

@hedaoyuan
Copy link
Contributor

Sorry, when merging #4042, I did not notice that class ExecutionContext has been modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants