Just in case anyone else has the problem
I had a compile failure related to inconsistent debugging levels when trying to compile with CUDA 12.6 support while gRPC was installed from vcpkg
removing gPRC resolved the problem
vcpkg remove grpc
cmake .. -DGGML_CUDA=ON -DCMAKE_CUDA_COMPILER="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/bin/nvcc"
-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/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/Professional/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.47.0.windows.1")
-- 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
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- OpenMP found
-- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include (found version "12.6.77")
-- CUDA found
-- Using CUDA architectures: 52;61;70;75
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeDetermineCompilerId.cmake:865 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
1
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework
Build started 22/10/2024 22:23:19.
Project
"C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details.
Creating directory "Debug\CompilerIdCUDA.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCUDA.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "Debug\CompilerIdCUDA.tlog\unsuccessfulbuild".
AddCudaCompileDeps:
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe /E /nologo /showIncludes /TP /D__CUDACC__ /D__CUDACC_VER_MAJOR__=12 /D__CUDACC_VER_MINOR__=6 /D_MBCS /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" /IC:\src\vcpkg\installed\x64-windows\include /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" /I. /FIcuda_runtime.h /c C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu
Project
"C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(1) is building
"C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(1:2) on node 1 (CudaBuildCore target(s)).
CudaBuildCore:
Compiling CUDA source file CMakeCUDACompilerId.cu...
Creating directory "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA\x64\Debug".
cmd.exe /C "C:\Users\dgm55\AppData\Local\Temp\tmpdb66806b45074b6cbc2fb9d519bcae92.cmd"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" -I"C:\src\vcpkg\installed\x64-windows\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" -G --keep-dir CompilerIdCUDA\x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -v -allow-unsupported-compiler -g -D_MBCS -Xcompiler "/EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd " -Xcompiler "/FdDebug\vc143.pdb" -o C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu"
C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" -I"C:\src\vcpkg\installed\x64-windows\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" -G --keep-dir CompilerIdCUDA\x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -v -allow-unsupported-compiler -g -D_MBCS -Xcompiler "/EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd " -Xcompiler "/FdDebug\vc143.pdb" -o C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu"
#$ _NVVM_BRANCH_=nvvm
#$ _SPACE_=
#$ _CUDART_=cudart
#$ _HERE_=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin
#$ _THERE_=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin
#$ _TARGET_SIZE_=
#$ _TARGET_DIR_=
#$ _TARGET_SIZE_=64
#$ _WIN_PLATFORM_=x64
#$ TOP=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/..
#$ CICC_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../nvvm/bin
#$ NVVMIR_LIBRARY_DIR=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../nvvm/libdevice
#$ PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../nvvm/bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../lib;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools;C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\tools;C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319\;C:\Windows\Microsoft.NET\Framework\v4.0.30319\;C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319\;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\;C:\Program Files\CMake\bin;C:\Users\dgm55\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\dgm55\AppData\Local\Programs\Python\Python312\;C:\Users\dgm55\AppData\Local\Programs\Python\Launcher\;C:\Users\dgm55\AppData\Local\Microsoft\WindowsApps;C:\Users\dgm55\AppData\Local\GitHubDesktop\bin;C:\Users\dgm55\.dotnet\tools;
#$ INCLUDES="-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../include"
#$ LIBRARIES= "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../lib/x64"
#$ CUDAFE_FLAGS=--sdk_dir "C:\Program Files (x86)\Windows Kits\10"
#$ PTXAS_FLAGS=
CMakeCUDACompilerId.cu
#$ resource file C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-8.res: [-D__CUDA_ARCH_LIST__=520 -D__NV_LEGACY_LAUNCH -nologo -E -TP -EHsc -D__CUDACC__ -D__NVCC__ -D__CUDACC_DEBUG__ /EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd /FdDebug\vc143.pdb -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" -I"C:/src/vcpkg/installed/x64-windows/include" -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../include" -D "_MBCS" -D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=6 -D__CUDACC_VER_BUILD__=77 -D__CUDA_API_VER_MAJOR__=12 -D__CUDA_API_VER_MINOR__=6 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -FI "cuda_runtime.h" -Zi "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu" ]
#$ cl.exe -D__NV_NO_HOST_COMPILER_CHECK=1 @"C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-8.res" > "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-6_CMakeCUDACompilerId.cpp4.ii"
CMakeCUDACompilerId.cu
#$ erase C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-8.res
#$ cudafe++ --ms_c++14 --microsoft_version=1941 --msvc_target_version=1941 --compiler_bindir "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/../../../../../../.." --display_error_number --orig_src_file_name "C:/repos/whisper.cpp/build/CMakeFiles/3.31.0-rc1/CompilerIdCUDA/CMakeCUDACompilerId.cu" --orig_src_path_name "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu" --allow_managed --debug_mode --sdk_dir "C:\Program Files (x86)\Windows Kits\10" --m64 --parse_templates --gen_c_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.cpp" --stub_file_name "tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.stub.c" --gen_module_id_file --module_id_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-5_CMakeCUDACompilerId.module_id" "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-6_CMakeCUDACompilerId.cpp4.ii"
#$ resource file C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-10.res: [-D__CUDA_ARCH__=520 -D__CUDA_ARCH_LIST__=520 -D__NV_LEGACY_LAUNCH -nologo -E -TP -DCUDA_DOUBLE_MATH_FUNCTIONS -EHsc -D__CUDACC__ -D__NVCC__ -D__CUDACC_DEBUG__ /EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd /FdDebug\vc143.pdb -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" -I"C:/src/vcpkg/installed/x64-windows/include" -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../include" -D "_MBCS" -D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=6 -D__CUDACC_VER_BUILD__=77 -D__CUDA_API_VER_MAJOR__=12 -D__CUDA_API_VER_MINOR__=6 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -FI "cuda_runtime.h" -Zi "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu" ]
#$ cl.exe -D__NV_NO_HOST_COMPILER_CHECK=1 @"C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-10.res" > "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-9_CMakeCUDACompilerId.cpp1.ii"
CMakeCUDACompilerId.cu
#$ erase C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-10.res
#$ ""%CICC_PATH%\cicc" --ms_c++14 --microsoft_version=1941 --msvc_target_version=1941 --compiler_bindir "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/../../../../../../.." --display_error_number --orig_src_file_name "C:/repos/whisper.cpp/build/CMakeFiles/3.31.0-rc1/CompilerIdCUDA/CMakeCUDACompilerId.cu" --orig_src_path_name "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CMakeCUDACompilerId.cu" --allow_managed --debug_mode --sdk_dir "C:\Program Files (x86)\Windows Kits\10" -arch compute_52 -m64 --no-version-ident -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "tmpxft_0000300c_00000000-4_CMakeCUDACompilerId.fatbin.c" -g -O0 -tused --module_id_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-5_CMakeCUDACompilerId.module_id" --gen_c_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.c" --stub_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.gpu" "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-9_CMakeCUDACompilerId.cpp1.ii" -o "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.ptx""
#$ ptxas -arch=sm_52 -m64 -g --dont-merge-basicblocks --return-at-end "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.ptx" -o "C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-11_CMakeCUDACompilerId.sm_52.cubin"
#$ fatbinary -64 --ident="C:/repos/whisper.cpp/build/CMakeFiles/3.31.0-rc1/CompilerIdCUDA/CMakeCUDACompilerId.cu" --cmdline="-g --dont-merge-basicblocks --return-at-end " --cicc-cmdline="-ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 " -g "--image3=kind=elf,sm=52,file=C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-11_CMakeCUDACompilerId.sm_52.cubin" "--image3=kind=ptx,sm=52,file=C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.ptx" --embedded-fatbin="C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-4_CMakeCUDACompilerId.fatbin.c"
#$ erase C:/Users/dgm55/AppData/Local/Temp/tmpxft_0000300c_00000000-4_CMakeCUDACompilerId.fatbin
#$ resource file C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-12.res: [-D__CUDA_ARCH__=520 -D__CUDA_ARCH_LIST__=520 -D__NV_LEGACY_LAUNCH -nologo -c -TP -DCUDA_DOUBLE_MATH_FUNCTIONS -EHsc /EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd /FdDebug\vc143.pdb -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" -I"C:/src/vcpkg/installed/x64-windows/include" -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6/include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin/../include" -Zi "C:\Users\dgm55\AppData\Local\Temp\tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.cpp" ]
#$ cl.exe @"C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-12.res" -Fo"C:/repos/whisper.cpp/build/CMakeFiles/3.31.0-rc1/CompilerIdCUDA/CompilerIdCUDA/x64/Debug/CMakeCUDACompilerId.cu.obj"
tmpxft_0000300c_00000000-7_CMakeCUDACompilerId.cudafe1.cpp
#$ erase C:\Users\dgm55\AppData\Local\Temp/tmpxft_0000300c_00000000-12.res
Done Building Project
"C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(CudaBuildCore target(s)).
VcpkgTripletSelection:
Using triplet "x64-windows" from "C:\src\vcpkg\installed\x64-windows\"
Using normalized configuration "Release"
Link:
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCUDA.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64" /LIBPATH:"C:\src\vcpkg\installed\x64-windows\lib" /LIBPATH:"C:\src\vcpkg\installed\x64-windows\lib\manual-link" cudart_static.lib "C:\src\vcpkg\installed\x64-windows\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCUDA.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCUDA.lib" /MACHINE:X64 "C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj"
grpc++.lib(create_default_thread_pool.cc.obj) : error LNK2038: mismatch
detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
CMakeCUDACompilerId.cu.obj
[C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
grpc++.lib(create_default_thread_pool.cc.obj) : error LNK2038: mismatch
detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match
value 'MDd_DynamicDebug' in CMakeCUDACompilerId.cu.obj
[C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
grpc.lib(default_event_engine.cc.obj) : error LNK2038: mismatch detected
for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
CMakeCUDACompilerId.cu.obj
[C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
grpc.lib(default_event_engine.cc.obj) : error LNK2038: mismatch detected
for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value
'MDd_DynamicDebug' in CMakeCUDACompilerId.cu.obj
[C:\repos\whisper.cpp\build\CMakeFiles\3.31.0-rc1\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
Just in case anyone else has the problem I had a compile failure related to inconsistent debugging levels when trying to compile with CUDA 12.6 support while gRPC was installed from vcpkg
removing gPRC resolved the problem vcpkg remove grpc