Skip to content

Commit

Permalink
[doc] Add a note about the offline cache in the print_ir part (taichi…
Browse files Browse the repository at this point in the history
…-dev#5986)

* Add a note about the offline cache 

Add a note about the offline cache in the `print_ir` part to help users.

* Update global_settings.md
  • Loading branch information
lucifer1004 authored Sep 6, 2022
1 parent a88a0e2 commit d6c569d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lang/articles/reference/global_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In case you want to use taichi cuda backend together with GGUI on a machine with
errors: `ti.init(advanced_optimization=False)`.
- Disable fast math to prevent possible undefined math behavior:
`ti.init(fast_math=False)`.
- To print intermediate IR generated: `ti.init(print_ir=True)`.
- To print intermediate IR generated: `ti.init(print_ir=True)`. Note that compiled kernels are [cached by default](https://docs.taichi-lang.org/docs/performance#offline-cache). To force compilation and IR emission, use `ti.init(print_ir=True, offline_cache=False)`.

## Runtime

Expand Down

0 comments on commit d6c569d

Please sign in to comment.