#8663·taichi

Invalid Format Specifier for `print_memory_profiler_info()`

Author: fangjunzhouCreated Mar 18, 2025Updated May 18, 2026

Describe the bug

ti.profiler.memory_profiler.print_memory_profiler_info() seems to be broken with RuntimeError: invalid format specifier error message.

To Reproduce

Run the following code:

python
import taichi.profiler as profiler

ti.init(arch=ti.cpu, debug=True)

profiler.print_memory_profiler_info()

Log/Screenshots

    def print_memory_profiler_info():
        """Memory profiling tool for LLVM backends with full sparse support.

        This profiler is automatically on.
        """
        get_runtime().materialize()
>       get_runtime().prog.print_memory_profiler_info()
E       RuntimeError: invalid format specifier

.venv/lib/python3.12/site-packages/taichi/profiler/memory_profiler.py:10: RuntimeError