whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Error with building on CUDA: Windows

Open Julz19 opened this issue 1 year ago • 4 comments

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.

Julz19 avatar Jun 01 '24 22:06 Julz19

Have you installed CUDA for Windows?

ulatekh avatar Jun 04 '24 16:06 ulatekh

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.

Julz19 avatar Jun 04 '24 19:06 Julz19

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.

ulatekh avatar Jun 04 '24 21:06 ulatekh

This probably has chance to help: https://github.com/NVlabs/tiny-cuda-nn/issues/164#issuecomment-1280749170

Boorj avatar Feb 01 '25 18:02 Boorj