You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled exception: Internal Error at /home/jansel/Halide/src/CodeGen_LLVM.cpp:1336 triggered by user code at : Condition failed: types_match: Codegen of Expr (float32)is_inf_f32((float32)strict_float(reinterpret<float32>((uint32)bitwise_or((uint32)shift_left(uint32((uint16)bitwise_and((uint16)t266, (uint16)32768)), (uint32)16), select((uint16)t267 == (uint16)0, (uint32)0, select((uint16)t267 < (uint16)1024, reinterpret<uint32>((float32)strict_float(float32((uint16)t267))) - (uint32)201326592, select((uint16)t267 >= (uint16)31744, (uint32)bitwise_or((uint32)t268, (uint32)2139095040), (uint32)t268 + (uint32)939524096))))))) of type float32 did not produce llvm IR of the corresponding llvm type.
Traceback (most recent call last):
File "/home/jansel/pytorch/repro.py", line 61, in <module>
hl.main()
RuntimeError: Generator failed: -1
Oh I see the bug. It's in EmulateFloat16Math.cpp. It rewrites all float16 transcendentals/intrinsics to their float32 equivalents, but it just assumes these functions return float
Repro:
Output:
It works with 32 bit however:
The text was updated successfully, but these errors were encountered: