Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCL error on Linux #2061

Open
thewh1teagle opened this issue Apr 16, 2024 · 1 comment
Open

OpenCL error on Linux #2061

thewh1teagle opened this issue Apr 16, 2024 · 1 comment

Comments

@thewh1teagle
Copy link
Contributor

Platform: ubuntu 22.04
CPU: amd ryzen-5 4500u

$ sudo apt install -y libclblast-dev ocl-icd-opencl-dev mesa-opencl-icd
$ git clone https://github.com/ggerganov/whisper.cpp
$ cd whisper.cpp
$ cmake -B build . -DWHISPER_CLBLAST=ON
$ cmake --build build -- -j12

$ ./build/bin/main -m ~/.local/share/github.com.thewh1teagle.vibe/ggml-medium.bin samples/jfk.wav
whisper_init_from_file_with_params_no_state: loading model from '/home/user/.local/share/github.com.thewh1teagle.vibe/ggml-medium.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab       = 51865
whisper_model_load: n_audio_ctx   = 1500
whisper_model_load: n_audio_state = 1024
whisper_model_load: n_audio_head  = 16
whisper_model_load: n_audio_layer = 24
whisper_model_load: n_text_ctx    = 448
whisper_model_load: n_text_state  = 1024
whisper_model_load: n_text_head   = 16
whisper_model_load: n_text_layer  = 24
whisper_model_load: n_mels        = 80
whisper_model_load: ftype         = 1
whisper_model_load: qntvr         = 0
whisper_model_load: type          = 4 (medium)
whisper_model_load: adding 1608 extra tokens
whisper_model_load: n_langs       = 99
ggml_opencl: selecting platform: 'Clover'
ggml_opencl: selecting device: 'RENOIR (renoir, LLVM 15.0.7, DRM 3.54, 6.5.0-26-generic)'
ggml_opencl: kernel compile error:

fatal error: cannot open file '/usr/lib/clc/gfx909-amdgcn-mesa-mesa3d.bc': No such file or directory

@tamo
Copy link
Contributor

tamo commented Apr 16, 2024

Maybe it's related to this: https://bugs.launchpad.net/ubuntu/+source/libclc/+bug/1909805
Then whisper.cpp is not to blame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants