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

CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘ROIAlign_forward(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’中: example-app.cpp:(.text+0x179c):对‘ROIAlign_forward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’未定义的引用 CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘ROIAlign_backward(at::Tensor const&, at::Tensor const&, float, int, int, int, int, int, int, int, bool)’中: example-app.cpp:(.text+0x18a7):对‘ROIAlign_backward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, long, long, long, long, bool)’未定义的引用 CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘nms(at::Tensor const&, at::Tensor const&, double)’中: example-app.cpp:(.text+0x1eaa):对‘nms_cuda(at::Tensor const&, at::Tensor const&, double)’未定义的引用 collect2: error: ld returned 1 exit status CMak #2623

Closed
ts19970816 opened this issue Aug 27, 2020 · 3 comments

Comments

@ts19970816
Copy link

🐛 Bug

To Reproduce

Steps to reproduce the behavior:
CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘ROIAlign_forward(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’中:
example-app.cpp:(.text+0x179c):对‘ROIAlign_forward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’未定义的引用
CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘ROIAlign_backward(at::Tensor const&, at::Tensor const&, float, int, int, int, int, int, int, int, bool)’中:
example-app.cpp:(.text+0x18a7):对‘ROIAlign_backward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, long, long, long, long, bool)’未定义的引用
CMakeFiles/example-app.dir/example-app.cpp.o:在函数‘nms(at::Tensor const&, at::Tensor const&, double)’中:
example-app.cpp:(.text+0x1eaa):对‘nms_cuda(at::Tensor const&, at::Tensor const&, double)’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/example-app.dir/build.make:122: recipe for target 'example-app' failed
make[2]: *** [example-app] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/example-app.dir/all' failed
make[1]: *** [CMakeFiles/example-app.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Environment

  • PyTorch / torchvision Version (e.g., 1.5.0 / 0.6.0):
  • OS ( ubtunu):
  • How you installed PyTorch / torchvision ( pip/source):
  • Python version:3.6.5
  • CUDA/cuDNN version:10.2/7.6.5
  • GPU models and configuration:1080ti
  • Any other relevant information:

Additional context

@pmeier
Copy link
Collaborator

pmeier commented Aug 27, 2020

Hey @ts19970816, unfortunately I don't speak Chinese. Thus, it is hard to even know what you were trying to do. Could you please change the title to something more descriptive in English?

@hukkai
Copy link

hukkai commented Sep 8, 2020

Just a translation @pmeier. I suspect it is just a path not found error.

"""
CMakeFiles/example-app.dir/example-app.cpp.o:In function ‘ROIAlign_forward(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’:
example-app.cpp:(.text+0x179c):undefined reference to ‘ROIAlign_forward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, bool)’

CMakeFiles/example-app.dir/example-app.cpp.o:In function ‘ROIAlign_backward(at::Tensor const&, at::Tensor const&, float, int, int, int, int, int, int, int, bool)’:
example-app.cpp:(.text+0x18a7):undefined reference to ‘ROIAlign_backward_cuda(at::Tensor const&, at::Tensor const&, double, long, long, long, long, long, long, long, bool)’

CMakeFiles/example-app.dir/example-app.cpp.o:In function ‘nms(at::Tensor const&, at::Tensor const&, double)’:
example-app.cpp:(.text+0x1eaa):undefined reference to ‘nms_cuda(at::Tensor const&, at::Tensor const&, double)’

collect2: error: ld returned 1 exit status
CMakeFiles/example-app.dir/build.make:122: recipe for target 'example-app' failed
make[2]: *** [example-app] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/example-app.dir/all' failed
make[1]: *** [CMakeFiles/example-app.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
"""

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Sep 23, 2020

I close this issue as it is missing details. @ts19970816 let us know if you have further questions in english. Thanks

@vfdev-5 vfdev-5 closed this as completed Sep 23, 2020
datumbox added a commit that referenced this issue Jan 4, 2021
* Speedup test_ucf101 (#2623 

* Speedup Cmake builds (#3186)

* Speedup test_autoaugment (#3190)

* Speedup DeformConvTester (#3191)

* Speedup InceptionV3 and GoogleNet on Windows (#3196)
facebook-github-bot pushed a commit that referenced this issue Jan 21, 2021
Summary:
* Speedup test_ucf101 (#2623

* Speedup Cmake builds (#3186)

* Speedup test_autoaugment (#3190)

* Speedup DeformConvTester (#3191)

* Speedup InceptionV3 and GoogleNet on Windows (#3196)

Reviewed By: datumbox

Differential Revision: D25954568

fbshipit-source-id: bdcea84b112a9343f27619aef7036369598f631e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants