No idea if compilation in a baremetal environment will work, but a "generic" C-only build can be achieved either with the "ARMV5" target or by cloning the (somewhat outdated) risc-v branch that was created from
https://github.com/xianyi/OpenBLAS/pull/1526 . Unfortunately the conclusion back then appeared to be that current RISCV implementations are sufficiently different from other plaforms that the cache-sized blocking code actually reduces performance there. (See comments in the link)
Am Sonntag, 8. Dezember 2019 02:48:32 UTC+1 schrieb Bandhav Veluri:
Hi,
I'm trying to build OpenBLAS library for a RISC-V baremetal processor. The runtime environment is not an OS and is just the C std library provided by Newlib. Is it possible to use OpenBLAS in such an environment?
If yes, I'm guessing I'd have to compile OpenBLAS with just C sources without machine specific optimizations implemented in assembly kernels. I couldn't find such a target in TargetList.txt. If you're aware about any undocumented approach to achieve this, could you please share it?
Thank you,
Bandhav