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

No module named 'kernelconv2d_cuda' #1

Closed
joangraphic opened this issue Oct 23, 2019 · 4 comments
Closed

No module named 'kernelconv2d_cuda' #1

joangraphic opened this issue Oct 23, 2019 · 4 comments

Comments

@joangraphic
Copy link

Hello, when I tried to run the code, I got an error saying No module named 'kernelconv2d_cuda'.
I guess that the FAC codes provided here has not been built and installed, so I tried to solve this by calling 'python setup.py install' under the FAC folder. However, another error appeared saying 'cudaSteam_t' has not been declared.
Any solutions for these problems? Thanks!

@HCMSwang
Copy link

Hello, thank you for providing the code of the paper. when I tried to run this code. I run the install.sh to install the module named 'kernelconv2d_cuda'. However, I got the following error: Can you give me some help? Thanks!

luded from KernelConv2D_cuda.cpp:4:0:
KernelConv2D_kernel.h:10:2: error: 'cudaStream_t' has not been declared
cudaStream_t stream
^
KernelConv2D_kernel.h:20:5: error: 'cudaStream_t' has not been declared
cudaStream_t stream
^
KernelConv2D_cuda.cpp: In function 'int KernelConv2D_forward_cuda(at::Tensor&, at::Tensor&, int, at::Tensor&)':
KernelConv2D_cuda.cpp:18:29: error: 'class at::Context' has no member named 'getCurrentCUDAStream'
at::globalContext().getCurrentCUDAStream()
^
KernelConv2D_cuda.cpp: In function 'int KernelConv2D_backward_cuda(at::Tensor&, at::Tensor&, int, at::Tensor&, at::Tensor&, at::Tensor&)':
KernelConv2D_cuda.cpp:42:29: error: 'class at::Context' has no member named 'getCurrentCUDAStream'
at::globalContext().getCurrentCUDAStream()
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

@joangraphic
Copy link
Author

I solved this problem by removing my previous virtual enviroment completely and creating a new one. I reinstalled all packages required via 'pip' instead of 'conda' as suggested by the author. Hope that this will work for others as well. Note that torchvision==0.2.1 should be used for torch==0.4.1.
Thanks!

@HCMSwang
Copy link

Thanks!

@RCpengnan
Copy link

将setup.py中的 c++11改成c++14,就可以啦~

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

3 participants