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

Add whisper.cpp #1335

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add whisper.cpp #1335

wants to merge 5 commits into from

Conversation

tmayoff
Copy link
Contributor

@tmayoff tmayoff commented Dec 14, 2023

No description provided.

if build_machine.system() == 'linux'
add_project_arguments('-D_GNU_SOURCE', language: 'c')

if not get_option('no_avx')
Copy link
Contributor

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() ..,

Copy link
Contributor

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'

Copy link
Contributor Author

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

subprojects/packagefiles/whisper_cpp/meson.build Outdated Show resolved Hide resolved
subprojects/packagefiles/whisper_cpp/meson_options.txt Outdated Show resolved Hide resolved
subprojects/packagefiles/whisper_cpp/meson_options.txt Outdated Show resolved Hide resolved
whisper_cpp_dep = declare_dependency(
include_directories: '.',
dependencies: [ggml_dep],
link_with: whisper_lib,
Copy link
Contributor

@klokik klokik Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider installing it, adding version and soversion

Installing headers and pkg-config *.pc file would be also nice, as a stretch goal.

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