Skip to content

Commit

Permalink
make : use pkg-config for OpenBLAS (ggerganov#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jul 14, 2023
1 parent 7cdd30b commit 7dabc66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ ifdef LLAMA_MPI
endif # LLAMA_MPI

ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
LDFLAGS += -lopenblas
CFLAGS += -DGGML_USE_OPENBLAS $(shell pkg-config --cflags openblas)
LDFLAGS += $(shell pkg-config --libs openblas)
endif # LLAMA_OPENBLAS

ifdef LLAMA_BLIS
Expand Down

0 comments on commit 7dabc66

Please sign in to comment.