Comments (4)
I found this issue reported for CUB where exactly the same error messages were reported:
NVIDIA/cub#422
So it seems that it is a Windows-specific problem. I don't have time now to test this on Windows, but it should be simple to fix by ensuring that Windows.h is never included before including CUB.
from badslam.
I had been able to fix it with minimal change #86
from badslam.
Since the following commit, the project uses the version of CUB that is distributed with CUDA:
1fb449e
Also, this commit fixes a bug caused by a breaking change in one of the newer versions of CUB:
e5cb94b
After that second commit, it definitely worked with CUDA 11.x. What is the error that you encountered?
from badslam.
This is the error, It doesn't depend on architecture,
1>Compiling CUDA source file ..\..\..\applications\badslam\src\badslam\cuda_image_processing.cu... 1>Compiling CUDA source file ..\..\..\applications\badslam\src\badslam\cuda_depth_processing.cu... 1> 1>D:\badslam\badslam\build\applications\badslam>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu -ID:\badslam\badslam\build\applications\badslam -ID:\badslam\badslam\applications\badslam -ID:\badslam\badslam\build\applications\badslam\badslam_baselib_autogen\include_Release -ID:\badslam\badslam\applications\badslam\src -ID:\badslam\badslam\applications\badslam\third_party\DBoW2\include -I"D:\3rdparty\vcpkg\installed\x64-windows\include\suitesparse" -ID:\badslam\badslam\applications\badslam\third_party -I"D:\3rdparty\vcpkg\installed\x64-windows\include\eigen3" -ID:\badslam\badslam\libvis\third_party\sophus -ID:\badslam\badslam\.\libvis\src -ID:\badslam\badslam\libvis\third_party\loguru -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include" -ID:\badslam\badslam\applications\badslam\third_party\opengv\include -I"D:\3rdparty\vcpkg\installed\x64-windows\share\g2o\..\..\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtWidgets" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtGui" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtCore" -I"D:\3rdparty\vcpkg\installed\x64-windows\tools\qt5\mkspecs\win32-msvc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\Release -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHsc -Ob2" -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHsc /W3 /nologo /O2 /FdD:\badslam\badslam\build\applications\badslam\Release\badslam_baselib.pdb /FS /MD /GR" -o badslam_baselib.dir\Release\/src/badslam/cuda_image_processing.cu.obj "D:\badslam\badslam\applications\badslam\src\badslam\cuda_image_processing.cu" 1> 1>D:\badslam\badslam\build\applications\badslam>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu -ID:\badslam\badslam\build\applications\badslam -ID:\badslam\badslam\applications\badslam -ID:\badslam\badslam\build\applications\badslam\badslam_baselib_autogen\include_Release -ID:\badslam\badslam\applications\badslam\src -ID:\badslam\badslam\applications\badslam\third_party\DBoW2\include -I"D:\3rdparty\vcpkg\installed\x64-windows\include\suitesparse" -ID:\badslam\badslam\applications\badslam\third_party -I"D:\3rdparty\vcpkg\installed\x64-windows\include\eigen3" -ID:\badslam\badslam\libvis\third_party\sophus -ID:\badslam\badslam\.\libvis\src -ID:\badslam\badslam\libvis\third_party\loguru -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include" -ID:\badslam\badslam\applications\badslam\third_party\opengv\include -I"D:\3rdparty\vcpkg\installed\x64-windows\share\g2o\..\..\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtWidgets" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtGui" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtCore" -I"D:\3rdparty\vcpkg\installed\x64-windows\tools\qt5\mkspecs\win32-msvc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\Release -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHsc -Ob2" -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHsc /W3 /nologo /O2 /FdD:\badslam\badslam\build\applications\badslam\Release\badslam_baselib.pdb /FS /MD /GR" -o badslam_baselib.dir\Release\/src/badslam/cuda_depth_processing.cu.obj "D:\badslam\badslam\applications\badslam\src\badslam\cuda_depth_processing.cu" 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error : invalid combination of type specifiers 1> 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error : expected an identifier 1> 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(379): error : expected a member name 1> 1>3 errors detected in the compilation of "D:/badslam/badslam/applications/badslam/src/badslam/cuda_image_processing.cu". 1>cuda_image_processing.cu 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.6.targets(790,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu -ID:\badslam\badslam\build\applications\badslam -ID:\badslam\badslam\applications\badslam -ID:\badslam\badslam\build\applications\badslam\badslam_baselib_autogen\include_Release -ID:\badslam\badslam\applications\badslam\src -ID:\badslam\badslam\applications\badslam\third_party\DBoW2\include -I"D:\3rdparty\vcpkg\installed\x64-windows\include\suitesparse" -ID:\badslam\badslam\applications\badslam\third_party -I"D:\3rdparty\vcpkg\installed\x64-windows\include\eigen3" -ID:\badslam\badslam\libvis\third_party\sophus -ID:\badslam\badslam\.\libvis\src -ID:\badslam\badslam\libvis\third_party\loguru -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include" -ID:\badslam\badslam\applications\badslam\third_party\opengv\include -I"D:\3rdparty\vcpkg\installed\x64-windows\share\g2o\..\..\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtWidgets" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtGui" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtCore" -I"D:\3rdparty\vcpkg\installed\x64-windows\tools\qt5\mkspecs\win32-msvc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\Release -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHsc -Ob2" -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHsc /W3 /nologo /O2 /FdD:\badslam\badslam\build\applications\badslam\Release\badslam_baselib.pdb /FS /MD /GR" -o badslam_baselib.dir\Release\/src/badslam/cuda_image_processing.cu.obj "D:\badslam\badslam\applications\badslam\src\badslam\cuda_image_processing.cu"" exited with code 2. 1>Done building project "badslam_baselib.vcxproj" -- FAILED. 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error : invalid combination of type specifiers 1> 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error : expected an identifier 1> 1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cub/device/dispatch/dispatch_segmented_sort.cuh(379): error : expected a member name 1> 1>3 errors detected in the compilation of "D:/badslam/badslam/applications/badslam/src/badslam/cuda_depth_processing.cu". 1>cuda_depth_processing.cu 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.6.targets(790,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu -ID:\badslam\badslam\build\applications\badslam -ID:\badslam\badslam\applications\badslam -ID:\badslam\badslam\build\applications\badslam\badslam_baselib_autogen\include_Release -ID:\badslam\badslam\applications\badslam\src -ID:\badslam\badslam\applications\badslam\third_party\DBoW2\include -I"D:\3rdparty\vcpkg\installed\x64-windows\include\suitesparse" -ID:\badslam\badslam\applications\badslam\third_party -I"D:\3rdparty\vcpkg\installed\x64-windows\include\eigen3" -ID:\badslam\badslam\libvis\third_party\sophus -ID:\badslam\badslam\.\libvis\src -ID:\badslam\badslam\libvis\third_party\loguru -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include" -ID:\badslam\badslam\applications\badslam\third_party\opengv\include -I"D:\3rdparty\vcpkg\installed\x64-windows\share\g2o\..\..\include" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtWidgets" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtGui" -I"D:\3rdparty\vcpkg\installed\x64-windows\include\qt5\QtCore" -I"D:\3rdparty\vcpkg\installed\x64-windows\tools\qt5\mkspecs\win32-msvc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\Release -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHsc -Ob2" -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DLIBVIS_HAVE_QT -DLIBVIS_HAVE_OPENCV -DLIBVIS_HAVE_CUDA -DNOMINMAX -DNPARTITION -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHsc /W3 /nologo /O2 /FdD:\badslam\badslam\build\applications\badslam\Release\badslam_baselib.pdb /FS /MD /GR" -o badslam_baselib.dir\Release\/src/badslam/cuda_depth_processing.cu.obj "D:\badslam\badslam\applications\badslam\src\badslam\cuda_depth_processing.cu"" exited with code 2. 1>Done building project "badslam_baselib.vcxproj" -- FAILED. 2>------ Build started: Project: badslam (badslam\badslam), Configuration: Release x64 ------ 2>Automatic MOC for target badslam 2>LINK : fatal error LNK1181: cannot open input file 'Release\badslam_baselib.lib' 2>Done building project "badslam.vcxproj" -- FAILED.
from badslam.
Related Issues (20)
- Can not generate .ply file HOT 3
- License or patents about badslam HOT 1
- Could not find a package configuration file provided by "SuiteSparse" with any of the following names HOT 1
- Target "badslam_test" links to target "Eigen3::Eigen" but the target was not found. HOT 4
- About Evaluation Results on ETH3D SLAM Benchmark HOT 2
- badslam runtime error on jetson nano?
- slam_test error! HOT 3
- FATL| RealSense input requested, but the program was compiled without RealSense support. HOT 5
- Autotune Cuda Error: out of memory HOT 1
- angle_difference in Direct BA HOT 2
- Hello, when I want to run tum_ This error occurs when FR1 data set HOT 1
- opengv 3rdparty HOT 2
- Let libpng expand the color channels to 16 bit if requested HOT 2
- Can we use 16-bit RGB image as input without converting into 8-bit RGB(by libpng)? HOT 3
- Question about the required depth maps precision
- Error on Ubuntu 22 and Nvidia 4090 HOT 4
- Docker build error
- How is timestamp supposed to be obtained?
- Compile error about the g2o on Windows 10 with VS2019
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badslam.