]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake : MSVC instruction detection (fixed up #809) (#3923)
authorEve <redacted>
Sun, 5 Nov 2023 08:03:09 +0000 (08:03 +0000)
committerGitHub <redacted>
Sun, 5 Nov 2023 08:03:09 +0000 (10:03 +0200)
commitc41ea36eaa3548776de4cb3d5d49b925cd3fc0f2
treeea489fe4c583b5ac9a6bd9fe9cd4b9d7b05ddeec
parenta7fac013cf1cc7bbc0160a226aa2412e9f22e78a
cmake : MSVC instruction detection (fixed up #809) (#3923)

* Add detection code for avx

* Only check hardware when option is ON

* Modify per code review sugguestions

* Build locally will detect CPU

* Fixes CMake style to use lowercase like everywhere else

* cleanup

* fix merge

* linux/gcc version for testing

* msvc combines avx2 and fma into /arch:AVX2 so check for both

* cleanup

* msvc only version

* style

* Update FindSIMD.cmake

---------

Co-authored-by: Howard Su <redacted>
Co-authored-by: Jeremy Dunn <redacted>
CMakeLists.txt
cmake/FindSIMD.cmake [new file with mode: 0644]