-
Notifications
You must be signed in to change notification settings - Fork 216
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
Add whisper.cpp #1335
base: master
Are you sure you want to change the base?
Add whisper.cpp #1335
Conversation
if build_machine.system() == 'linux' | ||
add_project_arguments('-D_GNU_SOURCE', language: 'c') | ||
|
||
if not get_option('no_avx') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do double negation, e.g. if get_option('avx').enabled() ..,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would prefer x86 extensions opt-in, rather than opt-out. Chances of it being compiled elsewhere are high.
At least check for host_machine.cpu_family() == 'x86_64'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll switch these around, this was just a one for one port of the original cmake build files, I didn't want to mess with things too much
whisper_cpp_dep = declare_dependency( | ||
include_directories: '.', | ||
dependencies: [ggml_dep], | ||
link_with: whisper_lib, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider install
ing it, adding version
and soversion
Installing headers and pkg-config *.pc
file would be also nice, as a stretch goal.
No description provided.