caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

GPU

Open liyemei opened this issue 9 years ago • 9 comments

expected an identifier Caffe2_GPU C:\caffe2-master\caffe2\operators\pool_op_cudnn.cu 405

liyemei avatar Aug 04 '17 15:08 liyemei

Could you elaborate?

Yangqing avatar Aug 04 '17 19:08 Yangqing

Win10 64 CUDA8.0 Cudnn5.1 VS2015

Error: expected an identifier Progaram:Caffe2_GPU path:C:\caffe2-master\caffe2\operators\pool_op_cudnn.cu Error in the words: INPUT_TAGS(IN, OUT, OUT_GRAD);

Today,I've compiled many times , But the problem still occurred. Can you help me?

liyemei avatar Aug 05 '17 02:08 liyemei

It appears that someone changed the structure of the Header files so now the "INPUT_TAGS" is not defined in the pool_op_cudnn.cu file, which is basically (e.g.) defined in: "caffe2/core/operator.h"

You have two options to fix this issue:

  1. add to the cuh file a definition of INPUT_TAGS (as defined in operators.h file).
  2. or simply comment out this line of code (i.e., the : INPUT_TAGS(IN, OUT, OUT_GRAD)).

Both options fixed the issue.

ugionet avatar Aug 05 '17 15:08 ugionet

@Yangqing @ugionet This issue still occurred,I can't solve it. Thank you~

liyemei avatar Aug 07 '17 02:08 liyemei

I am a chinese student,I am learning about the caffe2. Could you help me ?Thank you~ @Yangqing @ugionet E-mail:[email protected]

liyemei avatar Aug 07 '17 02:08 liyemei

What sort of help do you require ? If you have more issues with the repository, you can open new issues. If the solution that was offered to you solved this issue, please close it.

ugionet avatar Aug 07 '17 11:08 ugionet

Would it also be possible to simply include operators.h in the cuh file?

operators.h defines INPUT_TAGS. Thus it should work.

dlahmad avatar Aug 11 '17 11:08 dlahmad

@Vedaevolution , I try it,but still failed. the same issue in #1073 , https://github.com/caffe2/caffe2/issues/1073 @Yangqing

liyemei avatar Aug 15 '17 04:08 liyemei

I meet the same error. In windows, the definition of "IN", "OUT" are different from Linux. In windows, it is NULL. But I am not sure how to fix it.

PaulaQin avatar Aug 29 '17 08:08 PaulaQin