mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-09-30 11:36:38 +02:00
* ci : add Windows On ARM support to release job (wip) This commit adds Windows On Arm (WoA) support to whisper.cpp and the release process. The underlying support was already in place as this had been synced with ggml, but the missing part was producesing release artifacts which is what this commit does. * ci : add note about CUDA WoA is a preview edition [no ci]
25 lines
1.2 KiB
CMake
25 lines
1.2 KiB
CMake
include( ${CMAKE_CURRENT_LIST_DIR}/arm64-windows-llvm.cmake )
|
|
|
|
if ( DEFINED CUDAToolkit_ROOT )
|
|
file( TO_CMAKE_PATH "${CUDAToolkit_ROOT}" CUDA_ROOT )
|
|
elseif ( DEFINED ENV{CUDA_PATH} )
|
|
file( TO_CMAKE_PATH "$ENV{CUDA_PATH}" CUDA_ROOT )
|
|
else()
|
|
message( FATAL_ERROR "Set CUDAToolkit_ROOT or CUDA_PATH to a Windows CUDA Toolkit with ARM64 target libraries" )
|
|
endif()
|
|
|
|
if ( DEFINED ENV{VCToolsInstallDir} )
|
|
file( TO_CMAKE_PATH "$ENV{VCToolsInstallDir}" MSVC_TOOLS_ROOT )
|
|
set( CMAKE_CUDA_HOST_COMPILER "${MSVC_TOOLS_ROOT}/bin/Hostx64/arm64/cl.exe" CACHE FILEPATH "" )
|
|
endif()
|
|
|
|
set( CMAKE_CUDA_COMPILER "${CUDA_ROOT}/bin/nvcc.exe" CACHE FILEPATH "" )
|
|
set( CMAKE_CUDA_FLAGS_INIT "-target-dir=arm64" )
|
|
|
|
# FindCUDAToolkit selects lib/x64 from the host architecture on Windows.
|
|
set( CUDA_CUDART "${CUDA_ROOT}/lib/arm64/cudart.lib" CACHE FILEPATH "" )
|
|
set( CUDA_cudart_LIBRARY "${CUDA_ROOT}/lib/arm64/cudart.lib" CACHE FILEPATH "" )
|
|
set( CUDA_cublas_LIBRARY "${CUDA_ROOT}/lib/arm64/cublas.lib" CACHE FILEPATH "" )
|
|
set( CUDA_cublasLt_LIBRARY "${CUDA_ROOT}/lib/arm64/cublasLt.lib" CACHE FILEPATH "" )
|
|
set( CUDA_cuda_driver_LIBRARY "${CUDA_ROOT}/lib/arm64/cuda.lib" CACHE FILEPATH "" )
|