Research icon indicating copy to clipboard operation
Research copied to clipboard

图像检索GNN-Re-Ranking 运行make.sh 报错

Open yunchangxiaoguan opened this issue 3 years ago • 4 comments

(py36) (yw96)[root@aboluo02 /ywcx/guanxiao/new/Research/CV/GNN-Re-Ranking/lib]# sh make.sh /home/guanxiao/anaconda3/envs/py36/lib/python3.6/site-packages/paddle/include /home/guanxiao/anaconda3/envs/py36/lib/python3.6/site-packages/paddle/libs nvcc fatal : Path to libdevice library not specified nvcc fatal : Path to libdevice library not specified g++: error: vmat.cu.o: No such file or directory g++: error: qe.cu.o: No such file or directory

请问大佬这个怎么解决

yunchangxiaoguan avatar Jan 09 '21 09:01 yunchangxiaoguan

Please change the cudnn path and cuda path to your own path in make.sh. https://github.com/PaddlePaddle/Research/blob/7b010bb9e11a69c7611ac8d0473d4dde7a08a2e0/CV/GNN-Re-Ranking/lib/make.sh#L4 https://github.com/PaddlePaddle/Research/blob/7b010bb9e11a69c7611ac8d0473d4dde7a08a2e0/CV/GNN-Re-Ranking/lib/make.sh#L5

Xuanmeng-Zhang avatar Jan 11 '21 02:01 Xuanmeng-Zhang

Please change the cudnn path and cuda path to your own path in make.sh. https://github.com/PaddlePaddle/Research/blob/7b010bb9e11a69c7611ac8d0473d4dde7a08a2e0/CV/GNN-Re-Ranking/lib/make.sh#L4

https://github.com/PaddlePaddle/Research/blob/7b010bb9e11a69c7611ac8d0473d4dde7a08a2e0/CV/GNN-Re-Ranking/lib/make.sh#L5

您好,这个两个地址分别是哪啊,我填了好多都不对,比如/usr/local/cuda,/usr/local/cuda/bin都试过了,谢谢

yunchangxiaoguan avatar Jan 21 '21 09:01 yunchangxiaoguan

home/gx/Research/CV/GNN-Re-Ranking/lib# sh make.sh /usr/local/lib/python2.7/dist-packages/paddle/include /usr/local/lib/python2.7/dist-packages/paddle/libs In file included from vmat.cc:1:0: vmat.cc:58:38: error: 'paddle::framework::EmptyGradOpMaker' is not a template paddle::framework::EmptyGradOpMakerpaddle::framework::OpDesc, ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ vmat.cc:59:38: error: 'paddle::framework::EmptyGradOpMaker' is not a template paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ vmat.cc:59:55: error: 'imperative' is not a member of 'paddle' paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ vmat.cc:59:55: error: 'imperative' is not a member of 'paddle' paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:72: error: template argument 4 is invalid static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ vmat.cc:55:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(vmat, ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:204:44: error: invalid conversion from 'const char*' to 'int' [-fpermissive] op_registrar##op_type##(#op_type);
^ vmat.cc:55:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(vmat, ^ vmat.cc: In function 'int TouchOpRegistrar_vmat()': /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:206:34: error: request for member 'Touch' in 'op_registrar_vmat', which is of non-class type 'int' op_registrar##op_type##
.Touch();
^ vmat.cc:55:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(vmat, ^ In file included from qe.cc:1:0: qe.cc:70:38: error: 'paddle::framework::EmptyGradOpMaker' is not a template paddle::framework::EmptyGradOpMakerpaddle::framework::OpDesc, ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ qe.cc:71:38: error: 'paddle::framework::EmptyGradOpMaker' is not a template paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ qe.cc:71:55: error: 'imperative' is not a member of 'paddle' paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ qe.cc:71:55: error: 'imperative' is not a member of 'paddle' paddle::framework::EmptyGradOpMakerpaddle::imperative::OpBase); ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:61: note: in definition of macro 'REGISTER_OPERATOR' static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:203:72: error: template argument 4 is invalid static ::paddle::framework::OperatorRegistrar<op_class, ##VA_ARGS>
^ qe.cc:67:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(qe, ^ /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:204:44: error: invalid conversion from 'const char*' to 'int' [-fpermissive] op_registrar##op_type##(#op_type);
^ qe.cc:67:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(qe, ^ qe.cc: In function 'int TouchOpRegistrar_qe()': /usr/local/lib/python2.7/dist-packages/paddle/include/paddle/fluid/framework/op_registry.h:206:34: error: request for member 'Touch' in 'op_registrar_qe', which is of non-class type 'int' op_registrar##op_type##
.Touch();
^ qe.cc:67:1: note: in expansion of macro 'REGISTER_OPERATOR' REGISTER_OPERATOR(qe,

填好路径又出现了新的错误

yunchangxiaoguan avatar Jan 21 '21 10:01 yunchangxiaoguan

所以,这个问题如何解决啊,有谁晓得不

olochi avatar Oct 02 '22 08:10 olochi