whisper.cpp
whisper.cpp copied to clipboard
OpenCL clGetPlatformIDs error
$./main -m models/ggml-large-v3-q5_0.bin -f output.wav -l auto
whisper_init_from_file_with_params_no_state: loading model from 'models/ggml-large-v3-q5_0.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab = 51866
whisper_model_load: n_audio_ctx = 1500
whisper_model_load: n_audio_state = 1280
whisper_model_load: n_audio_head = 20
whisper_model_load: n_audio_layer = 32
whisper_model_load: n_text_ctx = 448
whisper_model_load: n_text_state = 1280
whisper_model_load: n_text_head = 20
whisper_model_load: n_text_layer = 32
whisper_model_load: n_mels = 128
whisper_model_load: ftype = 8
whisper_model_load: qntvr = 2
whisper_model_load: type = 5 (large v3)
whisper_model_load: adding 1609 extra tokens
whisper_model_load: n_langs = 100
ggml_opencl: clGetPlatformIDs(NPLAT, platform_ids, &n_platforms) error -1001 at ggml-opencl.cpp:986
Computer specifications :OS: Manjaro Xfce Desktop CPU: AMD Ryzen 5 3600 GPU: AMD RX 580 2048sp CLBLAST version: 1.6.2-1
How are you running this?
In a container, in a venv, on bare metal?
For my setup (just started playing today) I have to install ocl-icd-libopencl1
and mesa-opencl-icd
and that fixed the error you are seeing.
I am running on bare metal, Manjaro does not have ocl-icd-libopencl1
and mesa-opencl-icd
. Only ocl-icd
is installed.
I am running on bare metal, Manjaro does not have
ocl-icd-libopencl1
andmesa-opencl-icd
. Onlyocl-icd
is installed. I switched from Manjaro to EndeavourOS, but they are close enough to each other.
I got the same error message until I installed: extra/rocm-opencl-runtime
Not sure if it matters but I compiled whisper.cpp with CLBlast cmake -B build -DWHISPER_CLBLAST=ON
with package clblast 1.6.2-1
installed first.