]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
make : improve cpuinfo handling on x86 hosts (#1238)
authorPrzemysław Pawełczyk <redacted>
Tue, 5 Sep 2023 11:58:47 +0000 (13:58 +0200)
committerGitHub <redacted>
Tue, 5 Sep 2023 11:58:47 +0000 (14:58 +0300)
commitba3c333611c4a825ae30ea97484b937e88b88778
tree6e752c8411952af3f652eb78b2a1cbdf183f48ca
parent59a3d0cb576db605f76f82f07350647837e15c7a
make : improve cpuinfo handling on x86 hosts (#1238)

* make : simplify and correct x86 ISA extensions detection on the host

It got broken in commit c5f9acf4b797 for Haiku and Mac OS (Intel),
which report CPU features in upper case.

Now we're finding the names in case-insensitive manner and as words.
SSE3 detection has been corrected for Linux, which uses PNI for that
(Prescott New Instructions).

* make : use dmesg.boot in FreeBSD/DragonFlyBSD to detect x86 ISA extensions on the host

* make : enable x86 ISA extensions on the host both in CFLAGS and CXXFLAGS

* make : correct AVX x86 ISA extension detection on macOS (Intel) host

It got broken in commit c5f9acf4b797.  macOS calls it AVX1.0.
Makefile