Thinklab-SJTU / Bench2DriveZoo

BEVFormer, UniAD, VAD in Closed-Loop CARLA Evaluation with World Model RL Expert Think2Drive
Other
161 stars 12 forks source link

pip install -v -e . error #22

Closed scuizhibin closed 3 months ago

scuizhibin commented 3 months ago

The detected CUDA version (11.8) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. my torch version torch-2.4.0

jiaxiaosong1002 commented 3 months ago

@scuizhibin Your PyTorch is installed with 12.1. Try Pytorch+cuda11.8

AvinsWang commented 3 months ago

@scuizhibin Did you solve the problem? I faced same error to you https://github.com/Thinklab-SJTU/Bench2DriveZoo/issues/13#issuecomment-2281931917

scuizhibin commented 3 months ago

生成map数据的时候 线程杀死,这个 会是什么原因

---Original--- From: "Xiaosong @.> Date: Thu, Aug 8, 2024 12:45 PM To: @.>; Cc: @.**@.>; Subject: Re: [Thinklab-SJTU/Bench2DriveZoo] pip install -v -e . error (Issue#22)

@scuizhibin Your PyTorch is installed with 12.1. Try Pytorch+cuda11.8

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

happytianhao commented 3 months ago

@scuizhibin 内存不足,np.load不了,20G内存大概是不够用的,想办法把内存调大点,我后面用了160G反正是成功了。

TroyZhangFawang commented 3 months ago

您好,我有两个问题,一、是否支持win系统,二、是否一定得安装cuda11.8,我安装的11.7,然后运行pip install -v -e .时报错 ninja: build stopped: subcommand failed. Traceback (most recent call last): File "G:\0_anaconda3\envs\b2d_zoo\lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "G:\0_anaconda3\envs\b2d_zoo\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '55']' returned non-zero exit status 1. 这该如何解决呢?

scuizhibin commented 3 months ago

11.8  要不然会出错,并且需要显卡驱动也要更新一下,硬件要求是3090

---Original--- From: @.> Date: Thu, Aug 15, 2024 15:54 PM To: @.>; Cc: @.**@.>; Subject: Re: [Thinklab-SJTU/Bench2DriveZoo] pip install -v -e . error (Issue#22)

您好,我有两个问题,一、是否支持win系统,二、是否一定得安装cuda11.8,我安装的11.7,然后运行pip install -v -e .时报错 ninja: build stopped: subcommand failed. Traceback (most recent call last): File "G:\0_anaconda3\envs\b2d_zoo\lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "G:\0_anaconda3\envs\b2d_zoo\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '55']' returned non-zero exit status 1. 这该如何解决呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

jayyoung0802 commented 3 months ago

@TroyZhangFawang 建议linux, cuda version 为11.8

Ian-Tam commented 1 month ago

@scuizhibin @jayyoung0802 您好,我在“pip install -v -e .”时也遇到了同样的问题, image 我的环境信息为: Ubuntu 22.04 cuda 11.8 gcc 10.5 torch 2.4.1+cu118
torchaudio 2.4.1+cu118 torchmetrics 0.11.4 torchvision 0.19.1+cu118 请问我应该怎么解决这个问题,必须要ubuntu 20.04吗

jayyoung0802 commented 1 month ago

Can you provide the complete terminal log?

Ian-Tam commented 1 month ago

