Skip to content

Commit

Permalink
use shared openblas library
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed May 10, 2024
1 parent 3ced4ff commit 6cbdabe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ if (LLAMA_BLAS)

add_compile_definitions(GGML_USE_OPENBLAS)

add_subdirectory(../OpenBLAS ${CMAKE_CURRENT_BINARY_DIR}/OpenBLAS)
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} openblas)

set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} openblas_shared)
set(LLAMA_EXTRA_INCLUDES ${LLAMA_EXTRA_INCLUDES} ../OpenBLAS ${CMAKE_CURRENT_BINARY_DIR}/OpenBLAS)
# we need to add the shared openblas library we built in our over-arching project
# this directory includes the "config.h" file generated by OpenBLAS
set(LLAMA_EXTRA_INCLUDES ${LLAMA_EXTRA_INCLUDES} ../OpenBLAS ${CMAKE_CURRENT_BINARY_DIR}/../../openblas)
endif()

if (LLAMA_LLAMAFILE)
Expand Down

0 comments on commit 6cbdabe

Please sign in to comment.