Mandylove1993 / CUDA-FastBEV

TensorRT deploy and PTQ/QAT tools development for FastBEV, total time only need 6.9ms!!!
MIT License
233 stars 38 forks source link

Error while building the project #10

Closed YoushaaMurhij closed 1 year ago

YoushaaMurhij commented 1 year ago

Thanks for the great work. I ranbash tool/run.shand faced this error:


==========================================================
||  MODEL: resnet18int8
||  PRECISION: int8
||  DATA: example-data
||  USEPython: OFF
||
||  TensorRT: /usr/src/tensorrt/lib
||  CUDA: /usr/local/cuda-12.1/
||  CUDNN: /usr/local/cuda-12.1/lib64
==========================================================
Try to get the current device SM
Current CUDA SM: 86
Configuration done!
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/colcon_ws/build
[ 16%] Building NVCC (Device) object CMakeFiles/fastbev_core.dir/src/fastbev/fastbev_core_generated_vtransform.cu.o
[ 16%] Building NVCC (Device) object CMakeFiles/fastbev_core.dir/src/common/fastbev_core_generated_tensor.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/fastbev_core.dir/src/fastbev/fastbev_core_generated_normalization.cu.o
/usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, __v>::value’
   79 |   template<typename _Tp, _Tp __v>
      |                                                    ^                           
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here
   67 |       static constexpr _Tp                  value = __v;
      |                             ^~~~~
/usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, __v>::value’
   79 |   template<typename _Tp, _Tp __v>
      |                                                    ^                           
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here
   67 |       static constexpr _Tp                  value = __v;
      |                             ^~~~~
CMake Error at fastbev_core_generated_normalization.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/user/colcon_ws/build/CMakeFiles/fastbev_core.dir/src/fastbev/./fastbev_core_generated_normalization.cu.o

make[2]: *** [CMakeFiles/fastbev_core.dir/build.make:636: CMakeFiles/fastbev_core.dir/src/fastbev/fastbev_core_generated_normalization.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/include/c++/11/type_traits:79:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, __v>::value’
   79 |   template<typename _Tp, _Tp __v>
      |                                                    ^                           
/usr/include/c++/11/type_traits:67:29: note: ‘constexpr const _Tp value’ previously declared here
   67 |       static constexpr _Tp                  value = __v;
      |                             ^~~~~
CMake Error at fastbev_core_generated_vtransform.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/user/colcon_ws/build/CMakeFiles/fastbev_core.dir/src/fastbev/./fastbev_core_generated_vtransform.cu.o

make[2]: *** [CMakeFiles/fastbev_core.dir/build.make:919: CMakeFiles/fastbev_core.dir/src/fastbev/fastbev_core_generated_vtransform.cu.o] Error 1
CMake Error at fastbev_core_generated_tensor.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/user/colcon_ws/build/CMakeFiles/fastbev_core.dir/src/common/./fastbev_core_generated_tensor.cu.o

make[2]: *** [CMakeFiles/fastbev_core.dir/build.make:361: CMakeFiles/fastbev_core.dir/src/common/fastbev_core_generated_tensor.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/fastbev_core.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Could you please suggest how to fix it? Thanks

YoushaaMurhij commented 1 year ago

c++17 solved the problem!