Skip to content

Bug: OpenBLAS compile for Android doesn‘t work in Ubuntu 22.04 #9039

Closed
@FranzKafkaYu

Description

@FranzKafkaYu

What happened?

I have followed the guide and install OpenBLAS first:

sudo apt install libopenblas-dev  

and I used the command to compile:

mkdir build-android-openblas && cd build-android-openblas && cmake -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=latest -DCMAKE_C_FLAGS=-march=armv8.4a+dotprod -DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS .. && make -j4  

and I see these warnings:

-- Could NOT find BLAS (missing: BLAS_LIBRARIES) 
CMake Warning at ggml/src/CMakeLists.txt:234 (message):
  BLAS not found, please refer to
  https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors
  to set correct GGML_BLAS_VENDOR

I checked CMakeCache.txt and found that the OpenBLAS library didn't get the right path.

Name and Version

version:
commit 97bdd26 (HEAD, tag: b3400)

What operating system are you seeing the problem on?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedlow severityUsed to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions