You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid Format Specifier for print_memory_profiler_info() #8663
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
I took a look at the function in taichi/runtime/llvm/llvm_runtime_executor.cpp and it looks like the issue could be the :n in lines 363 and 364. :n was deprecated in fmt verison 8.0 (and subsequently removed) and should be changed to :L
Seems like a relatively easy fix if anyone wants to actually give it a go?
Activity
hughperkins commentedon Apr 27, 2025
works ok for me on python 3.10 on arm64 mac
I wonder if it's related to python version? What happens if you use python 3.10?
hughperkins commentedon Apr 30, 2025
Actually, I don't know what I was doing before, but I get the same error now 🤔 (Actually, I re-found this when googling the error 😅)
NathanaelJ commentedon May 18, 2026
I also get this issue. Would love to find out a solution... My setup is:
[Taichi] version 1.7.3, llvm 15.0.4, commit 5ec301be, linux, python 3.10.12The profiler prints some information before the error occurs:
I took a look at the function in
taichi/runtime/llvm/llvm_runtime_executor.cppand it looks like the issue could be the:nin lines 363 and 364.:nwas deprecated in fmt verison 8.0 (and subsequently removed) and should be changed to:LSeems like a relatively easy fix if anyone wants to actually give it a go?