-
Notifications
You must be signed in to change notification settings - Fork 400
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
error: command 'g++' failed with exit status 1, maybe due to python version #98
Comments
I use 3090 ,and before i change '['ninja', '-v']' to '['ninja', '--version']',error is 'compute_86 ' |
Before I have same problem with you, but after I install ninja, the error became: File "/usr/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension |
I had the same problem as you, have you already fixed this ? |
After I changed the '['ninja', '-v']' to '['ninja', '--v']', and used ‘export TORCH_CUDA_ARCH_LIST="5.0"’ to solve the 'compute_75' from torch/torch7#1190. I meet the same error! what should I do? |
having the same problem here... any ideas? |
i have the same problem, is there anyone can resolve it. thank you pretty . the coda as follow.
|
have you figured this out? I met the exact same problem. |
for weeks I have tried, and mine came out using YOLACT++
I'm not sure which triggered to work, but DCNv2 works fine now...... |
May I ask your CUDA version? |
|
I've solved those issues. Environment:
Installation:
|
您好,请问最后这个问题您解决了吗,我现在也是3090的显卡,卡在这一步了,能方便告知后续您的环境配置吗 |
请问您解决了吗?我也遇到了相同的问题,麻烦告知,万分感谢 |
Same problem, ask the answer. |
I try to compile DCNv2 in my project use CenterNet. But i got this error. My environment use torch 1.7.0 and torchvision 0.8.1
I have checked python version. I realized with python3.6, DCN compile successfully, but with python3.7 and python3.8, i got this error.
Here is some output when i run ./make.sh
/hdd/projects/hti-traffic/src/deploy/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:219:53: warning: �T* at::Tensor::data() const [with T = float]� is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
grad_weight.data<scalar_t>(), n_);
^
In file included from /opt/anaconda3/envs/csp3.7/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0,
from /opt/anaconda3/envs/csp3.7/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /opt/anaconda3/envs/csp3.7/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /hdd/projects/hti-traffic/src/deploy/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/opt/anaconda3/envs/csp3.7/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T * data() const {
^~~~
error: command 'g++' failed with exit status 1
The text was updated successfully, but these errors were encountered: