From c6040860076ebf6f8c25d88de46de7d9f93a760e Mon Sep 17 00:00:00 2001 From: Zhao Liang Date: Tue, 3 Jan 2023 14:37:11 +0800 Subject: [PATCH 1/2] [Doc] Remove packed mode in doc --- docs/lang/articles/reference/global_settings.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/lang/articles/reference/global_settings.md b/docs/lang/articles/reference/global_settings.md index 8ef7bcb7ebe8b..d49f4386bfee7 100644 --- a/docs/lang/articles/reference/global_settings.md +++ b/docs/lang/articles/reference/global_settings.md @@ -70,9 +70,6 @@ Following are some frequently-used configurations in `ti.init()`: offline_cache_file_path: str Set a directory for holding the offline cached files. - packed: bool - Enable/disable the packed memory layout. - random_seed: int Set a custom seed for the random number generator. @@ -174,7 +171,6 @@ If you want to use CUDA and Taichi's GGUI system at the same time on a machine w - To set a custom seed for the random number generator used by `ti.random()`: `ti.init(random_seed=seed)`. `seed` should be an integer. An example: `ti.init(random_seed=int(time.time()))`. - To set the default precision of floating-point numbers of Taichi runtime to `ti.f64`: `ti.init(default_fp=ti.i64)`. - To set the default precision of floating-point numbers of Taichi runtime to `ti.i32`: `ti.init(default_ip=ti.i32)`. -- To enable the packed mode for memory layout: `ti.init(packed=True)`. See the [Packed mode](../basic/layout.md#packed-mode) for more information. - To disable the offline cache of compiled kernels: `ti.init(offline_cache=False)`. See the [Offline cache](../performance_tuning/performance.md#offline-cache) for more information. - To enable the use of variables as indices to access vector/matrix elements in the Taichi scope: `ti.init(dynamic_index=True)`. - To turn on kernel profiling: `ti.init(kernel_profiler=True)`. See the [Profiler](../performance_tuning/profiler.md#kernelprofiler) for more information. From dbd25e6fe6cc380901ea5d63d8febc06c22249b1 Mon Sep 17 00:00:00 2001 From: Zhao Liang Date: Tue, 3 Jan 2023 14:44:55 +0800 Subject: [PATCH 2/2] 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 d49f4386bfee7..44c54666fed3b 100644 --- a/docs/lang/articles/reference/global_settings.md +++ b/docs/lang/articles/reference/global_settings.md @@ -178,7 +178,7 @@ If you want to use CUDA and Taichi's GGUI system at the same time on a machine w ## Logging -- To set the logging level: `ti.init(log_level=ti.TRACE)` or `ti.set_logging_level(ti.TRACE)` enables the TRACE level. The environment variable `TI_LOG_LEVEL` serves the same purpose. +- To set the logging level: `ti.init(log_level=ti.TRACE)` or `ti.set_logging_level(ti.TRACE)` enables the TRACE level. The environment variable `TI_LOG_LEVEL` serves the same purpose. - To eliminate verbose outputs: `ti.init(verbose=False)`. ## Develop