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

Compilation warnings #5339

Closed
wangkuiyi opened this issue Nov 3, 2017 · 1 comment
Closed

Compilation warnings #5339

wangkuiyi opened this issue Nov 3, 2017 · 1 comment

Comments

@wangkuiyi
Copy link
Collaborator

[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h: In instantiation of 'T paddle::operators::LinearChainCRFOpKernel<Place, T>::ForwardOneSequence(const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, paddle::framework::Tensor*) const [with Place = paddle::platform::GPUPlace; T = double]':
[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h:171:41: required from 'void paddle::operators::LinearChainCRFOpKernel<Place, T>::Compute(const paddle::framework::ExecutionContext&) const [with Place = paddle::platform::GPUPlace; T = double]'
[16:58:09]	/tmp/tmpxft_00005760_00000000-4_linear_chain_crf_op.compute_60.cudafe1.stub.c:12:27: required from here
[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h:275:90: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h: In instantiation of 'T paddle::operators::LinearChainCRFOpKernel<Place, T>::ForwardOneSequence(const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, paddle::framework::Tensor*) const [with Place = paddle::platform::GPUPlace; T = float]':
[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h:171:41: required from 'void paddle::operators::LinearChainCRFOpKernel<Place, T>::Compute(const paddle::framework::ExecutionContext&) const [with Place = paddle::platform::GPUPlace; T = float]'
[16:58:09]	/tmp/tmpxft_00005760_00000000-4_linear_chain_crf_op.compute_60.cudafe1.stub.c:12:27: required from here
[16:58:09]	/paddle/paddle/operators/linear_chain_crf_op.h:275:90: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[16:58:09]	cpplint: Checking source code style
[16:58:09]	Done processing sequence_softmax_op.cc
[16:58:09]	Done processing sequence_softmax_op.cu
[16:58:09]	Done processing /paddle/paddle/operators/sequence_softmax_op.h
[16:58:09]	Total errors found: 0
[16:58:09]	[ 75%] Built target sequence_softmax_op
[16:58:09]	[ 76%] Building NVCC (Device) object paddle/operators/CMakeFiles/crop_op.dir/crop_op_generated_crop_op.cu.o
[16:58:14]	Scanning dependencies of target linear_chain_crf_op
[16:58:14]	[ 76%] Linking CXX static library libconv2d_op.a
[16:58:14]	[ 76%] Building CXX object paddle/operators/CMakeFiles/linear_chain_crf_op.dir/linear_chain_crf_op.cc.o
[16:58:14]	cpplint: Checking source code style
[16:58:15]	Done processing conv2d_op.cc
[16:58:15]	Done processing conv2d_op.cu
[16:58:15]	Done processing /paddle/paddle/operators/conv2d_op.h
[16:58:15]	Total errors found: 0
[16:58:15]	[ 76%] Built target conv2d_op
[16:58:15]	[ 76%] Building NVCC (Device) object paddle/operators/CMakeFiles/proximal_adagrad_op.dir/proximal_adagrad_op_generated_proximal_adagrad_op.cu.o
[16:58:18]	In file included from /paddle/paddle/framework/ddim.h:21:0,
[16:58:18]	from /paddle/paddle/framework/tensor.h:23,
[16:58:18]	from /paddle/paddle/framework/eigen.h:17,
[16:58:18]	from /paddle/paddle/operators/linear_chain_crf_op.h:16,
[16:58:18]	from /paddle/paddle/operators/linear_chain_crf_op.cc:15:
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h: In instantiation of 'T paddle::operators::LinearChainCRFOpKernel<Place, T>::ForwardOneSequence(const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, paddle::framework::Tensor*) const [with Place = paddle::platform::CPUPlace; T = double]':
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h:171:45: required from 'void paddle::operators::LinearChainCRFOpKernel<Place, T>::Compute(const paddle::framework::ExecutionContext&) const [with Place = paddle::platform::CPUPlace; T = double]'
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.cc:261:73: required from here
[16:58:18]	/paddle/paddle/platform/enforce.h:236:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[16:58:18]	__PADDLE_BINARY_COMPARE(__VAL0, __VAL1, <, >=, __VA_ARGS__)
[16:58:18]	^
[16:58:18]	/paddle/paddle/platform/enforce.h:207:42: note: in definition of macro 'PADDLE_ENFORCE'
[16:58:18]	::paddle::platform::throw_on_error(__VA_ARGS__); \
[16:58:18]	^
[16:58:18]	/paddle/paddle/platform/enforce.h:236:3: note: in expansion of macro '__PADDLE_BINARY_COMPARE'
[16:58:18]	__PADDLE_BINARY_COMPARE(__VAL0, __VAL1, <, >=, __VA_ARGS__)
[16:58:18]	^
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h:275:5: note: in expansion of macro 'PADDLE_ENFORCE_LT'
[16:58:18]	PADDLE_ENFORCE_LT(
[16:58:18]	^
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h: In instantiation of 'T paddle::operators::LinearChainCRFOpKernel<Place, T>::ForwardOneSequence(const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, const paddle::framework::Tensor&, paddle::framework::Tensor*) const [with Place = paddle::platform::CPUPlace; T = float]':
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h:171:45: required from 'void paddle::operators::LinearChainCRFOpKernel<Place, T>::Compute(const paddle::framework::ExecutionContext&) const [with Place = paddle::platform::CPUPlace; T = float]'
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.cc:261:73: required from here
[16:58:18]	/paddle/paddle/platform/enforce.h:236:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[16:58:18]	__PADDLE_BINARY_COMPARE(__VAL0, __VAL1, <, >=, __VA_ARGS__)
[16:58:18]	^
[16:58:18]	/paddle/paddle/platform/enforce.h:207:42: note: in definition of macro 'PADDLE_ENFORCE'
[16:58:18]	::paddle::platform::throw_on_error(__VA_ARGS__); \
[16:58:18]	^
[16:58:18]	/paddle/paddle/platform/enforce.h:236:3: note: in expansion of macro '__PADDLE_BINARY_COMPARE'
[16:58:18]	__PADDLE_BINARY_COMPARE(__VAL0, __VAL1, <, >=, __VA_ARGS__)
[16:58:18]	^
[16:58:18]	/paddle/paddle/operators/linear_chain_crf_op.h:275:5: note: in expansion of macro 'PADDLE_ENFORCE_LT'
[16:58:18]	PADDLE_ENFORCE_LT(
[16:58:18]
@wangkuiyi
Copy link
Collaborator Author

The prompted warning seems has been fixed.

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

1 participant