-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Compilation with CLBlast in onboard graphics #2676
Comments
Silly suggestion: try running "sudo ldconfig" The error suggests that the "libclblast.a" library file that is being picked up by g++ was not originally built to be used to link into relocatable object file. The "recompile con -fPIC" option seems to be used to suggest this. There may already be a version of the ".a" file with a ".so" suffix on disc, but not being picked up by the ld tool's cache. ldconfig will rebuild that cache, and may allow g++ to link against that file instead. |
You need to compile CLBlast with Add it to |
Now CLBlast compile in AMD with CuDA and run fast. Thakyou. But if compile in Intel (without graphics card), no errors in compilation time, but in runtime of main say: main: build = 1015 (226255b) |
And in another Intel Core I3 (without graphics card), in runtime of main say: main: build = 1018 (8e4364f) llama_load_model_from_file: failed to load model |
The parameters are: |
Model format has changed, you need to convert files or download new files: #2398 |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
In order to compile with CLBlast:
make LLAMA_CLBLAST=1
say error:
g++ --shared -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -march=native -mtune=native -DGGML_USE_K_QUANTS -DGGML_USE_CLBLAST -I/usr/local/include -I/home/raul/Desktop/Librerias/OpenCL-SDK/install/include examples/embd-input/embd-input-lib.cpp ggml.o llama.o common.o k_quants.o ggml-opencl.o ggml-alloc.o -o libembdinput.so -L/usr/local/lib -lclblast -L/home/raul/Desktop/Librerias/OpenCL-SDK/install/lib -lOpenCL
/usr/bin/ld: /usr/local/lib/libclblast.a(xaxpy.cpp.o): warning: relocation against
_ZN7clblast8database11XaxpyDoubleE' in read-only section
.text.startup'/usr/bin/ld: /usr/local/lib/libclblast.a(xdot.cpp.o): relocation R_X86_64_PC32 against symbol `ZTSZN7clblast6BufferISt7complexIdEEC4ERKNS_7ContextENS_12BufferAccessEmEUlPP7_cl_memE' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: falló el enlace final: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:382: libembdinput.so] Error 1
¿What is the problem?
The text was updated successfully, but these errors were encountered: