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
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
Jonathan Newnham
435a736af1
Fix windows cuda build
...
* add ggml-cuda.cu
* sort out linker paths using CUDA_PATH
2023-05-25 14:26:14 +12:00
r3g_5z
e475c85234
make sure the user has CMake installed
...
Signed-off-by: r3g_5z <june@girlboss.ceo>
2023-05-14 16:58:37 -04:00
Zero
a089bb71f9
fix broken things from update
2023-05-14 14:01:38 -06:00
Zero
9dd66a3b4b
add libraries to CUDA search path
2023-05-05 22:45:08 -06:00
Zero
e2f39c9c25
fix OpenCL build
2023-05-05 22:38:30 -06:00
Zero
9b3bebf4b5
Initial support for CUDA and OpenCL
2023-05-05 21:17:59 -06:00
yuni
91312ee92a
fix: error message for libwhisper.lib
...
In windows, we are using `libwhisper.lib` instead of `libwhisper.a` so renamed it.
2023-04-24 09:32:30 +09:00
Jonathan Soo
3d00a04e69
Clean up formatting
2023-04-21 10:25:15 -04:00
Jonathan Soo
77cdbd6187
Add coreml feature flag and build.rs updates
2023-04-21 07:59:33 -04:00
Zero
bde74dbc8b
fix cargo publish errors
2023-04-17 18:29:08 -06:00
Andrew Huynh
ccf2dcc109
test build change
2023-04-15 11:18:12 -07:00
Julian Bayardo Spadafora
cf1461dc54
Formatting
2023-03-12 23:50:46 -07:00
Julian Bayardo Spadafora
9611d6aec4
Fix lib copy on Linux
2023-03-12 20:32:11 -07:00
Julian Bayardo Spadafora
8a3fad0e79
Woops, remove need for shared libraries
2023-03-12 16:03:16 -07:00
Julian Bayardo Spadafora
6f03b925cc
Fix build on Windows
2023-03-12 13:31:42 -07:00
0/0
a329e0fa58
condense if statement tree
2023-02-08 16:24:51 -07:00
0/0
7350453ffe
Merge remote-tracking branch 'origin/master'
2023-02-08 16:19:12 -07:00
0/0
0da39195c0
disable clippy::uninlined_format_args
2023-02-06 18:59:38 -07:00
Niklas Korz
15dbd58c7e
Link against C++ standard library and macOS Accelerate framework
2022-12-15 16:40:37 +01:00
Ephraim Kunz
d3825debff
Fix print_system_info return value
2022-11-22 10:10:03 -07:00
0/0
1632ac11fe
update upstream whisper.cpp and fix breaking changes
2022-10-28 19:37:42 -06:00
0/0
b312bb86b8
clean build directory after building to prevent cargo complaining
2022-10-12 15:54:05 -06:00
0/0
9f84460cde
fix docs.rs build
2022-10-10 17:44:02 -06:00
0/0
040650bee5
fix native static library not found
2022-10-10 11:46:47 -06:00
0/0
cc2822e7e5
add more automation to build script
2022-10-10 11:05:03 -06:00
0/0
fec86e0d56
remove extraneous stuff from build.rs
2022-10-09 20:47:17 -06:00
0/0
e12122a6ed
Initial commit
2022-10-09 20:17:31 -06:00