You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use MMCV_WITH_OPS=1 pip install -e . -v () to install mmcv-full, the error is as follows
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///home/orin/code/RVSA/mmcv
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (2.4.0)
Requirement already satisfied: numpy in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (1.24.4)
Requirement already satisfied: packaging in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (24.2)
Requirement already satisfied: Pillow in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (6.2.2)
Requirement already satisfied: pyyaml in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (6.0.2)
Requirement already satisfied: yapf in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from mmcv-full==1.4.1) (0.43.0)
Requirement already satisfied: platformdirs>=3.5.1 in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from yapf->mmcv-full==1.4.1) (4.3.6)
Requirement already satisfied: tomli>=2.0.1 in /home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages (from yapf->mmcv-full==1.4.1) (2.2.1)
Installing collected packages: mmcv-full
DEPRECATION: Legacy editable install of mmcv-full==1.4.1 from file:///home/orin/code/RVSA/mmcv (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
Running setup.py develop for mmcv-full
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [273 lines of output]
running develop
running egg_info
creating mmcv_full.egg-info
writing mmcv_full.egg-info/PKG-INFO
writing dependency_links to mmcv_full.egg-info/dependency_links.txt
writing requirements to mmcv_full.egg-info/requires.txt
writing top-level names to mmcv_full.egg-info/top_level.txt
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
reading manifest file 'mmcv_full.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSES.md'
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
Emitting ninja build file /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (7) as the number of workers...
/home/orin/code/RVSA/mmcv/setup.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import DistributionNotFound, get_distribution
/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
[1/89] c++ -MMD -MF /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/border_align.o.d -pthread -B /home/orin/anaconda3/envs/RVSA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/border_align.cpp -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/border_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[37/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/gather_points_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/gather_points_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[38/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/knn_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/knn_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[39/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/masked_conv2d_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/masked_conv2d_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[40/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/psamask_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/psamask_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
FAILED: /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/psamask_cuda.o
/usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/psamask_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/psamask_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/psamask_cuda.cu:5:10: fatal error: THC/THC.h: 没有那个文件或目录
5 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[41/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[42/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/iou3d_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/iou3d_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[43/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/ms_deform_attn_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/ms_deform_attn_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[44/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/nms_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/nms_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[45/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/points_in_boxes_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/points_in_boxes_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
[46/89] /usr/local/cuda-11.4/bin/nvcc -DMMCV_WITH_CUDA -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common -I/home/orin/code/RVSA/mmcv/mmcv/ops/csrc/common/cuda -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/TH -I/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.4/include -I/home/orin/anaconda3/envs/RVSA/include/python3.8 -c -c /home/orin/code/RVSA/mmcv/mmcv/ops/csrc/pytorch/cuda/nms_rotated_cuda.cu -o /home/orin/code/RVSA/mmcv/build/temp.linux-aarch64-cpython-38/mmcv/ops/csrc/pytorch/cuda/nms_rotated_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'"'"'' -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_87,code=compute_87 -gencode=arch=compute_87,code=sm_87
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '7']' 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 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/orin/code/RVSA/mmcv/setup.py", line 359, in <module>
setup(
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/command/develop.py", line 35, in run
self.install_for_development()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/command/develop.py", line 112, in install_for_development
self.run_command('build_ext')
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run
_build_ext.run(self)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 741, in build_extensions
build_ext.build_extensions(self)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
self._build_extensions_serial()
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
self.build_extension(ext)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
_build_ext.build_extension(self, ext)
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
objects = self.compiler.compile(
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 562, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Successfully installed using MMCV_WITH_OPS=1 pip install --use-pep517 -e .
But when executing python, an error occurs
python tools/test.py
/home/orin/anaconda3/envs/RVSA/lib/python3.8/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
Traceback (most recent call last):
File "tools/test.py", line 18, in <module>
from mmseg.apis import multi_gpu_test, single_gpu_test
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/apis/__init__.py", line 2, in <module>
from .inference import inference_segmentor, init_segmentor, show_result_pyplot
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/apis/inference.py", line 9, in <module>
from mmseg.models import build_segmentor
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/__init__.py", line 2, in <module>
from .backbones import * # noqa: F401,F403
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/backbones/__init__.py", line 6, in <module>
from .fast_scnn import FastSCNN
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/backbones/fast_scnn.py", line 7, in <module>
from mmseg.models.decode_heads.psp_head import PPM
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/decode_heads/__init__.py", line 2, in <module>
from .ann_head import ANNHead
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/decode_heads/ann_head.py", line 8, in <module>
from .decode_head import BaseDecodeHead
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/decode_heads/decode_head.py", line 11, in <module>
from ..losses import accuracy
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/losses/__init__.py", line 6, in <module>
from .focal_loss import FocalLoss
File "/home/orin/code/RVSA/Semantic_Segmentation/mmseg/models/losses/focal_loss.py", line 6, in <module>
from mmcv.ops import sigmoid_focal_loss as _sigmoid_focal_loss
File "/home/orin/code/RVSA/mmcv/mmcv/ops/__init__.py", line 10, in <module>
from .corner_pool import CornerPool
File "/home/orin/code/RVSA/mmcv/mmcv/ops/corner_pool.py", line 8, in <module>
ext_module = ext_loader.load_ext('_ext', [
File "/home/orin/code/RVSA/mmcv/mmcv/utils/ext_loader.py", line 15, in load_ext
assert hasattr(ext, fun), f'{fun} miss in module {name}'
AssertionError: top_pool_forward miss in module _ext
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered:
📚 The doc issue
[Docs] Failed to install mmcv-full on Jetson Orin AGX
I installed mmcv-full using source code on Jetson orin agx
Environment:
cuda 11.4 torch==1.11.0 torchvision==0.10.0
Step:
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
pip install -r requirements/optional.txt
git checkout v1.4.1
Use
MMCV_WITH_OPS=1 pip install -e . -v ()
to install mmcv-full, the error is as followsSuccessfully installed using
MMCV_WITH_OPS=1 pip install --use-pep517 -e .
But when executing python, an error occurs
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: