Spaces:
Running
Running
cmake : add options to disable CPU flags (#860)
Browse files- CMakeLists.txt +9 -8
CMakeLists.txt
CHANGED
|
@@ -49,18 +49,19 @@ option(WHISPER_BUILD_EXAMPLES "whisper: build examples" ${WHISPER_STANDA
|
|
| 49 |
|
| 50 |
option(WHISPER_SDL2 "whisper: support for libSDL2" OFF)
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
if (APPLE)
|
| 53 |
option(WHISPER_NO_ACCELERATE "whisper: disable Accelerate framework" OFF)
|
| 54 |
-
option(
|
| 55 |
-
option(
|
| 56 |
-
option(WHISPER_NO_FMA "whisper: disable FMA" OFF)
|
| 57 |
-
|
| 58 |
-
option(WHISPER_COREML "whisper: enable Core ML framework" OFF)
|
| 59 |
-
option(WHISPER_COREML_ALLOW_FALLBACK "whisper: allow non-CoreML fallback" OFF)
|
| 60 |
else()
|
| 61 |
option(WHISPER_OPENBLAS "whisper: support for OpenBLAS" OFF)
|
| 62 |
-
option(WHISPER_CUBLAS "whisper: support for cuBLAS"
|
| 63 |
-
option(WHISPER_CLBLAST "whisper: use CLBlast"
|
| 64 |
endif()
|
| 65 |
|
| 66 |
option(WHISPER_PERF "whisper: enable perf timings" OFF)
|
|
|
|
| 49 |
|
| 50 |
option(WHISPER_SDL2 "whisper: support for libSDL2" OFF)
|
| 51 |
|
| 52 |
+
option(WHISPER_NO_AVX "whisper: disable AVX" OFF)
|
| 53 |
+
option(WHISPER_NO_AVX2 "whisper: disable AVX2" OFF)
|
| 54 |
+
option(WHISPER_NO_FMA "whisper: disable FMA" OFF)
|
| 55 |
+
option(WHISPER_NO_F16C "whisper: disable F16c" OFF)
|
| 56 |
+
|
| 57 |
if (APPLE)
|
| 58 |
option(WHISPER_NO_ACCELERATE "whisper: disable Accelerate framework" OFF)
|
| 59 |
+
option(WHISPER_COREML "whisper: enable Core ML framework" OFF)
|
| 60 |
+
option(WHISPER_COREML_ALLOW_FALLBACK "whisper: allow non-CoreML fallback" OFF)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
else()
|
| 62 |
option(WHISPER_OPENBLAS "whisper: support for OpenBLAS" OFF)
|
| 63 |
+
option(WHISPER_CUBLAS "whisper: support for cuBLAS" OFF)
|
| 64 |
+
option(WHISPER_CLBLAST "whisper: use CLBlast" OFF)
|
| 65 |
endif()
|
| 66 |
|
| 67 |
option(WHISPER_PERF "whisper: enable perf timings" OFF)
|