Skip to content
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

Fix talk-llama build after ggml sync (commit 5feb0dffbae5). #1049

Merged

Conversation

przemoc
Copy link
Contributor

@przemoc przemoc commented Jun 25, 2023

sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp

sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp
@ggerganov ggerganov merged commit 62642bb into ggerganov:master Jun 25, 2023
@przemoc przemoc deleted the fix-talk-llama-build-after-ggml-sync branch June 25, 2023 13:45
@jasontitus
Copy link

Getting errors and a failed build with current checkout on a 'make clean' and 'WHISPER_COREML=1 make talk-llama'

I whisper.cpp build info:
I UNAME_S: Darwin
I UNAME_P: arm
I UNAME_M: arm64
I CFLAGS: -I. -O3 -DNDEBUG -std=c11 -fPIC -D_XOPEN_SOURCE=600 -pthread -DGGML_USE_ACCELERATE
I CXXFLAGS: -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -pthread -DWHISPER_USE_COREML
I LDFLAGS: -framework Accelerate -framework Foundation -framework CoreML
I CC: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
I CXX: Apple clang version 14.0.3 (clang-1403.0.22.14.1)

c++ -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -pthread -DWHISPER_USE_COREML examples/talk-llama/talk-llama.cpp examples/talk-llama/llama.cpp examples/common.cpp examples/common-ggml.cpp examples/common-sdl.cpp ggml.o whisper.o whisper-encoder.o whisper-encoder-impl.o -o talk-llama sdl2-config --cflags --libs -framework Accelerate -framework Foundation -framework CoreML
In file included from examples/talk-llama/llama.cpp:1:
examples/talk-llama/llama-util.h:189:63: error: use of undeclared identifier 'MADV_WILLNEED'
if (madvise(addr, std::min(file->size, prefetch), MADV_WILLNEED)) {
^
examples/talk-llama/llama-util.h:316:38: error: use of undeclared identifier 'RLIMIT_MEMLOCK'
if (suggest && getrlimit(RLIMIT_MEMLOCK, &lock_limit))
^
2 errors generated.
make: *** [talk-llama] Error 1

@przemoc
Copy link
Contributor Author

przemoc commented Jun 28, 2023

@jasontitus, not sure if you got notification from #1062, so please go there.

jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
sed -i 's,GGML_BACKEND_CUDA,GGML_BACKEND_GPU,g' examples/talk-llama/llama.cpp
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.

3 participants