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

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, 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

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; 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.