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

编译内核时报错 #6

Open
sdrzmgy opened this issue Mar 27, 2024 · 3 comments
Open

编译内核时报错 #6

sdrzmgy opened this issue Mar 27, 2024 · 3 comments

Comments

@sdrzmgy
Copy link

sdrzmgy commented Mar 27, 2024

按文档中流程将 rknpu 驱动代码覆盖到当前内核代码目录,在编译(make -j10)的时候报错:
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/rknpu/rknpu_gem.o
drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_pages':
drivers/rknpu/rknpu_gem.c:891:9: error: implicit declaration of function 'vm_flags_set' [-Werror=implicit-function-declaration]
891 | vm_flags_set(vma, VM_MIXEDMAP);
| ^~~~~~~~~~~~
drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_buffer':
drivers/rknpu/rknpu_gem.c:988:9: error: implicit declaration of function 'vm_flags_clear' [-Werror=implicit-function-declaration]
988 | vm_flags_clear(vma, VM_PFNMAP);
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:273: drivers/rknpu/rknpu_gem.o] Error 1
make[1]: *** [scripts/Makefile.build:516: drivers/rknpu] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1929: drivers] Error 2
make: *** Waiting for unfinished jobs....

@noah003
Copy link

noah003 commented Apr 2, 2024

the same error

@happyme531
Copy link

Workaround: ggerganov/llama.cpp#722 (comment)

@sdrzmgy
Copy link
Author

sdrzmgy commented Apr 7, 2024

Workaround: ggerganov/llama.cpp#722 (comment)

I have tried this, but llama.cpp cannot run on rknpu which i think will be much faster than on CPU or mali-g610 GPU.

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

3 participants