Comments (13)
Hi,good morningοΌI solved that problemοΌ this I update the CUDA-10.1.125 to CUDA-10.1.243 and then None Error, I compile it so goodοΌI'm very happy and share with U of your help!
from alphaction.
This is not the right way to install. You should follow the instructions in INSTALL.md.
Lines 20 to 32 in bcb6b16
Please use pip install -e .
instead of python setup.py install
.
from alphaction.
Thank you for your reply! I try it with python setup.py install. but i got 3 Error about CUDA ! I don't know Y?
~/AlphAction$ python setup.py install
error: cannot call member function βvoid std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]β without object
__p->_M_set_sharable();
~~~~~~~~~^~
error: cannot call member function βvoid std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]β without object
error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1`
My CUDA_HOME is this!
(alphaction) zhangzhenbo@zhangzhenbo:~$ echo $CUDA_HOME
/usr/local/cuda-10.1
(alphaction) zhangzhenbo@zhangzhenbo:~$ echo $LD_LIBRARY_PATH
/usr/local/cuda-10.1/lib64:/usr/local/cuda/lib64:
with this Error I work all of the day!!!!!!!!!!!!!! Thank you for your helpοΌοΌοΌοΌοΌοΌοΌοΌοΌοΌοΌοΌ
from alphaction.
I have the nvcc in the bin
(alphaction) zhangzhenbo@zhangzhenbo:/usr/local/cuda-10.1/bin$ ls
bin2c crt cuda-gdb cuda-install-samples-10.1.sh cuda-uninstaller fatbinary nsight nvcc nvdisasm nvprof nvvp
computeprof cudafe++ cuda-gdbserver cuda-memcheck cuobjdump gpu-library-advisor nsight_ee_plugins_manage.sh nvcc.profile nvlink nvprune ptxas
from alphaction.
I'd recommend that you try the following steps to see what the problem is.
- Try
nvcc --version
in the shell, to see if it is in thePATH
. - Run
python -c 'from torch.utils.collect_env import main; main()
to see the environment. - Remove
build/
directory, then re-run the installation command. - Try
pip install -e .
instead ofpython setup.py install
.
If these still not help you sort things out, please provide me with what you got in each step so that I will have more detailed information to assist.
from alphaction.
1 ### (alphaction) zhangzhenbo@:~/AlphAction$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105
2 ### (alphaction) zhangzhenbo@:~/AlphAction$ python -c 'from torch.utils.collect_env import main; main()'
Collecting environment information...
PyTorch version: 1.6.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 18.04.5 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.1.105
GPU models and configuration: GPU 0: GeForce GTX 1060
Nvidia driver version: 440.95.01
cuDNN version: /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7
Versions of relevant libraries:
[pip3] numpy==1.19.2
[pip3] torch==1.6.0+cu101
[pip3] torchvision==0.7.0+cu101
[conda] numpy 1.19.2 py37h7008fea_1 conda-forge
[conda] torch 1.6.0+cu101 pypi_0 pypi
[conda] torchvision 0.7.0+cu101 pypi_0 pypi
3 ### (alphaction) zhangzhenbo@:~/AlphAction$ pip install -e /home/zhangzhenbo/AlphAction
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Obtaining file:///home/zhangzhenbo/AlphAction
Collecting tqdm
Downloading http://mirrors.aliyun.com/pypi/packages/bd/cf/f91813073e4135c1183cadf968256764a6fe4e35c351d596d527c0540461/tqdm-4.50.2-py2.py3-none-any.whl (70 kB)
|ββββββββββββββββββββββββββββββββ| 70 kB 1.0 MB/s
Collecting yacs
Downloading http://mirrors.aliyun.com/pypi/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting opencv-python
Downloading http://mirrors.aliyun.com/pypi/packages/01/d0/23b56d1c4a301d57ffa5d9aa0df9894053e43e439c9a710c8986ad7b3999/opencv_python-4.4.0.44-cp37-cp37m-manylinux2014_x86_64.whl (49.5 MB)
|ββββββββββββββββββββββββββββββββ| 49.5 MB 2.4 MB/s
Collecting tensorboardX
Downloading http://mirrors.aliyun.com/pypi/packages/af/0c/4f41bcd45db376e6fe5c619c01100e9b7531c55791b7244815bac6eac32c/tensorboardX-2.1-py2.py3-none-any.whl (308 kB)
|ββββββββββββββββββββββββββββββββ| 308 kB 2.0 MB/s
Collecting SciPy
Downloading http://mirrors.aliyun.com/pypi/packages/fa/cf/94686c3e2b21cba82904a2bbb014f7529d483021802a0116c3a256b00563/scipy-1.5.3-cp37-cp37m-manylinux1_x86_64.whl (25.9 MB)
|ββββββββββββββββββββββββββββββββ| 25.9 MB 1.8 MB/s
Collecting matplotlib
Downloading http://mirrors.aliyun.com/pypi/packages/87/a6/8d7d06f6b69236a3c1818157875ceb1259ba0d9df4194f4fe138ffdc0f41/matplotlib-3.3.2-cp37-cp37m-manylinux1_x86_64.whl (11.6 MB)
|ββββββββββββββββββββββββββββββββ| 11.6 MB 1.3 MB/s
Processing /home/zhangzhenbo/.cache/pip/wheels/be/57/16/c6253d5cbc98329955ab97ec63d11fc76267ea5692ed09b393/cython_bbox-0.1.3-cp37-cp37m-linux_x86_64.whl
Processing /home/zhangzhenbo/.cache/pip/wheels/ce/47/36/5ebebaa65694b675396178a507f6410b18c5591d35ee5ad8d0/easydict-1.9-py3-none-any.whl
Processing /home/zhangzhenbo/.cache/pip/wheels/68/c3/cf/371f007b41effebe74753f72929935c6b83c015434b9bbeeb0/PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl
Requirement already satisfied: numpy>=1.14.5 in /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages (from opencv-python->alphaction==0.0.0) (1.19.2)
Collecting six
Downloading http://mirrors.aliyun.com/pypi/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting protobuf>=3.8.0
Downloading http://mirrors.aliyun.com/pypi/packages/71/dc/5ba56eab7440c62c5f808b4267e2a1d6c136e90293b43fefb1b493c6d704/protobuf-3.13.0-cp37-cp37m-manylinux1_x86_64.whl (1.3 MB)
|ββββββββββββββββββββββββββββββββ| 1.3 MB 1.1 MB/s
Collecting python-dateutil>=2.1
Downloading http://mirrors.aliyun.com/pypi/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|ββββββββββββββββββββββββββββββββ| 227 kB 560 kB/s
Requirement already satisfied: certifi>=2020.06.20 in /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (2020.6.20)
Requirement already satisfied: pillow>=6.2.0 in /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (8.0.0)
Collecting kiwisolver>=1.0.1
Downloading http://mirrors.aliyun.com/pypi/packages/31/b9/6202dcae729998a0ade30e80ac00f616542ef445b088ec970d407dfd41c0/kiwisolver-1.2.0-cp37-cp37m-manylinux1_x86_64.whl (88 kB)
|ββββββββββββββββββββββββββββββββ| 88 kB 29.1 MB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
Downloading http://mirrors.aliyun.com/pypi/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|ββββββββββββββββββββββββββββββββ| 67 kB 14.3 MB/s
Collecting cycler>=0.10
Downloading http://mirrors.aliyun.com/pypi/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Requirement already satisfied: setuptools in /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages (from protobuf>=3.8.0->tensorboardX->alphaction==0.0.0) (50.3.0.post20201006)
Installing collected packages: tqdm, PyYAML, yacs, opencv-python, six, protobuf, tensorboardX, SciPy, python-dateutil, kiwisolver, pyparsing, cycler, matplotlib, cython-bbox, easydict, alphaction
Running setup.py develop for alphaction
ERROR: Command errored out with exit status 1:
command: /home/zhangzhenbo/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"'; file='"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/zhangzhenbo/AlphAction/
Complete output (52 lines):
running develop
running egg_info
writing alphaction.egg-info/PKG-INFO
writing dependency_links to alphaction.egg-info/dependency_links.txt
writing requirements to alphaction.egg-info/requires.txt
writing top-level names to alphaction.egg-info/top_level.txt
reading manifest file 'alphaction.egg-info/SOURCES.txt'
writing manifest file 'alphaction.egg-info/SOURCES.txt'
running build_ext
building 'alphaction._custom_cuda_ext' extension
creating build
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/zhangzhenbo
creating build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction
creating build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction
creating build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc
creating build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda
gcc -pthread -B /home/zhangzhenbo/anaconda3/envs/alphaction/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/zhangzhenbo/AlphAction/alphaction/csrc -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/include/python3.7m -c /home/zhangzhenbo/AlphAction/alphaction/csrc/vision.cpp -o build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option β-Wstrict-prototypesβ is valid for C/ObjC but not for C++
In file included from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
from /home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/zhangzhenbo/AlphAction/alphaction/csrc/cpu/vision.h:2,
from /home/zhangzhenbo/AlphAction/alphaction/csrc/ROIAlign3d.h:3,
from /home/zhangzhenbo/AlphAction/alphaction/csrc/vision.cpp:1:
/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
/usr/local/cuda-10.1/bin/nvcc -DWITH_CUDA -I/home/zhangzhenbo/AlphAction/alphaction/csrc -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/zhangzhenbo/anaconda3/envs/alphaction/include/python3.7m -c /home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.cu -o build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14
/usr/include/c++/7/bits/basic_string.tcc: In instantiation of βstatic std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]β:
/usr/include/c++/7/bits/basic_string.tcc:578:28: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]β
/usr/include/c++/7/bits/basic_string.h:5042:20: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]β
/usr/include/c++/7/bits/basic_string.h:5063:24: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]β
/usr/include/c++/7/bits/basic_string.tcc:656:134: required from βstd::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]β
/usr/include/c++/7/bits/basic_string.h:6688:95: required from here
/usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function βvoid std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]β without object
__p->_M_set_sharable();
~~~~~~~~~^~
/usr/include/c++/7/bits/basic_string.tcc: In instantiation of βstatic std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]β:
/usr/include/c++/7/bits/basic_string.tcc:578:28: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]β
/usr/include/c++/7/bits/basic_string.h:5042:20: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]β
/usr/include/c++/7/bits/basic_string.h:5063:24: required from βstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]β
/usr/include/c++/7/bits/basic_string.tcc:656:134: required from βstd::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]β
/usr/include/c++/7/bits/basic_string.h:6693:95: required from here
/usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function βvoid std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]β without object
/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py:335: UserWarning: Attempted to 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.'))
error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/zhangzhenbo/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"'; file='"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
from alphaction.
. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1
could not found ninja ? command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1? both them is the problem key?
from alphaction.
I've never met this problem before. Maybe you could try this? pytorch/vision#1893 (comment) Upgrade CUDA10.1 to the newest version 10.1.243.
from alphaction.
Cheers! π» π
from alphaction.
@yelantf
Hi, I also failed to install and it doesn't look like the error of others. Could you give me some advice?
My environment is :
ubuntu 18.04
Cuda version: 10.2
driver version: 440.100
Cuda compilation tools, release 9.1, V9.1.85
python 3.7
pytorch 1.4
gcc-7(default) gcc-6
My error log when installing setup.py :
/usr/include/c++/6/tuple:502:1: error: body of constexpr function βstatic constexpr bool std::_TC<<anonymous>, _Elements>::_NonNestedTuple() [with _SrcTuple = const std::tuple<at::Tensor&, at::Tensor&, at::Tensor&>&; bool <anonymous> = true; _Elements = {at::Tensor&, at::Tensor&, at::Tensor&}]β not a return-statement
}
^
/usr/include/c++/6/tuple: In instantiation of βstatic constexpr bool std::_TC<<anonymous>, _Elements>::_NonNestedTuple() [with _SrcTuple = std::tuple<at::Tensor&, at::Tensor&, at::Tensor&>&&; bool <anonymous> = true; _Elements = {at::Tensor&, at::Tensor&, at::Tensor&}]β:
/usr/include/c++/6/tuple:686:422: required by substitution of βtemplate<class ... _UElements, class _Dummy, typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), at::Tensor&, at::Tensor&, at::Tensor&>::_MoveConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor&, at::Tensor&, at::Tensor&>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), at::Tensor&, at::Tensor&, at::Tensor&>::_NonNestedTuple<tuple<_Elements ...>&&>()), bool>::type <anonymous> > constexpr std::tuple< <template-parameter-1-1> >::tuple(std::tuple<_Args1 ...>&&) [with _UElements = {at::Tensor&, at::Tensor&, at::Tensor&}; _Dummy = void; typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), at::Tensor&, at::Tensor&, at::Tensor&>::_MoveConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor&, at::Tensor&, at::Tensor&>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), at::Tensor&, at::Tensor&, at::Tensor&>::_NonNestedTuple<tuple<_Elements ...>&&>()), bool>::type <anonymous> = <missing>]β
/home/ming-y/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Functions.h:12220:194: required from here
/usr/include/c++/6/tuple:495:244: error: wrong number of template arguments (4, should be 2)
return __and_<__not_<is_same<tuple<_Elements...>,
^
/usr/include/c++/6/type_traits:1558:8: note: provided for βtemplate<class _From, class _To> struct std::is_convertibleβ
struct is_convertible
^~~~~~~~~~~~~~
/usr/include/c++/6/tuple:502:1: error: body of constexpr function βstatic constexpr bool std::_TC<<anonymous>, _Elements>::_NonNestedTuple() [with _SrcTuple = std::tuple<at::Tensor&, at::Tensor&, at::Tensor&>&&; bool <anonymous> = true; _Elements = {at::Tensor&, at::Tensor&, at::Tensor&}]β not a return-statement
}
^
error: command '/usr/bin/nvcc' failed with exit status 1
from alphaction.
@WinstonDeng So your nvcc tools is in V9.1? The nvcc version should be consistent with that built with PyTorch. You may need to install cudatoolkit with version 10.2 to make sure nvcc --version
shows 10.2. You could also refer to this issue for potentially helpful information.
from alphaction.
@WinstonDeng So your nvcc tools is in V9.1? The nvcc version should be consistent with that built with PyTorch. You may need to install cudatoolkit with version 10.2 to make sure
nvcc --version
shows 10.2. You could also refer to this issue for potentially helpful information.
Thanks for your help! I finish it after updating my cuda envs.
from alphaction.
@yelantf
Hi, I also failed to install and the problem is similar to @Seiano .
However, the version of my CUDA is the latest. Hope you can help, thanks very much!
The following is my related operation.
1. (alphaction) htw@medianet-MS-7885:~/AlphAction$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
2.(alphaction) htw@medianet-MS-7885:~/AlphAction$ python -c 'from torch.utils.collect_env import main; main()'
Collecting environment information...
PyTorch version: 1.8.1
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.13.3
Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration:
GPU 0: GeForce GTX 1080 Ti
GPU 1: GeForce GTX 1080 Ti
Nvidia driver version: 455.32.00
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.1.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.1.0
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.1.0
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] numpy==1.19.2
[pip3] torch==1.8.1
[pip3] torchaudio==0.8.0a0+e4e171a
[pip3] torchvision==0.9.1
[conda] blas 1.0 mkl
[conda] cudatoolkit 11.1.1 h6406543_8 conda-forge
[conda] mkl 2020.4 h726a3e6_304 conda-forge
[conda] mkl-service 2.3.0 py37h8f50634_2 conda-forge
[conda] mkl_fft 1.3.0 py37h902c9e0_1 conda-forge
[conda] mkl_random 1.2.0 py37h9fdb41a_1 conda-forge
[conda] numpy 1.19.2 py37h54aff64_0
[conda] numpy-base 1.19.2 py37hfa32c7d_0
[conda] pytorch 1.8.1 py3.7_cuda11.1_cudnn8.0.5_0 pytorch
[conda] torchaudio 0.8.1 py37 pytorch
[conda] torchvision 0.9.1 py37_cu111 pytorch
3.(alphaction) htw@medianet-MS-7885:~/AlphAction$ pip install -e .
Obtaining file:///home/htw/AlphAction
Requirement already satisfied: tqdm in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (4.60.0)
Requirement already satisfied: yacs in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (0.1.8)
Requirement already satisfied: opencv-python in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (4.5.1.48)
Requirement already satisfied: tensorboardX in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (2.2)
Requirement already satisfied: SciPy in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (1.6.2)
Requirement already satisfied: matplotlib in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (3.4.1)
Requirement already satisfied: cython-bbox in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (0.1.3)
Requirement already satisfied: easydict in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from alphaction==0.0.0) (1.9)
Requirement already satisfied: python-dateutil>=2.7 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (2.8.1)
Requirement already satisfied: pyparsing>=2.2.1 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (2.4.7)
Requirement already satisfied: numpy>=1.16 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (1.19.2)
Requirement already satisfied: cycler>=0.10 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (1.3.1)
Requirement already satisfied: pillow>=6.2.0 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from matplotlib->alphaction==0.0.0) (8.2.0)
Requirement already satisfied: six in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from cycler>=0.10->matplotlib->alphaction==0.0.0) (1.15.0)
Requirement already satisfied: protobuf>=3.8.0 in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from tensorboardX->alphaction==0.0.0) (3.15.8)
Requirement already satisfied: PyYAML in /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages (from yacs->alphaction==0.0.0) (5.4.1)
Installing collected packages: alphaction
Running setup.py develop for alphaction
ERROR: Command errored out with exit status 1:
command: /home/htw/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/htw/AlphAction/setup.py'"'"'; file='"'"'/home/htw/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/htw/AlphAction/
Complete output (106 lines):
running develop
running egg_info
writing alphaction.egg-info/PKG-INFO
writing dependency_links to alphaction.egg-info/dependency_links.txt
writing requirements to alphaction.egg-info/requires.txt
writing top-level names to alphaction.egg-info/top_level.txt
reading manifest file 'alphaction.egg-info/SOURCES.txt'
writing manifest file 'alphaction.egg-info/SOURCES.txt'
running build_ext
building 'alphaction.custom_cuda_ext' extension
creating /home/htw/AlphAction/build
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc
creating /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda
Emitting ninja build file /home/htw/AlphAction/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/5] :/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.o
:/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found
[2/5] :/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o
:/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found
[3/5] :/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o
:/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found
[4/5] :/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.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'"'"'' -O3 -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=custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
FAILED: /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.o
:/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.o.d -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.cu -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.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'"'"'' -O3 -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=_custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/bin/sh: 1: :/usr/local/cuda/bin/nvcc: not found
[5/5] c++ -MMD -MF /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/vision.o.d -pthread -B /home/htw/anaconda3/envs/alphaction/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/htw/AlphAction/alphaction/csrc -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/TH -I/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda/include -I/home/htw/anaconda3/envs/alphaction/include/python3.7m -c -c /home/htw/AlphAction/alphaction/csrc/vision.cpp -o /home/htw/AlphAction/build/temp.linux-x86_64-3.7/home/htw/AlphAction/alphaction/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_custom_cuda_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option β-Wstrict-prototypesβ is valid for C/ObjC but not for C++
In file included from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/htw/AlphAction/alphaction/csrc/cpu/vision.h:2,
from /home/htw/AlphAction/alphaction/csrc/ROIAlign3d.h:3,
from /home/htw/AlphAction/alphaction/csrc/vision.cpp:1:
/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
env=env)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/htw/AlphAction/setup.py", line 121, in <module>
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/develop.py", line 136, in install_for_development
self.run_command('build_ext')
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/htw/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------
ERROR: Command errored out with exit status 1: /home/htw/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/htw/AlphAction/setup.py'"'"'; file='"'"'/home/htw/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
from alphaction.
Related Issues (20)
- INSTALL.md Issue when running pip install -e . HOT 4
- Train on custom dataset HOT 1
- Init weight for DenseSerialIAStructure
- RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation HOT 2
- The detection person box of UCF24 using Faster RCNN in this paper
- TypeError: conv3d() received an invalid combination of arguments HOT 5
- Problem during installation
- No module named 'alphaction._custom_cuda_ext'
- THC/THC.h: No such file or directory HOT 1
- Access to download the data HOT 1
- key frames HOT 4
- windows system HOT 1
- boxes annotation HOT 1
- json files HOT 1
- Duplicate Modle Zoo to Baidu Netdisk
- Can we use this for JHMDB dataset ?
- difference between the realtime and non-realtime inference
- Error while Training HOT 1
- OSError: cannot open resource
- size mismatch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alphaction.