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

I cann't compile compile the DCNv2 #431

Open
nonlinear1 opened this issue Apr 24, 2020 · 15 comments
Open

I cann't compile compile the DCNv2 #431

nonlinear1 opened this issue Apr 24, 2020 · 15 comments

Comments

@nonlinear1
Copy link

I want to test the yolact++, but I cann't compile DCNv2. My enviroment is as follow:
OS: ubuntu18.04
cuda: 10.1
pytorch:1.5
When I compiled the DCNv2 I found the following errors:
/home/manifold/Dense_RGBD_VIO_Fusion/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu(107): error: identifier "THCState_getCurrentStream" is undefined

/home/manifold/Dense_RGBD_VIO_Fusion/yolact/external/DCNv2/src/cuda/dcn_v2_cuda.cu(279): error: identifier "THCState_getCurrentStream" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_00007b49_00000000-6_dcn_v2_cuda.cpp1.ii".
Could someone know how to solve this errors? Thank you very much

@starfish55555
Copy link

I also met, how do you solve it

@moganesyan
Copy link

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

@abhigoku10
Copy link

@moganesyan thanks for the solution will try it , same thing is happening in google colab

@moganesyan
Copy link

moganesyan commented May 2, 2020

@abhigoku10 You're welcome. I was working on Colab as well, so should work for you too hopefully!

@khodabakhshih
Copy link

@moganesyan Thank you very much. It solved my issue in the google colab too.

@ahkarami
Copy link

is there any solution for use it on PyTorch 1.5?

@linkboyx
Copy link

linkboyx commented Jun 19, 2020

This helps on Pytorch1.5. CharlesShang/DCNv2#58

@areebsyed
Copy link

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

Thankyou worked like a charm!

@blackCmd
Copy link

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

It works! Thank you

@lidar-nevermore
Copy link

lidar-nevermore commented Mar 20, 2021

this issuse can be solved by adding the following function:
cudaStream_t THCState_getCurrentStream(THCState *state) { return at::cuda::getCurrentCUDAStream().stream(); }
reference: https://github.com/pytorch/pytorch/pull/33376

@JiaWang0704
Copy link

this issuse can be solved by adding the following function:
cudaStream_t THCState_getCurrentStream(THCState *state) { return at::cuda::getCurrentCUDAStream().stream(); }
reference: https://github.com/pytorch/pytorch/pull/33376

hello,this resolve two errors but there still are three errors.as the following:(do you know the rearon?if you know, please tell me. thank u!)
V3{@@KF98AMUS8G$KW6%@ 8

@dungdo123
Copy link

I rolled back to torch 1.4.0 and torchvision 0.5.0 and solved the issue

Thanks, it solved my problem!

@UnderTheMangoTree
Copy link

I also met, how do you solve it

I raw back to pytorch 1.0.1, and the problem is resolved.

@DaBasile
Copy link

DaBasile commented Nov 8, 2021

Hi guys I solved this problem with this issue https://github.com/CharlesShang/DCNv2/issues/57 replacing DCNv2 folder with the fork of the solution
my setup is
pytorch 1.10
cuda toolkit 11.4
cuda version 11.4

@Robotatron
Copy link

Hi guys I solved this problem with this issue https://github.com/CharlesShang/DCNv2/issues/57 replacing DCNv2 folder with the fork of the solution my setup is pytorch 1.10 cuda toolkit 11.4 cuda version 11.4

Your link does not work...

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