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

DCNv2/src/cuda/dcn_v2_cuda.cu(107): error: identifier "THCState_getCurrentStream" is undefined #57

Closed
lucasjinreal opened this issue Apr 7, 2020 · 9 comments

Comments

@lucasjinreal
Copy link

torch 1.5

DCNv2/src/cuda/dcn_v2_cuda.cu(107): error: identifier "THCState_getCurrentStream" is undefined

@huaze555
Copy link

@jinfagang i have the same problem, have you solved this problem?

@lucasjinreal
Copy link
Author

Using my fork: https://github.com/jinfagang/DCNv2_latest

@huaze555
Copy link

@jinfagang It works! Thank you very much!

@FranciscoReveriano
Copy link

Unfortunately it did not work for me

@FranciscoReveriano
Copy link

@jinfagang What alterations did you make in your repo?
I am trying to figure out how to solve this problem.

@lucasjinreal
Copy link
Author

Upgrade torch 1.5

@FranciscoReveriano
Copy link

I tried that. I still end up getting that same problem. Which CUDA/gcc version are you using?
I am trying to avoid messing with the CUDA installation.

@lucasjinreal
Copy link
Author

I only got this with torch 1.4 or > 1.4 Using my fork I solved my problem.

@Asuna88
Copy link

Asuna88 commented Sep 8, 2020

how about try this:
https://blog.csdn.net/a563562675/article/details/107849193

应该是pytorch版本的问题,有网友将pytorch切换到1.4便解决了。现在官方给出了解决方法,可见DCNv2-git。
简单来说就是将src/cuda/dcn_v2_cuda.cu 文件中的THCState_getCurrentStream(state)都替换为c10::cuda::getCurrentCUDAStream()。

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

4 participants