Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Oct 13, 2022
1 parent 7003a0c commit e9a819b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/lang/articles/performance_tuning/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ We address this problem by introducing the *offline* cache feature, which dumps
* `'lru'`: Discards the cached files least used recently;
* `'fifo'`: Discards the cached files added in the earliest.

To verify the effect, run some examples twice and observe the launch overhead:
![](../static/assets/effect_of_offline_cache.png)

:::note
If your code behaves abnormally, disable offline cache by setting the environment variable `TI_OFFLINE_CACHE=0` or `offline_cache=False` in the `ti.init()` method call and file an issue with us on [Taichi's GitHub repo](https://github.com/taichi-dev/taichi/issues/new/choose).
:::

0 comments on commit e9a819b

Please sign in to comment.