Skip to content

Commit 62dc8f7

Browse files
jugal-shethJugal Sheth
andauthored
whisper : update CMakeLists.txt to handle deprecated gpu Warnings (ggml-org#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>
1 parent 2c4b904 commit 62dc8f7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ whisper_option_depr(WARNING WHISPER_SYCL GGML_SYCL)
119119
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
120120
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
121121

122+
if (GGML_CUDA AND NOT MSVC)
123+
#GGML_CUDA enabled, add the necessary compile options -Wno-deprecated-gpu-targets
124+
add_compile_options(-Wno-deprecated-gpu-targets)
125+
endif()
126+
122127
#
123128
# build the library
124129
#

0 commit comments

Comments
 (0)