Skip to content

How to cross-compile a RISCV version llama.cpp. #11827

Answered by jacknrose
taiqzheng asked this question in Q&A
Discussion options

You must be logged in to vote

try like this:

mkdir build-riscv && cd build-riscv
cmake
-DCMAKE_SYSTEM_NAME=Linux
-DCMAKE_SYSTEM_PROCESSOR=riscv64
-DCMAKE_C_COMPILER=riscv64-unknown-linux-gnu-gcc
-DCMAKE_CXX_COMPILER=riscv64-unknown-linux-gnu-g++
-DCMAKE_BUILD_TYPE=Debug
-DBUILD_SHARED_LIBS=OFF
..

make -j8

Anyway, It works on my machine.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@taiqzheng
Comment options

Answer selected by taiqzheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants