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

./scripts/init.sh #69

Closed
alice-cool opened this issue Dec 29, 2020 · 4 comments
Closed

./scripts/init.sh #69

alice-cool opened this issue Dec 29, 2020 · 4 comments

Comments

@alice-cool
Copy link

this code can't run because it has erros as the flowing.

running build_ext
building 'C_ROIPooling' extension
gcc -pthread -B /home/anaconda3/envs/vl-bert/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/tmp/pycharm_project_61/common/lib/roi_pooling -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/byd/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/anaconda3/envs/vl-bert/include/python3.6m -c /tmp/pycharm_project_61/common/lib/roi_pooling/vision.cpp -o build/temp.linux-x86_64-3.6/tmp/pycharm_project_61/common/lib/roi_pooling/vision.o -DTORCH_EXTENSION_NAME=C_ROIPooling -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /tmp/pycharm_project_61/common/lib/roi_pooling/ROIAlign.h:4:0,
                 from /tmp/pycharm_project_61/common/lib/roi_pooling/vision.cpp:3:
/tmp/pycharm_project_61/common/lib/roi_pooling/cpu/vision.h:3:29: fatal error: torch/extension.h: 没有那个文件或目录
 #include <torch/extension.h>
                             ^
compilation terminated.
error: command 'gcc' failed with exit status 1

If you have ways, please tell me.

@jackroos
Copy link
Owner

What is the version of your pytorch?

@alice-cool
Copy link
Author

alice-cool commented Dec 30, 2020 via email

@alice-cool
Copy link
Author

Dear scholar, I use pip list ,I found torch 0.4.0. I use conda list, I found pytorch 1.1.0 py3.6_cuda9.0.176_cudnn7.5.1_0 pytorch

@alice-cool
Copy link
Author

I upgrade my torch to 1.1.0 consistent with the version of Pytorch. 1.1.0 and it could run a long way.hah

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

2 participants