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

Initial C-style interface for whisper.cpp #19

Merged
merged 3 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
CC_SDL=`sdl2-config --cflags --libs`

main: ggml.o main.o
g++ -pthread -o main ggml.o main.o
main: ggml.o whisper.o main.o
g++ -pthread -o main ggml.o whisper.o main.o
./main -h

ggml.o: ggml.c ggml.h
gcc -pthread -O3 -mavx -mavx2 -mfma -mf16c -c ggml.c

whisper.o: whisper.cpp whisper.h
gcc -pthread -O3 -std=c++11 -c whisper.cpp

main.o: main.cpp ggml.h
g++ -pthread -O3 -std=c++11 -c main.cpp

stream: stream.cpp
g++ -pthread -O3 -std=c++11 -o stream stream.cpp ggml.o $(CC_SDL)
g++ -pthread -O3 -std=c++11 -o stream stream.cpp ggml.o whisper.o $(CC_SDL)

# clean up the directory
clean:
Expand Down
Loading