Closed l-fungus-l closed 4 months ago
Bump CUDA version (e.g. 12.4.0) should be able to resolve the problem. For reference, see this fix: https://github.com/pierotofy/OpenSplat/pull/110
I tried it as well but it gave me this error, which i found had to do with the CUDA version as well, so i thought 11.8 was necessary.
C:\opensplat\OpenSplat\build>cmake -DCMAKE_PREFIX_PATH=C:\opensplat\libtorch -DOPENCV_DIR=C:\Users\20221123\OpenCV\opencv\build -DCMAKE_BUILD_TYPE=Release ..
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.40.33812.0
-- The CXX compiler identification is MSVC 19.40.33812.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
OpenSplat Version: 1.1.3 (git commit 7c9a9cc)
-- Using the multi-header code from C:/opensplat/OpenSplat/build/_deps/nlohmann_json-src/include/
-- nanoflann version: 1.5.5
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- GLM: Version 1.0.1
-- GLM: Build with C++ features auto detection
-- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/include (found version "12.4.99")
-- ** Updated TORCH_CUDA_ARCH_LIST to 7.0 7.5 8.0 **
-- The CUDA compiler identification is NVIDIA 12.4.99
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4 (found version "12.4")
-- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/include (found version "12.4.99")
CMake Error at C:/opensplat/libtorch/share/cmake/Caffe2/public/cuda.cmake:71 (message):
Failed to find nvToolsExt
Call Stack (most recent call first):
C:/opensplat/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:87 (include)
C:/opensplat/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
CMakeLists.txt:164 (find_package)
It seems like you need nvToosExt. The new version of Windows CUDA does include it. You have to install it manually. References:
I fixed it. CUDA 12.4 comes with NVTX as a library in the compiler, rather than with Nsight NVTX, which means the location of the library is different, and since I wiped CUDA 11.8, libtorch could not find it correctly. I was able to fix it in two ways:
find_package(Torch REQUIRED)
with link_directories("_path_to_NVTX_")
in the CMakeLists.txt.
I am trying to install OpenSplat on Windows, it recognizes the correct location for the CUDA nvcc but finds that is broken when trying to enable_language. I have reinstalled CUDA and validated it. It is the version provided on the home page. Where could the issue be stemming from?