Open TemporalLabsLLC-SOL opened 1 year ago
Based on your output it looks like CUDA was not installed. About 1/3 of the way up from the bottom of your screenshot it says it couldn't find CUDA on your system. Can you verify your CUDA install? You can run: nvcc --version
on your CMD or bash terminal and it should give you some system info about your CUDA install. The repo says you can run it with CUDA 10.2 + but I have only run it will 11.6 and 11.8 without any problems.
C:\ngp\instant-ngp>cmake . -B build
RETURNED
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:739 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler:
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
1
MSBuild version 17.4.0+18d5aef85 for .NET Framework
Build started 11/11/2022 9:24:22 AM.
Project "C:\ngp\instant-ngp\build\CMakeFiles\3.24.202208181-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj" on node 1 (default targets).
PrepareForBuild:
InitializeBuildStatus:
AddCudaCompileDeps:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 11.8.targets(606,9): error : The CUDA Toolkit v11.8 directory '' does not exist. Please verify the CUDA Toolkit is installed properly or define the CudaToolkitDir property to resolve this error. [C:\ngp\instant-ngp\build\CMakeFiles\3.24.202208181-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
Done Building Project "C:\ngp\instant-ngp\build\CMakeFiles\3.24.202208181-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.202208181-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj" (default target) (1) ->
(ValidateCudaBuild target) ->
Time Elapsed 00:00:01.66
Call Stack (most recent call first): C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD) C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:48 (__determine_compiler_id_test) C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:11 (project)
-- Configuring incomplete, errors occurred! See also "C:/ngp/instant-ngp/build/CMakeFiles/CMakeOutput.log". See also "C:/ngp/instant-ngp/build/CMakeFiles/CMakeError.log".
I think it's because nvcc isn't pulling outside of if I am in the cuda directory. I have added it to paths but may have the wrong environment variable or something.
copying the nvcc.exe into the folder was a long shot and a no-go