@jayyoung0802 您好,这是完整日志: Installing collected packages: mmcv DEPRECATION: Legacy editable install of mmcv==0.0.1 from file:///mnt/data/tanh/codes/Carla/Bench2DriveZoo (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 Running command python setup.py develop running develop running egg_info writing mmcv.egg-info/PKG-INFO writing dependency_links to mmcv.egg-info/dependency_links.txt writing requirements to mmcv.egg-info/requires.txt writing top-level names to mmcv.egg-info/top_level.txt reading manifest file 'mmcv.egg-info/SOURCES.txt' writing manifest file 'mmcv.egg-info/SOURCES.txt' running build_ext building 'mmcv._ext' extension /home/tanh/miniconda3/envs/b2d/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/tanh/miniconda3/envs/b2d/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()
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
  warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py:1965: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
  warnings.warn(
Emitting ninja build file /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (19) as the number of workers...
[1/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/CallOnce.h:8:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Context.h:22,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Generator.h:11:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:7:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[2/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[3/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[4/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp:6:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp:6:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);                                                             

.... ^ In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5, from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3, from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/carafe.cpp:2: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight); ^ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build subprocess.run( File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '19']' 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 "/mnt/data/tanh/codes/Carla/Bench2DriveZoo/setup.py", line 181, in <module>
    setup(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
    return run_commands(dist)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
    dist.run_commands()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
    self.run_command(cmd)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/develop.py", line 35, in run
    self.install_for_development()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/develop.py", line 112, in install_for_development
    self.run_command('build_ext')
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run
    _build_ext.run(self)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 866, in build_extensions
    build_ext.build_extensions(self)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
    self._build_extensions_serial()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension
    super(build_ext, self).build_extension(ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
    objects = self.compiler.compile(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 679, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2121, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/tanh/miniconda3/envs/b2d/bin/python3.8 -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/mnt/data/tanh/codes/Carla/Bench2DriveZoo/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我有注意到“#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later.",但是我当前编译的gcc版本是9.5 image

Ian-Tam commented 1 month ago

@jayyoung0802 您好,这是完整日志: Installing collected packages: mmcv DEPRECATION: Legacy editable install of mmcv==0.0.1 from file:///mnt/data/tanh/codes/Carla/Bench2DriveZoo (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 pypa/pip#11457 Running setup.py develop for mmcv Running command python setup.py develop running develop running egg_info writing mmcv.egg-info/PKG-INFO writing dependency_links to mmcv.egg-info/dependency_links.txt writing requirements to mmcv.egg-info/requires.txt writing top-level names to mmcv.egg-info/top_level.txt reading manifest file 'mmcv.egg-info/SOURCES.txt' writing manifest file 'mmcv.egg-info/SOURCES.txt' running build_ext building 'mmcv._ext' extension /home/tanh/miniconda3/envs/b2d/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/tanh/miniconda3/envs/b2d/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()
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
  warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py:1965: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
  warnings.warn(
Emitting ninja build file /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (19) as the number of workers...
[1/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/roi_align.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/CallOnce.h:8:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Context.h:22,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Generator.h:11:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp:7:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[2/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/deform_conv.cpp:2:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[3/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/correlation.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/correlation.cpp:4:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
       auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight);
                            ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21:   required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8:   required from here
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable]
[4/89] c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o
c++ -MMD -MF /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o.d -pthread -B /home/tanh/miniconda3/envs/b2d/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -O2 -isystem /home/tanh/miniconda3/envs/b2d/include -fPIC -DMMCV_WITH_CUDA -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/TH -I/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/tanh/miniconda3/envs/b2d/include/python3.8 -c -c /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp -o /mnt/data/tanh/codes/Carla/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/contour_expand.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp:6:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
 #error \
  ^~~~~
In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/contour_expand.cpp:6:
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);                                                             

.... ^ In file included from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules.h:20:0, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:7, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16, from /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/extension.h:5, from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3, from /mnt/data/tanh/codes/Carla/Bench2DriveZoo/mmcv/ops/csrc/pytorch/carafe.cpp:2: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::ConvTranspose3dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] auto [fan_in, fan_out] = init::_calculate_fan_in_and_fan_out(weight); ^ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of ‘void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’: /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:21: required from ‘void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]’ /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:283:8: required from here /home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:110:28: warning: unused variable ‘fan_out’ [-Wunused-variable] ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build subprocess.run( File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '19']' 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 "/mnt/data/tanh/codes/Carla/Bench2DriveZoo/setup.py", line 181, in <module>
    setup(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
    return run_commands(dist)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
    dist.run_commands()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
    self.run_command(cmd)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/develop.py", line 35, in run
    self.install_for_development()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/develop.py", line 112, in install_for_development
    self.run_command('build_ext')
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run
    _build_ext.run(self)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 866, in build_extensions
    build_ext.build_extensions(self)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
    self._build_extensions_serial()
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension
    super(build_ext, self).build_extension(ext)
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
    objects = self.compiler.compile(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 679, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/home/tanh/miniconda3/envs/b2d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2121, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/tanh/miniconda3/envs/b2d/bin/python3.8 -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/mnt/data/tanh/codes/Carla/Bench2DriveZoo/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /mnt/data/tanh/codes/Carla/Bench2DriveZoo/

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我有注意到“#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later.",但是我当前编译的gcc版本是9.5 image

问题解决了,尝试过gcc9.5.0, 10.5.0, 11.4.0, 结果gcc必须9.4.0才行。由于我是ubuntu22.04,sudo apt-get install gcc-9安装的都是gcc 9.5.0,需要去gcc官网下载gcc 9.4.0的包 然后先编译好9.4.0再去编译mmcv。