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

error: command '/usr/bin/nvcc' failed with exit status 1 #77

Open
vokhidovhusan opened this issue Dec 24, 2021 · 3 comments
Open

error: command '/usr/bin/nvcc' failed with exit status 1 #77

vokhidovhusan opened this issue Dec 24, 2021 · 3 comments

Comments

@vokhidovhusan
Copy link

vokhidovhusan commented Dec 24, 2021

I am facing following error when run pip install -v -e .

I have tried to look on the internet but haven't found any solution. Anyone could help? Thanks

error: command '/usr/bin/nvcc' failed with exit status 1

Using pip 21.3.1 from /home/husan/.local/lib/python3.8/site-packages/pip (python 3.8)
Obtaining file:///home/husan/projects/face_detection/vedadet
  Running command python setup.py egg_info
  running egg_info
  creating /tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info
  writing /tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/dependency_links.txt
  writing requirements to /tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/requires.txt
  writing top-level names to /tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/top_level.txt
  writing manifest file '/tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/SOURCES.txt'
  adding license file 'LICENSE'
  writing manifest file '/tmp/pip-pip-egg-info-xucshhrg/vedadet.egg-info/SOURCES.txt'
  /home/husan/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:352: 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.'))
  Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (2.4.0)
Requirement already satisfied: terminaltables in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (3.1.10)
Requirement already satisfied: opencv-python in /home/husan/.local/lib/python3.8/site-packages (from vedadet==0.1.0) (4.5.1.48)
Requirement already satisfied: torchvision>=0.7.0 in /home/husan/.local/lib/python3.8/site-packages (from vedadet==0.1.0) (0.8.2)
Requirement already satisfied: pyyaml in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (6.0)
Requirement already satisfied: yapf in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (0.31.0)
Requirement already satisfied: imagecorruptions in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (1.1.2)
Requirement already satisfied: mmpycocotools in /home/husan/anaconda3/envs/vedadet/lib/python3.8/site-packages (from vedadet==0.1.0) (12.0.3)
Requirement already satisfied: pillow>=4.1.1 in /home/husan/.local/lib/python3.8/site-packages (from torchvision>=0.7.0->vedadet==0.1.0) (8.4.0)
Requirement already satisfied: torch==1.7.1 in /home/husan/.local/lib/python3.8/site-packages (from torchvision>=0.7.0->vedadet==0.1.0) (1.7.1)
Requirement already satisfied: numpy in /home/husan/.local/lib/python3.8/site-packages (from torchvision>=0.7.0->vedadet==0.1.0) (1.19.5)
Requirement already satisfied: typing-extensions in /home/husan/.local/lib/python3.8/site-packages (from torch==1.7.1->torchvision>=0.7.0->vedadet==0.1.0) (3.7.4.3)
Requirement already satisfied: scikit-image>=0.15 in /home/husan/.local/lib/python3.8/site-packages (from imagecorruptions->vedadet==0.1.0) (0.18.1)
Requirement already satisfied: scipy>=1.2.1 in /home/husan/.local/lib/python3.8/site-packages (from imagecorruptions->vedadet==0.1.0) (1.7.1)
Requirement already satisfied: cython>=0.27.3 in /home/husan/.local/lib/python3.8/site-packages (from mmpycocotools->vedadet==0.1.0) (0.29.21)
Requirement already satisfied: setuptools>=18.0 in /home/husan/.local/lib/python3.8/site-packages (from mmpycocotools->vedadet==0.1.0) (57.0.0)
Requirement already satisfied: matplotlib>=2.1.0 in /home/husan/.local/lib/python3.8/site-packages (from mmpycocotools->vedadet==0.1.0) (3.3.3)
Requirement already satisfied: cycler>=0.10 in /home/husan/.local/lib/python3.8/site-packages (from matplotlib>=2.1.0->mmpycocotools->vedadet==0.1.0) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in /home/husan/.local/lib/python3.8/site-packages (from matplotlib>=2.1.0->mmpycocotools->vedadet==0.1.0) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/husan/.local/lib/python3.8/site-packages (from matplotlib>=2.1.0->mmpycocotools->vedadet==0.1.0) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/husan/.local/lib/python3.8/site-packages (from matplotlib>=2.1.0->mmpycocotools->vedadet==0.1.0) (2.4.7)
Requirement already satisfied: tifffile>=2019.7.26 in /home/husan/.local/lib/python3.8/site-packages (from scikit-image>=0.15->imagecorruptions->vedadet==0.1.0) (2021.1.11)
Requirement already satisfied: networkx>=2.0 in /home/husan/.local/lib/python3.8/site-packages (from scikit-image>=0.15->imagecorruptions->vedadet==0.1.0) (2.5)
Requirement already satisfied: PyWavelets>=1.1.1 in /home/husan/.local/lib/python3.8/site-packages (from scikit-image>=0.15->imagecorruptions->vedadet==0.1.0) (1.1.1)
Requirement already satisfied: imageio>=2.3.0 in /home/husan/.local/lib/python3.8/site-packages (from scikit-image>=0.15->imagecorruptions->vedadet==0.1.0) (2.9.0)
Requirement already satisfied: six in /home/husan/.local/lib/python3.8/site-packages (from cycler>=0.10->matplotlib>=2.1.0->mmpycocotools->vedadet==0.1.0) (1.15.0)
Requirement already satisfied: decorator>=4.3.0 in /home/husan/.local/lib/python3.8/site-packages (from networkx>=2.0->scikit-image>=0.15->imagecorruptions->vedadet==0.1.0) (4.4.2)
Installing collected packages: vedadet
  Running setup.py develop for vedadet
    Running command /home/husan/anaconda3/envs/vedadet/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/husan/projects/face_detection/vedadet/setup.py'"'"'; __file__='"'"'/home/husan/projects/face_detection/vedadet/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
    running develop
    running egg_info
    writing vedadet.egg-info/PKG-INFO
    writing dependency_links to vedadet.egg-info/dependency_links.txt
    writing requirements to vedadet.egg-info/requires.txt
    writing top-level names to vedadet.egg-info/top_level.txt
    reading manifest file 'vedadet.egg-info/SOURCES.txt'
    adding license file 'LICENSE'
    writing manifest file 'vedadet.egg-info/SOURCES.txt'
    running build_ext
    building 'vedadet.ops.nms.nms_ext' extension
    creating build
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/vedadet
    creating build/temp.linux-x86_64-3.8/vedadet/ops
    creating build/temp.linux-x86_64-3.8/vedadet/ops/nms
    creating build/temp.linux-x86_64-3.8/vedadet/ops/nms/src
    creating build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/cpu
    creating build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/cuda
    gcc -pthread -B /home/husan/anaconda3/envs/vedadet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/husan/.local/lib/python3.8/site-packages/torch/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/TH -I/home/husan/.local/lib/python3.8/site-packages/torch/include/THC -I/home/husan/anaconda3/envs/vedadet/include/python3.8 -c vedadet/ops/nms/src/nms_ext.cpp -o build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/nms_ext.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=nms_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/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/nms_ext.cpp:3:
    /home/husan/.local/lib/python3.8/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)

    vedadet/ops/nms/src/nms_ext.cpp: In function ‘std::vector<std::vector<int, std::allocator<int> > > nms_match(const at::Tensor&, float)’:
    vedadet/ops/nms/src/nms_ext.cpp:39:17: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
       if (dets.type().is_cuda()) {
                     ^
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/nms_ext.cpp:3:
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    gcc -pthread -B /home/husan/anaconda3/envs/vedadet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/husan/.local/lib/python3.8/site-packages/torch/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/TH -I/home/husan/.local/lib/python3.8/site-packages/torch/include/THC -I/home/husan/anaconda3/envs/vedadet/include/python3.8 -c vedadet/ops/nms/src/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=nms_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/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    /home/husan/.local/lib/python3.8/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)

    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp: In instantiation of ‘std::vector<std::vector<int, std::allocator<int> > > nms_match_cpu_kernel(const at::Tensor&, float) [with scalar_t = double]’:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:289:3:   required from here
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:24: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
                   ~~~~~~~~~^~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:219:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
     #define C10_EXPAND_MSVC_WORKAROUND(x) x
                                           ^
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:238:34: note: in expansion of macro ‘C10_UNLIKELY’
     #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
                                      ^~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:285:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
       if (C10_UNLIKELY_OR_CONST(!(cond))) {       \
           ^~~~~~~~~~~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:447:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
         C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__));     \
                                    ^~~~~~~~~~~~~~~~~~~~~
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:3: note: in expansion of macro ‘AT_ASSERTM’
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
       ^~~~~~~~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:24: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
                   ~~~~~~~~~^~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:219:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
     #define C10_EXPAND_MSVC_WORKAROUND(x) x
                                           ^
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:238:34: note: in expansion of macro ‘C10_UNLIKELY’
     #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
                                      ^~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:285:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
       if (C10_UNLIKELY_OR_CONST(!(cond))) {       \
           ^~~~~~~~~~~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:447:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
         C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__));     \
                                    ^~~~~~~~~~~~~~~~~~~~~
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:3: note: in expansion of macro ‘AT_ASSERTM’
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
       ^~~~~~~~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp: In instantiation of ‘std::vector<std::vector<int, std::allocator<int> > > nms_match_cpu_kernel(const at::Tensor&, float) [with scalar_t = float]’:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:289:3:   required from here
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:24: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
                   ~~~~~~~~~^~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:219:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
     #define C10_EXPAND_MSVC_WORKAROUND(x) x
                                           ^
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:238:34: note: in expansion of macro ‘C10_UNLIKELY’
     #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
                                      ^~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:285:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
       if (C10_UNLIKELY_OR_CONST(!(cond))) {       \
           ^~~~~~~~~~~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:447:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
         C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__));     \
                                    ^~~~~~~~~~~~~~~~~~~~~
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:3: note: in expansion of macro ‘AT_ASSERTM’
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
       ^~~~~~~~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:24: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
                   ~~~~~~~~~^~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:219:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
     #define C10_EXPAND_MSVC_WORKAROUND(x) x
                                           ^
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:238:34: note: in expansion of macro ‘C10_UNLIKELY’
     #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
                                      ^~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:285:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
       if (C10_UNLIKELY_OR_CONST(!(cond))) {       \
           ^~~~~~~~~~~~~~~~~~~~~
    /home/husan/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:447:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
         C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__));     \
                                    ^~~~~~~~~~~~~~~~~~~~~
    vedadet/ops/nms/src/cpu/nms_cpu.cpp:223:3: note: in expansion of macro ‘AT_ASSERTM’
       AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
       ^~~~~~~~~~
    In file included from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cpu/nms_cpu.cpp:5:
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    gcc -pthread -B /home/husan/anaconda3/envs/vedadet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/husan/.local/lib/python3.8/site-packages/torch/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/TH -I/home/husan/.local/lib/python3.8/site-packages/torch/include/THC -I/home/husan/anaconda3/envs/vedadet/include/python3.8 -c vedadet/ops/nms/src/cuda/nms_cuda.cpp -o build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/cuda/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=nms_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/husan/.local/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                     from /home/husan/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                     from vedadet/ops/nms/src/cuda/nms_cuda.cpp:2:
    /home/husan/.local/lib/python3.8/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/bin/nvcc -DWITH_CUDA -I/home/husan/.local/lib/python3.8/site-packages/torch/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/husan/.local/lib/python3.8/site-packages/torch/include/TH -I/home/husan/.local/lib/python3.8/site-packages/torch/include/THC -I/home/husan/anaconda3/envs/vedadet/include/python3.8 -c vedadet/ops/nms/src/cuda/nms_kernel.cu -o build/temp.linux-x86_64-3.8/vedadet/ops/nms/src/cuda/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -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=nms_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
    /usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

    /usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

    /usr/include/c++/8/utility(329): error: expected a ">"
              detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>"
    (340): here

    /usr/include/c++/8/utility(307): error: identifier "__integer_pack" is undefined
              detected during:
                instantiation of class "std::_Build_index_tuple<_Num> [with _Num=1UL]"
    /usr/include/c++/8/functional(389): here
                instantiation of class "std::_Bind<_Functor (_Bound_args...)> [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]"
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/ivalue_inl.h(393): here

    /usr/include/c++/8/utility(307): error: expected a ">"
              detected during:
                instantiation of class "std::_Build_index_tuple<_Num> [with _Num=1UL]"
    /usr/include/c++/8/functional(389): here
                instantiation of class "std::_Bind<_Functor (_Bound_args...)> [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]"
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/ivalue_inl.h(393): here

    /usr/include/c++/8/functional(482): error: no instance of function template "std::_Bind<_Functor (_Bound_args...)>::__call [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]" matches the argument list
                argument types are: (std::tuple<>, <error-type>)
                object type is: std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>
              detected during:
                instantiation of "_Result std::_Bind<_Functor (_Bound_args...)>::operator()(_Args &&...) [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>, _Args=<>, _Result=void]"
    /usr/include/c++/8/bits/std_function.h(298): here
                instantiation of "void std::_Function_handler<void (_ArgTypes...), _Functor>::_M_invoke(const std::_Any_data &, _ArgTypes &&...) [with _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, _ArgTypes=<>]"
    /usr/include/c++/8/bits/std_function.h(675): here
                instantiation of "std::function<_Res (_ArgTypes...)>::function(_Functor) [with _Res=void, _ArgTypes=<>, _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, <unnamed>=void, <unnamed>=void]"
    /home/husan/.local/lib/python3.8/site-packages/torch/include/ATen/core/ivalue_inl.h(385): here

    6 errors detected in the compilation of "/tmp/tmpxft_00008cc9_00000000-6_nms_kernel.cpp1.ii".
    /home/husan/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:352: 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/bin/nvcc' failed with exit status 1
ERROR: Command errored out with exit status 1: /home/husan/anaconda3/envs/vedadet/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/husan/projects/face_detection/vedadet/setup.py'"'"'; __file__='"'"'/home/husan/projects/face_detection/vedadet/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
@gd1925
Copy link

gd1925 commented Apr 21, 2022

Hi,

I am also facing the same issue.
Were you able to solve it? Could you please direct me?
Thank you for your kind help.

@gkrisp98
Copy link

Hi, I am also facing this problem

@srujohn
Copy link

srujohn commented Oct 16, 2023

Did anyone solve it??

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

4 participants