whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

ggml assertion error with opencl

Open thewh1teagle opened this issue 1 year ago • 0 comments
trafficstars

When using opencl + openblas I get the following error. If I use only opencl without openblas the error diaspper.

cargo test --release --features "opencl,openblas" -- --nocapture
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   C:\Users\User\Documents\code\vibe\core\Cargo.toml
workspace: C:\Users\User\Documents\code\vibe\Cargo.toml
    Finished `release` profile [optimized] target(s) in 0.36s
     Running unittests src/lib.rs (C:\Users\User\Documents\code\vibe\target\release\deps\vibe_core-ff1f38c2a7ee8285.exe)

running 2 tests
2024-08-01T14:52:45.607760Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: open model...
2024-08-01T14:52:45.608209Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: gpu device: 0
2024-08-01T14:52:45.608352Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: use gpu: false
2024-08-01T14:52:45.608499Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: creating whisper context with model path ../ggml-tiny.bin
ggml_opencl: selecting platform: 'AMD Accelerated Parallel Processing'
ggml_opencl: selecting device: 'gfx902'
2024-08-01T14:52:46.480497Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: created context successfuly
2024-08-01T14:52:46.480909Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: Transcribe called with {
  "path": "../samples/short.wav",
  "lang": "en",
  "verbose": null,
  "n_threads": null,
  "init_prompt": null,
  "temperature": null,
  "translate": null,
  "max_text_ctx": null,
  "word_timestamps": null,
  "max_sentence_len": null
}
2024-08-01T14:52:46.483039Z DEBUG test_transcribe_with_callbacks: vibe_core::audio: ffmpeg path is C:\Users\User\Documents\code\vibe\target\release\ffmpeg.exe
2024-08-01T14:52:46.530557Z DEBUG test_transcribe_with_callbacks: vibe_core::audio: wav reader read from "C:\\Users\\User\\AppData\\Local\\Temp\\.tmpr4TAPZ.wav"
2024-08-01T14:52:46.536412Z DEBUG test_transcribe_with_callbacks: vibe_core::audio: parsing C:\Users\User\AppData\Local\Temp\.tmpr4TAPZ.wav
ggml_gallocr_needs_realloc: graph has different number of nodes
ggml_gallocr_alloc_graph: reallocating buffers automatically
ggml_gallocr_reserve_n: reallocating CPU buffer from size 0.00 MiB to 11.08 MiB
ggml_gallocr_needs_realloc: graph has different number of nodes
ggml_gallocr_alloc_graph: reallocating buffers automatically
ggml_gallocr_reserve_n: reallocating CPU buffer from size 0.00 MiB to 80.06 MiB
ggml_gallocr_needs_realloc: graph has different number of nodes
ggml_gallocr_alloc_graph: reallocating buffers automatically
ggml_gallocr_reserve_n: reallocating CPU buffer from size 0.00 MiB to 2.20 MiB
ggml_gallocr_needs_realloc: graph has different number of nodes
ggml_gallocr_alloc_graph: reallocating buffers automatically
ggml_gallocr_reserve_n: reallocating CPU buffer from size 0.00 MiB to 89.95 MiB
2024-08-01T14:52:46.546495Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: set language to Some("en")
2024-08-01T14:52:46.546639Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: set start time...
2024-08-01T14:52:46.546768Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: setting state full...
2024-08-01T14:52:46.574939Z DEBUG test_transcribe_with_callbacks: vibe_core::transcribe: progress callback 0
2024-08-01T14:52:46.575199Z DEBUG test_transcribe_with_callbacks: vibe_core::test: desktop progress is 0
0%
GGML_ASSERT: C:\Users\User\Documents\code\vibe\target\release\build\whisper-rs-sys-d445c2bc34e31876\out\whisper.cpp\ggml-opencl.cpp:1942: ggml_cl_can_mul_mat(src0, src1, dst)
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `C:\Users\User\Documents\code\vibe\target\release\deps\vibe_core-ff1f38c2a7ee8285.exe --nocapture` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

thewh1teagle avatar Aug 01 '24 14:08 thewh1teagle