rusticl/llvmpipe: CoroEarly.cpp/lowerEarlyIntrinsics: The frontend uses Swtich-Resumed ABI should emit "coroutine.presplit" attribute for the coroutine
I built latest LLVM, clang and libclc from main
, commit 6f3276d57e265be0996e2f67e2e872401da8f511
.
I used them to build Mesa's rusticl driver (commit 00a4dc57) and tried to run some OpenCL tools.
I'm running rusticl with llvmpipe (LP_CL=1
).
With both ViennaCLBench and simple clpeak I get the same crash with this error message:
llvm-project/llvm/lib/Transforms/Coroutines/CoroEarly.cpp:204:
void {anonymous}::Lowerer::lowerEarlyIntrinsics(llvm::Function&):
Assertion `F.isPresplitCoroutine() && "The frontend uses Swtich-Resumed ABI should emit
" "\"coroutine.presplit\" attribute for the coroutine."' failed.
I asked @karolherbst on #rusticl
:
<illwieckz>
should I report it on LLVM or Mesa?
<karolherbst>
could be related to #6735 (closed)
<illwieckz>
So, maybe I start reporting it on Mesa side?
<karolherbst>
yeah.. I think it could be helpful, ping @airlied, Dave might know what's up
I also reproduce this problem with LuxMark3 on unmerged rusticl branch from !15439 (merged), but on main
I get #7298 (closed) instead.