Hi! Due Halide now supports RISC-V both in AOT and JIT modes, it would be nice to know if riscv64 based buildbot instance for tests can be added. There are two approaches I can suggest based on QEMU:
3. For RVV tests there are https://github.com/riscv-collab/riscv-gnu-toolchain and https://syntacore.com/page/products/sw-tools available.
Maybe, it's better start with LLVM 15. How can I help here?
This is a good idea -- I can help implement this, but the thing that would help me a lot would be to know which Halide test groups are working and ready to be tested.
Hi! Due Halide now supports RISC-V both in AOT and JIT modes, it would be nice to know if riscv64 based buildbot instance for tests can be added. There are two approaches I can suggest based on QEMU:
Use Ubuntu cross-compilers in Docker:
Then
qemu-riscv64-static
can be used to run the binariesUse Ubuntu QEMU images (https://ubuntu.com/download/risc-v) example:
qemu-system-riscv64 \ -machine virt -nographic -m 2048 -smp 2 \ -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \ -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \ -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 \ -drive file=ubuntu-20.04.2-preinstalled-server-riscv64.img,format=raw,if=virtio