-
Notifications
You must be signed in to change notification settings - Fork 11.6k
opencl error #1561
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
What does |
@AlphaAtlas |
Ah, yeah, you need an opencl driver @intulint |
Use sudo to run main |
I'm getting the same error...
Running as sudo doesn't help. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
main: build = 583 (7e4ea5b)
main: seed = 1684764457
ggml_opencl: clGetPlatformIDs(NPLAT, platform_ids, &n_platforms) error -1001 at ggml-opencl.c:221
Can't determine?
This is an old laptop on intel i5-2430m with avx
Built on ubuntu with
make LLAMA_CLBLAST=1
I llama.cpp build info:
I UNAME_S: Linux
I UNAME_P: x86_64
I UNAME_M: x86_64
I CFLAGS: -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -march=native -mtune=native -DGGML_USE_CLBLAST
I CXXFLAGS: -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native
I LDFLAGS: -lclblast -lOpenCL
I CC: cc (Ubuntu 11.3.0-1ubuntu1
22.04.1) 11.3.022.04.1) 11.3.0I CXX: g++ (Ubuntu 11.3.0-1ubuntu1
cc -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict prototypes -Wpointer-arith -pthread -march=native -mtune=native -DGGML_USE_CLBLAST -c ggml.c -o ggml.o
ggml.c: In function ‘ggml_compute_forward_mul_mat_q_f32’:
ggml.c:9951:34: warning: unused variable ‘dequantize_row_q’ [-Wunused-variable]
9951 | dequantize_row_q_t const dequantize_row_q = quantize_fns[type].dequantize_row_q;
| ^~~~~~~~~~~~~~~~ ggml.c:9950:23: warning: unused variable ‘wdata’ [-Wunused-variable]
9950 | float * const wdata = params->wdata;
| ^~~~~
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native -c llama.cpp -o llama.o
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native -c examples/common.cpp -o common.o
cc -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -march=native -mtune=native -DGGML_USE_CLBLAST -c ggml-opencl.c -o ggml-opencl.o
ggml-opencl.c: In function ‘ggml_cl_sgemm_wrapper’:
ggml-opencl.c:448:18: warning: ‘kernel’ may be used uninitialized in this function [-Wmaybe-uninitialized]
448 | CL_CHECK(clEnqueueNDRangeKernel(queue, kernel, 1, NULL, &global, &local, 1, &ev_qb, &ev_b));
| ^~~~~~~~~~~~~~~~~~~~~~
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native examples/main/main.cpp ggml.o llama.o common.o ggml-opencl.o -o main -lclblast -lOpenCL
==== Run ./main -h for help. ====
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native examples/quantize/quantize.cpp ggml.o llama.o ggml-opencl.o -o quantize -lclblast -lOpenCL
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native examples/quantize-stats/quantize-stats.cpp ggml.o llama.o ggml-opencl.o -o quantize-stats -lclblast -lOpenCL
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native examples/perplexity/perplexity.cpp ggml.o llama.o common.o ggml-opencl.o -o perplexity -lclblast -lOpenCL
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native examples/embedding/embedding.cpp ggml.o llama.o common.o ggml-opencl.o -o embedding -lclblast -lOpenCL
g++ -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native pocs/vdot/vdot.cpp ggml.o ggml-opencl.o -o vdot -lclblast -lOpenCL
The text was updated successfully, but these errors were encountered: