Skip to content

Commit

Permalink
add kb
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-hitonami committed Nov 17, 2023
1 parent fc9083b commit 93aed50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lang/articles/kernels/kernel_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Return values of a Taichi real function can be scalars, `ti.types.matrix()`, `ti

The example below calls the real function `sum_func` recursively to calculate the sum of `1` to `n`.
Inside the real function, there are two `return` statements, and the recursion depth is not a constant number.
The cuda stack limit is set to `32768` to allow deep runtime recursion.
The cuda stack limit is set to 32kB to allow deep runtime recursion.

```python skip-ci:ToyDemo
ti.init(arch=ti.cuda, cuda_stack_limit=32768)
Expand Down

0 comments on commit 93aed50

Please sign in to comment.