Home / Function/ run_all_benchmarks() — pytorch Function Reference

run_all_benchmarks() — pytorch Function Reference

Architecture documentation for the run_all_benchmarks() function in benchmark.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  7720c5f4_4d99_dc08_206e_db4b625e9915["run_all_benchmarks()"]
  40a19abe_a75a_07e4_e110_69bd1273c827["main()"]
  40a19abe_a75a_07e4_e110_69bd1273c827 -->|calls| 7720c5f4_4d99_dc08_206e_db4b625e9915
  3c2a3e40_c658_76b5_064a_c0466a2cbf0c["_run_benchmark()"]
  7720c5f4_4d99_dc08_206e_db4b625e9915 -->|calls| 3c2a3e40_c658_76b5_064a_c0466a2cbf0c
  style 7720c5f4_4d99_dc08_206e_db4b625e9915 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/genai_layers/benchmark.py lines 93–102

def run_all_benchmarks(script_args):
    """Run all available benchmarks."""
    print("Running all benchmarks...")
    print(f"Torch compile mode: {script_args.compile_mode}")
    print("=" * 60)

    for name, cls in BENCHMARK_REGISTRY.items():
        print(f"\n{'=' * 20} {name.upper()} {'=' * 20}")
        _run_benchmark(cls, script_args)
        print()

Subdomains

Called By

Frequently Asked Questions

What does run_all_benchmarks() do?
run_all_benchmarks() is a function in the pytorch codebase.
What does run_all_benchmarks() call?
run_all_benchmarks() calls 1 function(s): _run_benchmark.
What calls run_all_benchmarks()?
run_all_benchmarks() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free