[Lang] Make @ti.func
callable from Python-scope, or @ti.kfunc
if we're afraid of breaking API
#1379
Labels
feature request
Suggest an idea on this project
good first issue
A great chance for starters
python
Python engineering related
Concisely describe the proposed feature
It would be convenient to unify these two concepts, both for API clarity and reducing user learning obstacle.
This issue will be just a begining of this refactor.
Describe the solution you'd like (if any)
We may first add
@ti.kfunc
as a experimental one, then replace@ti.func
when it's mature and battle-tested.@ti.func
called from Python-scope will be translated into a minimal kernel that executes it, and exit.@ti.kfunc
that create both a@ti.func
and@ti.kernel
, when called from corresponding scope, call func/kernel.Additional comments
@yuanming-hu @k-ye WDYT? Inputs are welcome!
The text was updated successfully, but these errors were encountered: