This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ repository = "https://github.com/tazz4843/whisper-rs"
1717whisper-rs-sys = { path = " sys" , version = " 0.13" }
1818log = { version = " 0.4" , optional = true }
1919tracing = { version = " 0.1" , optional = true }
20+ libc = { version = " 0.2" , optional = true }
2021
2122[dev-dependencies ]
2223hound = " 3.5.0"
@@ -31,7 +32,7 @@ cuda = ["whisper-rs-sys/cuda", "_gpu"]
3132hipblas = [" whisper-rs-sys/hipblas" , " _gpu" ]
3233openblas = [" whisper-rs-sys/openblas" ]
3334metal = [" whisper-rs-sys/metal" , " _gpu" ]
34- vulkan = [" whisper-rs-sys/vulkan" , " _gpu" ]
35+ vulkan = [" whisper-rs-sys/vulkan" , " _gpu" , " dep:libc " ]
3536openmp = [" whisper-rs-sys/openmp" ]
3637_gpu = []
3738test-with-tiny-model = []
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub fn list_devices() -> Vec<VkDeviceInfo> {
2929 ( 0 ..n)
3030 . map ( |id| {
3131 // 256 bytes is plenty (spec says 128 is enough)
32- let mut tmp = [ 0i8 ; 256 ] ;
32+ let mut tmp: [ libc :: c_char ; 256 ] = [ 0 ; 256 ] ;
3333 ggml_backend_vk_get_device_description ( id as c_int , tmp. as_mut_ptr ( ) , tmp. len ( ) ) ;
3434 let mut free = 0usize ;
3535 let mut total = 0usize ;
You can’t perform that action at this time.
0 commit comments