Skip to content

Invalid Format Specifier for print_memory_profiler_info() #8663

@fangjunzhou

Description

@fangjunzhou

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions