git clone https://github.com/open-mmlab/mmdetection3d.git
cd mmdetection3d
git checkout v0.17.1 # Other versions may not be compatible.
pip install -v -e .
Reproduces the problem - command or script
git clone https://github.com/open-mmlab/mmdetection3d.git
cd mmdetection3d
git checkout v0.17.1 # Other versions may not be compatible.
pip install -v -e .
Reproduces the problem - error message
(open-mmlab) D:\Yux\program\VoxFormer\mmdetection3d>pip install -e .
Obtaining file:///D:/Yux/program/VoxFormer/mmdetection3d
Preparing metadata (setup.py) ... done
Requirement already satisfied: types-python-dateutil>=2.8.10 in g:\anaconda3\envs\open-mmlab\lib\site-packages (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter->nuscenes-devkit->mmdet3d==0.17.1) (2.9.0.20240316)
Installing collected packages: mmdet3d
Running setup.py develop for mmdet3d
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [1016 lines of output]
running develop
running egg_info
writing mmdet3d.egg-info\PKG-INFO
writing dependency_links to mmdet3d.egg-info\dependency_links.txt
writing requirements to mmdet3d.egg-info\requires.txt
writing top-level names to mmdet3d.egg-info\top_level.txt
reading manifest file 'mmdet3d.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
G:\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\command\develop.py:40: 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)
G:\anaconda3\envs\open-mmlab\lib\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()
G:\anaconda3\envs\open-mmlab\lib\site-packages\torch\utils\cpp_extension.py:370: 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.'))
warning: no files found matching '*.cpp' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.cu' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.h' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.cc' under directory 'mmdet3d\.mim\ops'
adding license file 'LICENSE'
writing manifest file 'mmdet3d.egg-info\SOURCES.txt'
running build_ext
building 'mmdet3d.ops.spconv.sparse_conv_ext' extension
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\Yux\program\VoxFormer\mmdetection3d\mmdet3d\ops\spconv\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\torch\csrc\api\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\TH -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -IG:\anaconda3\envs\open-mmlab\include -IG:\anaconda3\envs\open-mmlab\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpmmdet3d\ops\spconv\src/all.cc /Fobuild\temp.win-amd64-cpython-38\Release\mmdet3d\ops\spconv\src/all.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
all.cc
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\Yux\program\VoxFormer\mmdetection3d\mmdet3d\ops\spconv\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\torch\csrc\api\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\TH -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -IG:\anaconda3\envs\open-mmlab\include -IG:\anaconda3\envs\open-mmlab\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpmmdet3d\ops\spconv\src/indice.cc /Fobuild\temp.win-amd64-cpython-38\Release\mmdet3d\ops\spconv\src/indice.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
indice.cc
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc" -c mmdet3d\ops\spconv\src/indice_cuda.cu -o build\temp.win-amd64-cpython-38\Release\mmdet3d\ops\spconv\src/indice_cuda.obj -ID:\Yux\program\VoxFormer\mmdetection3d\mmdet3d\ops\spconv\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\torch\csrc\api\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\TH -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -IG:\anaconda3\envs\open-mmlab\include -IG:\anaconda3\envs\open-mmlab\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -w -std=c++14 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --use-local-env
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1260): error: expected a "("
detected during instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const char *, _Sentinel=const char *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xlocale(1971): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1261): error: identifier "_Verify_range" is undefined
detected during instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const char *, _Sentinel=const char *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xlocale(1971): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1260): error: expected a "("
detected during instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=__wchar_t *, _Sentinel=__wchar_t *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xlocale(1972): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1261): error: identifier "_Verify_range" is undefined
detected during instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=__wchar_t *, _Sentinel=__wchar_t *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xlocale(1972): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1260): error: expected a "("
detected during instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const __wchar_t *, _Sentinel=const __wchar_t *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xlocale(2007): here
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=int64_t *, _Sentinel=int64_t *]"
(4330): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1276): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1278): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1279): error: expression must have class type
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
Error limit reached.
100 errors detected in the compilation of "mmdet3d/ops/spconv/src/indice_cuda.cu".
Compilation terminated.
indice_cuda.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [1016 lines of output]
running develop
running egg_info
writing mmdet3d.egg-info\PKG-INFO
writing dependency_links to mmdet3d.egg-info\dependency_links.txt
writing requirements to mmdet3d.egg-info\requires.txt
writing top-level names to mmdet3d.egg-info\top_level.txt
reading manifest file 'mmdet3d.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
G:\anaconda3\envs\open-mmlab\lib\site-packages\setuptools\command\develop.py:40: 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)
G:\anaconda3\envs\open-mmlab\lib\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()
G:\anaconda3\envs\open-mmlab\lib\site-packages\torch\utils\cpp_extension.py:370: 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.'))
warning: no files found matching '*.cpp' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.cu' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.h' under directory 'mmdet3d\.mim\ops'
warning: no files found matching '*.cc' under directory 'mmdet3d\.mim\ops'
adding license file 'LICENSE'
writing manifest file 'mmdet3d.egg-info\SOURCES.txt'
running build_ext
building 'mmdet3d.ops.spconv.sparse_conv_ext' extension
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\Yux\program\VoxFormer\mmdetection3d\mmdet3d\ops\spconv\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\torch\csrc\api\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\TH -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -IG:\anaconda3\envs\open-mmlab\include -IG:\anaconda3\envs\open-mmlab\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpmmdet3d\ops\spconv\src/all.cc /Fobuild\temp.win-amd64-cpython-38\Release\mmdet3d\ops\spconv\src/all.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
all.cc
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\Yux\program\VoxFormer\mmdetection3d\mmdet3d\ops\spconv\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\torch\csrc\api\include -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\TH -IG:\anaconda3\envs\open-mmlab\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -IG:\anaconda3\envs\open-mmlab\include -IG:\anaconda3\envs\open-mmlab\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpmmdet3d\ops\spconv\src/indice.cc /Fobuild\temp.win-amd64-cpython-38\Release\mmdet3d\ops\spconv\src/indice.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
indice.cc
_Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1261): error: identifier "_Verify_range" is undefined
detected during:
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const uint64_t *, _Sentinel=const uint64_t *]"
(5809): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1276): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *&]"
(5810): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1278): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *&]"
(5810): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1279): error: expression must have class type
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *&]"
(5810): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1276): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *const &]"
(5811): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1278): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *const &]"
(5811): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1279): error: expression must have class type
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const uint64_t *const &]"
(5811): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(5816): error: no instance of function template "std::less<void>::operator()" matches the argument list
argument types are: (<error-type>, const uint64_t)
object type is: std::less<void>
detected during:
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &, _Pr) [with _FwdIt=const uint64_t *, _Ty=uint64_t, _Pr=std::less<void>]"
(5831): here
instantiation of "_FwdIt std::lower_bound(_FwdIt, _FwdIt, const _Ty &) [with _FwdIt=const uint64_t *, _Ty=uint64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/flat_hash_map.h(1854): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\atomic(356): error: expected a "("
detected during:
instantiation of "_Integral std::_Atomic_reinterpret_as<_Integral,_Ty>(const _Ty &) [with _Integral=long long, _Ty=std::remove_reference_t<unsigned long long>]"
(1161): here
instantiation of "__nv_bool std::_Atomic_storage<_Ty, 8ULL>::compare_exchange_strong(std::_Atomic_storage<_Ty, 8ULL>::_TVal &, std::_Atomic_storage<_Ty, 8ULL>::_TVal, std::memory_order) [with _Ty=unsigned long long]"
(2360): here
instantiation of "__nv_bool std::atomic<_Ty>::compare_exchange_weak(_Ty &, _Ty) [with _Ty=unsigned long long]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(751): here
instantiation of "c10::intrusive_ptr<TTarget, NullType> c10::weak_intrusive_ptr<TTarget, NullType>::lock() const [with TTarget=c10::intrusive_ptr_target, NullType=c10::detail::intrusive_target_default_null_type<c10::intrusive_ptr_target>]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/core/ivalue.h(1094): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\atomic(358): error: expected a "("
detected during:
instantiation of "_Integral std::_Atomic_reinterpret_as<_Integral,_Ty>(const _Ty &) [with _Integral=long long, _Ty=std::remove_reference_t<unsigned long long>]"
(1161): here
instantiation of "__nv_bool std::_Atomic_storage<_Ty, 8ULL>::compare_exchange_strong(std::_Atomic_storage<_Ty, 8ULL>::_TVal &, std::_Atomic_storage<_Ty, 8ULL>::_TVal, std::memory_order) [with _Ty=unsigned long long]"
(2360): here
instantiation of "__nv_bool std::atomic<_Ty>::compare_exchange_weak(_Ty &, _Ty) [with _Ty=unsigned long long]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(751): here
instantiation of "c10::intrusive_ptr<TTarget, NullType> c10::weak_intrusive_ptr<TTarget, NullType>::lock() const [with TTarget=c10::intrusive_ptr_target, NullType=c10::detail::intrusive_target_default_null_type<c10::intrusive_ptr_target>]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/core/ivalue.h(1094): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\atomic(359): error: invalid type conversion
detected during:
instantiation of "_Integral std::_Atomic_reinterpret_as<_Integral,_Ty>(const _Ty &) [with _Integral=long long, _Ty=std::remove_reference_t<unsigned long long>]"
(1161): here
instantiation of "__nv_bool std::_Atomic_storage<_Ty, 8ULL>::compare_exchange_strong(std::_Atomic_storage<_Ty, 8ULL>::_TVal &, std::_Atomic_storage<_Ty, 8ULL>::_TVal, std::memory_order) [with _Ty=unsigned long long]"
(2360): here
instantiation of "__nv_bool std::atomic<_Ty>::compare_exchange_weak(_Ty &, _Ty) [with _Ty=unsigned long long]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(751): here
instantiation of "c10::intrusive_ptr<TTarget, NullType> c10::weak_intrusive_ptr<TTarget, NullType>::lock() const [with TTarget=c10::intrusive_ptr_target, NullType=c10::detail::intrusive_target_default_null_type<c10::intrusive_ptr_target>]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/core/ivalue.h(1094): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1260): error: expected a "("
detected during:
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const int *, _Sentinel=const int *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\vector(528): here
instantiation of "std::vector<_Ty, _Alloc>::vector(_Iter, _Iter, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int *, <unnamed>=0]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/core/TensorImpl.h(51): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1261): error: identifier "_Verify_range" is undefined
detected during:
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=const int *, _Sentinel=const int *]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\vector(528): here
instantiation of "std::vector<_Ty, _Alloc>::vector(_Iter, _Iter, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int *, <unnamed>=0]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/core/TensorImpl.h(51): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1276): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const int *&]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\vector(529): here
instantiation of "std::vector<_Ty, _Alloc>::vector(_Iter, _Iter, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int *, <unnamed>=0]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/core/TensorImpl.h(51): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1278): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const int *&]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\vector(529): here
instantiation of "std::vector<_Ty, _Alloc>::vector(_Iter, _Iter, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int *, <unnamed>=0]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/core/TensorImpl.h(51): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1279): error: expression must have class type
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=const int *&]"
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\vector(529): here
instantiation of "std::vector<_Ty, _Alloc>::vector(_Iter, _Iter, const _Alloc &) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int *, <unnamed>=0]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/core/TensorImpl.h(51): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1260): error: expected a "("
detected during:
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=int64_t *, _Sentinel=int64_t *]"
(4330): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1261): error: identifier "_Verify_range" is undefined
detected during:
instantiation of "void std::_Adl_verify_range(const _Iter &, const _Sentinel &) [with _Iter=int64_t *, _Sentinel=int64_t *]"
(4330): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1276): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1278): error: expected a "("
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\xutility(1279): error: expression must have class type
detected during:
instantiation of "decltype(auto) std::_Get_unwrapped(_Iter &&) [with _Iter=int64_t *&]"
(4331): here
instantiation of "_OutIt std::move(_InIt, _InIt, _OutIt) [with _InIt=int64_t *, _OutIt=int64_t *]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(882): here
instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=int64_t]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\c10/util/SmallVector.h(997): here
instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=int64_t, N=5U]"
G:/anaconda3/envs/open-mmlab/lib/site-packages/torch/include\ATen/TensorIterator.h(398): here
Error limit reached.
100 errors detected in the compilation of "mmdet3d/ops/spconv/src/indice_cuda.cu".
Compilation terminated.
indice_cuda.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmdetection3d
Environment
Environment
Reproduces the problem - code sample
Reproduces the problem - command or script
Reproduces the problem - error message
Additional information
I am currently trying to install MMDetection3D following the steps set out to run Step-by-step installation instructions.