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

riscv 编译失败,找不到riscv-vector.h #974

Open
lss11005 opened this issue Jan 3, 2025 · 0 comments
Open

riscv 编译失败,找不到riscv-vector.h #974

lss11005 opened this issue Jan 3, 2025 · 0 comments

Comments

@lss11005
Copy link

lss11005 commented Jan 3, 2025

在D1上测试riscv平台的模型推理性能
按照手册给出的指导步骤,首先指定RISCV_ROOT_PATH,然后运行build.sh,编译中间报错

xxx/test_bench/ppl.nn/deps/ppl.kernel.cpu/src/ppl/kernel/riscv/fp32/arithmetic/arithmetic_kernel_fp32.h:21:10: fatal error: riscv-vector.h: No such file or directory
21 | #include <riscv-vector.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
ppl.kernel.cpu-build/CMakeFiles/pplkernelriscv_static.dir/build.make:127: recipe for target 'ppl.kernel.cpu-build/CMakeFiles/pplkernelriscv_static.dir/src/ppl/kernel/riscv/fp32/arithmetic/arithmetic_fp32.cpp.o' failed
make[2]: *** [ppl.kernel.cpu-build/CMakeFiles/pplkernelriscv_static.dir/src/ppl/kernel/riscv/fp32/arithmetic/arithmetic_fp32.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务....
xxx/test_bench/ppl.nn/deps/ppl.kernel.cpu/src/ppl/kernel/riscv/fp32/maxpool2d/maxpool2d_n4cx_1x16_fp32.cpp:18:10: fatal error: riscv-vector.h: No such file or directory
18 | #include <riscv-vector.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
xxx/test_bench/ppl.nn/deps/ppl.kernel.cpu/src/ppl/kernel/riscv/fp32/clip/clip_fp32.cpp:18:10: fatal error: riscv-vector.h: No such file or directory
18 | #include <riscv-vector.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
ppl.kernel.cpu-build/CMakeFiles/pplkernelriscv_static.dir/build.make:491: recipe for target 'ppl.kernel.cpu-build/CMakeFiles/pplkernelriscv_static.dir/src/ppl/kernel/riscv/fp32/maxpool2d/maxpool2d_n4cx_1x16_fp32.cpp.o' failed

请问导致这个问题的原因是什么,应该如何解决~~

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

1 participant