Code Monkey home page Code Monkey logo

Comments (4)

puzzlepaint avatar puzzlepaint commented on August 16, 2024 1

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.

zellx3 avatar zellx3 commented on August 16, 2024 1

I had been able to fix it with minimal change #86

from badslam.

puzzlepaint avatar puzzlepaint commented on August 16, 2024

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.

zellx3 avatar zellx3 commented on August 16, 2024

This is the error, It doesn't depend on architecture,

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.