Cilk and RISC-V #226
-
Before trying this out ourselves, has anyone tried to use OpenCilk on the RISC-V architecture and/or tried to build OpenCilk from scratch using a RISC-V toolchain? This is the base RISC-V version of gcc that we would be using: https://github.com/riscv-collab/riscv-gnu-toolchain |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't expect OpenCilk to work on RISC-V. The compiler should build but it will not be able to generate parallel code. Internally, |
Beta Was this translation helpful? Give feedback.
I don't expect OpenCilk to work on RISC-V. The compiler should build but it will not be able to generate parallel code.
Internally,
cilk_spawn
uses the__builtin_setjmp
function which is only available on ARM, x86, and PowerPC. Because this is a compiler builtin it doesn't matter if gcc supports it. The version of llvm used by OpenCilk has to support it. I have a plan to remove this dependency or at least make porting to a new architecture easier. There is no timeline for this work.