]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
build : improve disabling AVX-512 (#2129)
authorPrzemysław Pawełczyk <redacted>
Wed, 8 May 2024 15:32:43 +0000 (17:32 +0200)
committerGitHub <redacted>
Wed, 8 May 2024 15:32:43 +0000 (18:32 +0300)
commitb6680fab503b3d469d3ffbff71545150896671d1
tree3da02dbb8594eb412a029e99af5ca12d703bb94f
parentf7607560785700b6903b2e05085f9b80931bc5ab
build : improve disabling AVX-512 (#2129)

* cmake : make WHISPER_NO_AVX512=ON disable all subsets of AVX-512

Previously it happened only for MSVC, but it makes sense to have the
same behavior for other compilers too.

* make : reorder x86 ISA extensions in chronological order

And update compiler flags at the end to ease modifying conditions.

* make : support WHISPER_NO_AVX512=1 for disabling all AVX-512 subsets.

That way you do not have to override each AVX-512 subset setting
individually if it has been turned on during autodetection.
CMakeLists.txt
Makefile