mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
Force avx2 off if avx_only is checked.
This commit is contained in:
parent
e4b110639c
commit
fdecc7a60e
@ -51,10 +51,11 @@ message(STATUS "Qt 6 root directory: ${Qt6_ROOT_DIR}")
|
|||||||
set(LLAMA_BUILD_EXAMPLES ON CACHE BOOL "llama: build examples" FORCE)
|
set(LLAMA_BUILD_EXAMPLES ON CACHE BOOL "llama: build examples" FORCE)
|
||||||
set(BUILD_SHARED_LIBS ON FORCE)
|
set(BUILD_SHARED_LIBS ON FORCE)
|
||||||
|
|
||||||
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||||
option(GPT4ALL_AVX_ONLY OFF "Build for avx only")
|
option(GPT4ALL_AVX_ONLY OFF "Build for avx only")
|
||||||
option(GPT4ALL_LOCALHOST OFF "Build for local install repo")
|
option(GPT4ALL_LOCALHOST OFF "Build for local install repo")
|
||||||
if (GPT4ALL_AVX_ONLY)
|
if (GPT4ALL_AVX_ONLY)
|
||||||
set(LLAMA_AVX2 OFF "llama: enable AVX2" FORCE)
|
set(LLAMA_AVX2 OFF CACHE BOOL "llama: enable AVX2" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(llama.cpp)
|
add_subdirectory(llama.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user