# How to build OpenFHE for RISC-V with Vector Extension?

**URL:** <https://openfhe.discourse.group/t/how-to-build-openfhe-for-risc-v-with-vector-extension/1651>\
**Category:** Library Questions\
**Tags:** questions, openfhe-help\
**Created:** [October 17, 2024, 12:20pm UTC](https://openfhe.discourse.group/t/how-to-build-openfhe-for-risc-v-with-vector-extension/1651 "2024-10-17T12:20:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmehta](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pmehta](https://openfhe.discourse.group/u/pmehta)\
**Post date:** [October 17, 2024, 12:20pm UTC](https://openfhe.discourse.group/t/how-to-build-openfhe-for-risc-v-with-vector-extension/1651/1 "2024-10-17T12:20:26Z")

</div>

Hi,

I have a custom RISC-V Core with RVV support and I would like to build and run OpenFHE on it. I found [here](https://openfhe.discourse.group/t/v0-9-2-minor-update-is-released/103), that OpenFHE supports RISC-V. But, I am not able to see any information in docs regarding compilation process and what `VLEN` it supports. Can someone guide me on this?

Thanks

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [October 22, 2024, 3:11pm UTC](https://openfhe.discourse.group/t/how-to-build-openfhe-for-risc-v-with-vector-extension/1651/2 "2024-10-22T15:11:08Z")

</div>

Hi @pmehta,

One of contributors to OpenFHE previously tested OpenFHE (in 2022) on a RISC-V SBC, which was running Linux. Some changes were made to make it compile on the SBC. The build instructions should be similar to those for regular Linux.

There is also an open-source project [GitHub - openhwgroup/riscv\_vm: Instructions to import Ubuntu guest Virtual Machine for RISC-V development for the VEGA board](https://github.com/openhwgroup/riscv_vm); you could try building the latest version of OpenFHE on this VM.

RISC-V is not an officially supported architecture for OpenFHE, but you are certainly welcome to try it and share your results in the OpenFHE Discourse forum.
