Skip to content

build : add ACCELERATE_NEW_LAPACK to fix warning on macOS Sonoma#3342

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
jagtesh:sonoma-update
Sep 27, 2023
Merged

build : add ACCELERATE_NEW_LAPACK to fix warning on macOS Sonoma#3342
ggerganov merged 1 commit into
ggml-org:masterfrom
jagtesh:sonoma-update

Conversation

@jagtesh

@jagtesh jagtesh commented Sep 26, 2023

Copy link
Copy Markdown
Contributor

Building on macOS Sonoma results in a couple of deprecation warnings:

ggml.c:11319:17: warning: 'cblas_sgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
                cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:610:6: note: 'cblas_sgemm' has been explicitly marked deprecated here
void cblas_sgemm(const enum CBLAS_ORDER __Order,

This pull request adds both compilation options to builds on macOS Sonoma, which fixes the warning.

@ggerganov
ggerganov merged commit 527e57c into ggml-org:master Sep 27, 2023
joelkuiper added a commit to vortext/llama.cpp that referenced this pull request Sep 27, 2023
…example

* 'master' of github.com:ggerganov/llama.cpp:
  convert : remove bug in convert.py permute function (ggml-org#3364)
  make-ggml.py : compatibility with more models and GGUF (ggml-org#3290)
  gguf : fix a few general keys (ggml-org#3341)
  metal : reusing llama.cpp logging (ggml-org#3152)
  build : add ACCELERATE_NEW_LAPACK to fix warning on macOS Sonoma (ggml-org#3342)
  readme : add some recent perplexity and bpw measurements to READMES, link for k-quants (ggml-org#3340)
  cmake : fix build-info.h on MSVC (ggml-org#3309)
  docs: Fix typo CLBlast_DIR var. (ggml-org#3330)
  nix : add cuda, use a symlinked toolkit for cmake (ggml-org#3202)
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
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