diff options
author | nusu-github <29514220+nusu-github@users.noreply.github.com> | 2023-03-21 09:37:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 01:37:16 +0100 |
commit | 8cf9f34eddc124d4ab28f4d2fe8e99d574510bde (patch) | |
tree | 0895d5046f8e445873b41153612827c46ebc0417 /models | |
parent | bd4b46d6ba504b99c936f43fc014529adffb6048 (diff) |
Adding missing features of CMakeLists.txt & Refactoring (#131)
* Functionality addition CMakeLists.txt
Refactoring:
1. Simplify more options that are negation of negation.
LLAMA_NO_ACCELERATE -> LLAMA_ACCELERATE
2. Changed to an optional expression instead of forcing to enable AVX2 in MSVC.
3. Make CMAKE_CXX_STANDARD, which is different from Makefile, the same.
4. Use add_compile_options instead of adding options to CMAKE_C_FLAGS.
5. Make utils use target_link_libraries instead of directly referencing code.
Added features:
1. Added some options.
LLAMA_STATIC_LINK,LLAMA_NATIVE,LLAMA_LTO,LLAMA_GPROF,LLAMA_OPENBLAS
* Fix Accelerate link in CMake
* Windows build Fix
* C++11 to C++17
* Reflects C/C++ standard individually
* Change the version to 3.12
---------
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'models')
0 files changed, 0 insertions, 0 deletions