Skip to content

Make build parallelism configurable via CLI #41

Description

@dionhaefner

build_all() in mosaic/benchmarks/core/runner.py hardcodes max_workers=2 for Docker image builds. On machines with many cores and fast I/O, this is unnecessarily slow.

Goal: Expose a --build-workers N flag on mosaic run (and mosaic build if it exists) so users can tune build parallelism to their hardware.

Where to look:

  • mosaic/benchmarks/core/runner.pybuild_all() function
  • mosaic/benchmarks/cli.py — CLI flag definitions (typer-based)

A reasonable default would be min(cpu_count(), 4) or similar, with the flag as an override.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions