Commit graph

77 commits

Author SHA1 Message Date
arizhih
cc92f1bcb1 Merge branch 'master' into whisper-cpp-1-7-x
# Conflicts:
#	sys/build.rs
2024-10-22 12:23:11 +02:00
Niko
95689c6b80
Merge pull request #175 from thewh1teagle/fix/link-coreml
fix: add search path for coreml on macOS
2024-10-21 23:54:24 +00:00
arizhih
4913e20b5d Explicitly link to libomp on MacOS 2024-10-14 16:21:39 +02:00
flavio
d124152376 fix: macos vulkan build script 2024-09-17 15:26:44 +02:00
thewh1teagle
9cb98dcf53
fix: add search path for coreml on macOS 2024-09-14 00:56:01 +03:00
Niko
d8b6aefe06
Merge pull request #170 from thewh1teagle/feat/vulkan
Feat/vulkan
2024-09-13 21:07:32 +00:00
Stephen M. Coakley
fe9ffb8030 Expose whisper.cpp version as a static string
Add a `WHISPER_CPP_VERSION` static that contains the version number of whisper.cpp that whisper-rs was built with. This can be useful for downstream applications for debugging and logging purposes.

This is implemented using [build script metadata](https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key) for whisper-rs-sys to expose the version number of whisper.cpp defined in `CMakeLists.txt` as metadata to crates that depend on it. Then whisper-rs accesses that build metadata and defines its own internal compile-time environment variable containing the same value, which is then assigned to a static variable.

It seemed better to expose this information through build metadata rather than defining a static in whisper-rs-sys directly, despite the extra indirection, so as to keep whisper-rs-sys as pure bindings.
2024-09-10 12:38:33 -05:00
Niko
8596d2d98c
Merge pull request #169 from arizhih/whisper-cpp-latest
feat: Add support for new whisper.cpp project structure
2024-09-01 23:15:18 +00:00
thewh1teagle
e33cc3eb22
feat: add vulkan with new whisper.cpp structure
Co-authored-by: newfla <newfla@hotmail.it>
2024-08-18 21:23:46 +03:00
arizhih
ec609f18ff Add support for new whisper.cpp project structure
Remove opencl feature, removed in whisper.cpp
Add openmp feature and enable by default as in whisper.cpp
Update bindings
2024-08-08 15:55:47 +02:00
thewh1teagle
67924ca473
fix: link openblas path correctly 2024-08-01 16:24:44 +03:00
Niko
744804a8aa
Merge pull request #163 from arizhih/fix-lang-detect
fix: lang_detect not working properly
2024-07-17 18:57:21 +00:00
arizhih
84522742da Enable WHISPER_DEBUG flag to get DEBUG logs on debug builds 2024-07-09 12:01:49 +02:00
thewh1teagle
d17e03caa6
cargo fmt 2024-06-08 00:54:14 +03:00
thewh1teagle
35aca74d64
feat(sys): allow passing more cmake flags 2024-06-07 22:23:53 +03:00
Niko
f1030ef762
Merge pull request #148 from hlhr202/feature/fix-metal
Feature/fix metal
2024-06-03 04:42:17 +00:00
flavio
ce71477a37 fix: fmt 2024-06-02 20:46:12 +02:00
flavio
18d8a96d6e improved panic message 2024-06-02 12:43:14 +02:00
flavio
41d909f5ef rocm linux support 2024-05-31 09:58:48 +02:00
hlhr202
8872109d04 optim: use build config instead of copying metal file to target folder 2024-05-29 10:42:25 +08:00
hlhr202
3f27c17fdf Merge remote-tracking branch 'origin/master' into feature/fix-metal 2024-05-29 10:25:41 +08:00
Niko
9e07fba125
Merge pull request #152 from thewh1teagle/feat/pass-whisper-cmake-flags
feat(sys): pass whisper cmake flags from environment variables
2024-05-28 22:04:07 +00:00
Niko
d7c20844fd
Merge pull request #142 from arizhih/update-whisper-cpp
Update whisper.cpp version to 1.6.2
2024-05-28 22:01:50 +00:00
thewh1teagle
991a1aefa5
feat(sys): pass whisper cmake flags from environment variables 2024-05-28 21:04:03 +03:00
hlhr202
357e1228af Merge remote-tracking branch 'origin/master' into feature/fix-metal 2024-05-17 13:06:22 +08:00
hlhr202
bf5a08dd1d fix: fmt 2024-05-16 14:10:03 +08:00
hlhr202
cd6a633fc5 try fix metal log 2024-05-07 01:26:42 +08:00
hlhr202
4bc5709e58 fix: metal 2024-05-07 00:52:33 +08:00
arizhih
813a433a52 Update whisper.cpp version to 1.5.5 2024-04-23 17:13:07 +02:00
arizhih
66068dced9
Add path to libcuda 2024-04-17 14:58:41 +02:00
littlegun
9dfb0b998e fix: LNK2019: unresolved external symbol cuGetErrorString 2024-03-19 17:22:14 +08:00
thewh1teagle
3fe56418ad fix windows gnu build 2024-01-08 05:52:29 +02:00
Niko
b5cddefcfa
Add flag to force debug mode 2023-12-15 21:20:39 -07:00
Niko
755d9e590f
Switch from Debug to RelWithDebugInfo
Debug builds are simply too slow to be remotely usable even on a 13700K,
or with an Intel Arc A770 GPU
(both tested to be unusable for anything approaching realtime)
2023-12-15 21:09:04 -07:00
Niko
fdf5ded360
Add debug info if Rust code is compiled with debug assertions 2023-12-15 16:15:12 -07:00
Niko
8690d35deb
Update whisper.cpp to v1.5 and add all structs 2023-11-16 18:56:50 -07:00
Niko
ba1b79138e
cargo fmt 2023-10-27 08:17:11 -06:00
Niko
ccccfe758d
Incorporate changes from sandbox-friendly PR 2023-10-27 08:16:09 -06:00
Niko
ace4bbd18a
Merge branch 'master' into metal-feature-flag
# Conflicts:
#	sys/build.rs
2023-10-27 08:13:17 -06:00
Patsakula Nikita
0b5a74a16c
[*] Sandbox-friendly build implemented.
* CMake machinery simplified.
* Build artifacts not stored in source directories anymore.
2023-10-15 17:32:37 +03:00
Niko
74dd93bf54
cargo fmt 2023-10-09 17:05:05 -06:00
Niko
253ac1bb6f
Add a feature flag for Metal acceleration support 2023-10-09 17:02:54 -06:00
Marcin Mielniczuk
99ebf2bea5 Add an OpenBLAS feature 2023-10-08 14:11:07 +02:00
Marcin Mielniczuk
d321f158b1 Expose the ggml functions in the bindings. 2023-08-20 21:27:41 +02:00
Zero
ba0cde2ea3
Revert "don't remove bindings/javascript/package.json, it's a committed file in whisper.cpp"
This reverts commit 46d8f47642.
2023-06-18 10:14:50 -06:00
Chris Rude
46d8f47642 don't remove bindings/javascript/package.json, it's a committed file in whisper.cpp 2023-06-05 15:42:37 -07:00
0/0
bf6d6fcf17
Merge pull request #60 from jnnnnn/cuda-windows
Fix windows cuda build
2023-05-29 14:24:40 +00:00
jnnnnn
a4e303ef3f
cfg_if 2023-05-29 19:17:48 +12:00
Jocelyn Stericker
0a8a791fad Use position independent code (-fPIC)
This allows whipser-rs-sys to work when building a cdylib on x86 Linux
in certain conditions.

Without this change, linking can fail with:

```
  = note: /usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): warning: relocation against `_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' in read-only section `.text.unlikely'
          /usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status
```

Note that this is one solution. I believe another would be to use the [cmake crate](https://github.com/rust-lang/cmake-rs), which builds with `-fPIC` by default on Linux.
2023-05-28 11:04:25 -04:00
jnnnnn
ffa9655a06
fmt 2023-05-25 15:05:05 +12:00