-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc] Update doc about kernels and functions (#8400)
Issue: #8387 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at aff59bb</samp> This pull request updates the documentation of kernels and Taichi functions in `docs/lang/articles/kernels/kernel_function.md`. It introduces the concepts of Taichi real functions and multiple return values for kernels, and explains how they differ from other types of Taichi functions and kernels. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at aff59bb</samp> * Introduce and document the new feature of Taichi real functions, which allow recursive calls and multiple return statements, using the `@ti.real_func` decorator ([link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL10-R12), [link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL256-R318)) * Update the definition and terminology of Taichi functions to include both Taichi inline functions and Taichi real functions, and explain their differences ([link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL10-R12), [link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL256-R318)) * Emphasize the requirement of type hinting the arguments of kernels, which is different from Taichi functions ([link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL94-R96)) * Document and demonstrate the new feature of kernels having multiple return values, using tuples as return types ([link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL153-R158), [link](https://github.com/taichi-dev/taichi/pull/8400/files?diff=unified&w=0#diff-305d66d1c231266cb14a0d2b166363840f782874eb6c5b3d5d4e15e08f3cb04cL169-R185))
- Loading branch information
1 parent
f9daa65
commit fc4c8f1
Showing
1 changed file
with
64 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters