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

install wrong #108

Open
mylovefanghui opened this issue Jul 19, 2023 · 1 comment
Open

install wrong #108

mylovefanghui opened this issue Jul 19, 2023 · 1 comment

Comments

@mylovefanghui
Copy link

when i run python setup.py build develop,error occur:
nvcc fatal : Failed to preprocess host compiler properties.
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
Does anyone know what the reason is for this error? Thank you very much.

@mylovefanghui
Copy link
Author

This is the complete error message:
(fe) zhouwen@eclab:~/bottom-up-attention.pytorch$ python setup.py build develop
running build
running build_py
running build_ext
/home/zhouwen/Libs/anaconda3/envs/fe/lib/python3.7/site-packages/torch/utils/cpp_extension.py:411: UserWarning: Attempted t o use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
building 'bua.caffe.modeling.C' extension
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/zhouwen/bottom-up-attention.pytorch/bua/caffe/modeling/layers/csrc -I/home/zho uwen/Libs/anaconda3/envs/fe/lib/python3.7/site-packages/torch/include -I/home/zhouwen/Libs/anaconda3/envs/fe/lib/python3.7/ site-packages/torch/include/torch/csrc/api/include -I/home/zhouwen/Libs/anaconda3/envs/fe/lib/python3.7/site-packages/torch /include/TH -I/home/zhouwen/Libs/anaconda3/envs/fe/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/zhouwen/Libs/anaconda3/envs/fe/include/python3.7m -c /home/zhouwen/bottom-up-attention.pytorch/bua/caffe/modeling/l ayers/csrc/nms/nms.cu -o build/temp.linux-x86_64-cpython-37/home/zhouwen/bottom-up-attention.pytorch/bua/caffe/modeling/lay ers/csrc/nms/nms.o -D__CUDA_NO_HALF_OPERATORS
_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_ NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D_ CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
nvcc fatal : Failed to preprocess host compiler properties.
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1

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

1 participant