Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit a812820

Browse files
authored
Merge pull request #234 from ed10vi/arm-fix
Fix wrong type on aarch64
2 parents cba7238 + 9f6b693 commit a812820

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repository = "https://github.com/tazz4843/whisper-rs"
1717
whisper-rs-sys = { path = "sys", version = "0.13" }
1818
log = { version = "0.4", optional = true }
1919
tracing = { version = "0.1", optional = true }
20+
libc = { version = "0.2", optional = true }
2021

2122
[dev-dependencies]
2223
hound = "3.5.0"
@@ -31,7 +32,7 @@ cuda = ["whisper-rs-sys/cuda", "_gpu"]
3132
hipblas = ["whisper-rs-sys/hipblas", "_gpu"]
3233
openblas = ["whisper-rs-sys/openblas"]
3334
metal = ["whisper-rs-sys/metal", "_gpu"]
34-
vulkan = ["whisper-rs-sys/vulkan", "_gpu"]
35+
vulkan = ["whisper-rs-sys/vulkan", "_gpu", "dep:libc"]
3536
openmp = ["whisper-rs-sys/openmp"]
3637
intel-sycl = ["whisper-rs-sys/intel-sycl", "_gpu"]
3738
_gpu = []

src/vulkan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)