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
Hi @Lithaca, sorry for the late reply. I've looked into the issue and I found that it is a bit hard to add it directly to the IR because it returns two numbers. However, we can write a Taichi function instead to do the same thing. We can add the function to our math module. Here is a possible implementation of frexp written in Java. Here is the documentation of Taichi. Welcome to contribute to our codebase if you are still interested.
Activity
victoriacity commentedon Sep 13, 2022
LLVM seems to have
frexp()function, but indeedfrexp()is not implemented in the Taichi frontend. @neozhaoliang do you think it would be worth adding toti.Mathmodule?bobcao3 commentedon Sep 13, 2022
ref: In SPIR-V there is
FrexpStruct. In metal there isfrexpneozhaoliang commentedon Sep 14, 2022
I think it's good to have this function.
Linyou commentedon Sep 14, 2022
Thanks for the great work!
Lithaca commentedon Sep 26, 2022
I am interested in this issue and want to work on it. I am new to taichi, is there any reference material about how to get start.
lin-hitonami commentedon Nov 7, 2022
Hi @Lithaca, sorry for the late reply. I've looked into the issue and I found that it is a bit hard to add it directly to the IR because it returns two numbers. However, we can write a Taichi function instead to do the same thing. We can add the function to our math module. Here is a possible implementation of
frexpwritten in Java. Here is the documentation of Taichi. Welcome to contribute to our codebase if you are still interested.ailzhang commentedon Apr 4, 2023
FYI #7721 added support for CUDA backend, will send out a separate PR for spirv-based (and maybe CPU) backend in the future (lower pri for now).
aezyus commentedon May 9, 2026
I see this issue is still open, I would love to work on it. Do consider.
~