From d6c569d3381499c2cf980bc729963e5f48bd60ba Mon Sep 17 00:00:00 2001 From: Zihua Wu Date: Tue, 6 Sep 2022 14:08:00 +0800 Subject: [PATCH] [doc] Add a note about the offline cache in the print_ir part (#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 --- docs/lang/articles/reference/global_settings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lang/articles/reference/global_settings.md b/docs/lang/articles/reference/global_settings.md index cf866da3fcede..fdcc5a8646222 100644 --- a/docs/lang/articles/reference/global_settings.md +++ b/docs/lang/articles/reference/global_settings.md @@ -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