Skip to content

Bug: CMAKE doesn't support RISC-V Vector Extention #10400

@angelosathanasiadis

Description

@angelosathanasiadis

What happened?

I hava managed to use RVV by building the llama.cpp with make (RISCV_VECT = 1). As you can see in the next figure:

make

When I try to use RVV by building the llama.cpp with cmake, the RVV is not used (RISCV_VECT = 0), as you can see in the figure below:

cmake

If I understand correctly from the Makefile (lines 516-517), I need to add somewhere, in the CMakefiles.txt these flags:

-march=rv64gcv -mabi=lp64d

Do you know maybe where I should add them?

Name and Version

version: 3861 (f1b8c42)
built with cc (Ubuntu 13.1.0-8ubuntu1~22.04) 13.1.0 for riscv64-linux-gnu

What operating system are you seeing the problem on?

Linux

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedmedium severityUsed to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions