Spaces:
Running
Running
Jugal Haresh Sheth
Jugal Sheth
commited on
whisper : update CMakeLists.txt to handle deprecated gpu Warnings (#3163)
Browse files* 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 <[email protected]>
- CMakeLists.txt +5 -0
CMakeLists.txt
CHANGED
|
@@ -119,6 +119,11 @@ whisper_option_depr(WARNING WHISPER_SYCL GGML_SYCL)
|
|
| 119 |
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
|
| 120 |
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
#
|
| 123 |
# build the library
|
| 124 |
#
|
|
|
|
| 119 |
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
|
| 120 |
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
|
| 121 |
|
| 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 |
+
|
| 127 |
#
|
| 128 |
# build the library
|
| 129 |
#
|