Open Namco0816 opened 2 years ago
Because you use a high version pytorch. You could change two places.
../cuda_utils.cu
, add two lines of code: #include <iostream>
and #define SHFL_MASK 0xffffffff
lightconv_cuda.cpp
, change AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
to AT_ASSERTM(x.device().is_cuda(), #x " must be a CUDA tensor")
After these modifications, I successfully build the kernel. I hope my successful experience can help you as well.
Environment
Thanks for your help! it works. Thank you!
In the examples of lightweight and dynamic convolutions, to install the light/dynamic convolutions I ran the scripts:
However I got the error
"RuntimeError: Error compiling objects for extension"
some part of the error are as follows:
Environment
pip
, source):source