whisper.cpp
whisper.cpp copied to clipboard
Error with building on CUDA: Windows
Im getting the following error when trying to build using cuda specifically:
-- Found CUDAToolkit: C:/Users/julz/anaconda3/pkgs/cuda-toolkit/nvcc/include (found version "11.7.64")
-- cuBLAS found
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:563 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:356 (enable_language)
When building without CUDA, everything works fine. Need some help please.
Have you installed CUDA for Windows?
Have you installed CUDA for Windows?
Yes, as well as ensuring the toolkit was set up in the system variables and etc. Surprisingly when switching to wsl and running, everything builds and runs fine even when building with cuda it doesn't error. Used 'make' command on wsl, but 'cmake' command for windows.
Did you install CUDA before, or after, the version of Visual Studio you're using to build whisper.cpp? The CUDA installer modifies existing installations of Visual Studio to enable CUDA building. You may need to install CUDA again.
This probably has chance to help: https://github.com/NVlabs/tiny-cuda-nn/issues/164#issuecomment-1280749170