-
Notifications
You must be signed in to change notification settings - Fork 31
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
"TORCH_ERROR("Not compiled with CUDA support")" #16
Comments
Are you compiling the code from the latest commit on master? |
One possibility is incorrect Pytorch version. Old Pytorch versions don't have |
I've pushed a commit to change |
Yes. I am able to successfully compile this. I see some warnings here and there but no errors. |
Yes. I checked the version. When I typed I am using Linux OS only. More specifically, when I type For the GCC, I checked that the version is |
That's great. Thanks for trying that out. |
Thanks a lot for your help! Just wondering if this is slower than the original version. |
No, it was just an error on my part. Thanks for reporting it. |
Hi,
I have been trying to install this for the past couple of days but I am always running into errors. It would be of great help if you can provide some guidance on this. The following is the configuration of my virtual environment:
`python 3.7
pytorch 1.6
cudatoolkit 10.1
ninja 1.10.2
`
The following is the list of errors I get when I type
python setup.py install
`running install
running bdist_egg
running egg_info
writing torch_butterfly.egg-info/PKG-INFO
writing dependency_links to torch_butterfly.egg-info/dependency_links.txt
writing top-level names to torch_butterfly.egg-info/top_level.txt
reading manifest file 'torch_butterfly.egg-info/SOURCES.txt'
writing manifest file 'torch_butterfly.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/permutation.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/diagonal.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/multiply.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/combine.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/special.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/complex_utils.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/init.py -> build/lib.linux-x86_64-3.7/torch_butterfly
copying torch_butterfly/butterfly.py -> build/lib.linux-x86_64-3.7/torch_butterfly
running build_ext
building 'torch_butterfly._butterfly' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/home
creating build/temp.linux-x86_64-3.7/home/ashok
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc
creating build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/cpu
gcc -pthread -B /home/ashok/anaconda3/envs/torch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -
fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc -I/home/ashok/anaconda3/envs/torch/lib/python3.7/site-packages/torch/include -
I/home/ashok/anaconda3/envs/torch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -
I/home/ashok/anaconda3/envs/torch/lib/python3.7/site-packages/torch/include/TH -
I/home/ashok/anaconda3/envs/torch/lib/python3.7/site-packages/torch/include/THC -
I/home/ashok/anaconda3/envs/torch/include/python3.7m -c
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp -o build/temp.linux-x86_64-3.7/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_butterfly -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp: In function ‘at::Tensor butterfly_multiply_fw(at::Tensor, at::Tensor, bool)’:
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp:43:49: error:
‘TORCH_ERROR’ was not declared in this scope
TORCH_ERROR("Not compiled with CUDA support");
^
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> butterfly_multiply_bw(at::Tensor, at::Tensor, at::Tensor, bool)’:
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp:81:49: error:
‘TORCH_ERROR’ was not declared in this scope
TORCH_ERROR("Not compiled with CUDA support");
^
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp: At global scope:
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp:118:14: error: expected constructor, destructor, or type conversion before ‘(’ token
TORCH_LIBRARY(torch_butterfly, m) {
^
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp: In function ‘at::Tensor butterfly_multiply_fw(at::Tensor, at::Tensor, bool)’:
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp:48:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> butterfly_multiply_bw(at::Tensor, at::Tensor, at::Tensor, bool)’:
/home/ashok/reed_muller/Neural_Plotkin/reed_muller_modules/butterfly-master/csrc/butterfly.cpp:86:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
error: command 'gcc' failed with exit status 1
`
The text was updated successfully, but these errors were encountered: