Skip to content

Allow the user to specify the path to the OpenBLAS headers. (#627) #806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from

Conversation

vpxyz
Copy link

@vpxyz vpxyz commented Apr 6, 2023

Hi, this patch allow the user to specify the path of OpenBLAS headers.
As default the path is set to "/usr/include"

Thank you.

Vincenzo

CMakeLists.txt Outdated
@@ -60,6 +60,9 @@ option(LLAMA_FMA "llama: enable FMA"
# 3rd party libs
option(LLAMA_ACCELERATE "llama: enable Accelerate framework" ON)
option(LLAMA_OPENBLAS "llama: use OpenBLAS" OFF)
if (LLAMA_OPENBLAS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use FindPackage for OPENBLAS?

Copy link
Author

@vpxyz vpxyz Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find_package is used below, at line 115. find_package(BLAS) does not return the include path, only the path to the library. The current CMakeLists doesn't add -I/usr/include/openblas and the generated makefile are unable to build llama on Fedora.
/home/vincenzo/Projects/llama.cpp/ggml.c:145:10: fatal error: cblas.h: File o directory non esistente 145 | #include <cblas.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants