mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-01 07:25:49 +02:00
whisper : update CMakeLists.txt to handle deprecated gpu Warnings (#3163)
* Fix CMakeLists.txt to handle deprecated gpu Warnings * Conditionally apply -Wno-deprecated-gpu-targets only when GGML_CUDA is enabled * Conditionally apply -Wno-deprecated-gpu-targets only when GGML_CUDA is enabled and not MSVC --------- Co-authored-by: Jugal Sheth <jugal.sheth@marineai.co.uk>
This commit is contained in:
parent
2c4b904596
commit
62dc8f7d7b
@ -119,6 +119,11 @@ whisper_option_depr(WARNING WHISPER_SYCL GGML_SYCL)
|
||||
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
|
||||
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
|
||||
|
||||
if (GGML_CUDA AND NOT MSVC)
|
||||
#GGML_CUDA enabled, add the necessary compile options -Wno-deprecated-gpu-targets
|
||||
add_compile_options(-Wno-deprecated-gpu-targets)
|
||||
endif()
|
||||
|
||||
#
|
||||
# build the library
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user