MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / main

Function main

scripts/run_dataset.py:346–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344
345
346def main():
347 ap = argparse.ArgumentParser(
348 description="Run SOL ExecBench problems using reference implementations.",
349 )
350 ap.add_argument(
351 "problems_dir",
352 type=Path,
353 help="Path to a single problem directory (contains definition.json + workload.jsonl) "
354 "or a dataset root with category sub-directories (e.g. L1/, L2/).",
355 )
356 ap.add_argument(
357 "--category",
358 type=str,
359 nargs="+",
360 default=None,
361 choices=sorted(CATEGORIES),
362 help="Restrict to one or more categories (e.g. --category L1 L2).",
363 )
364 ap.add_argument(
365 "--limit",
366 type=int,
367 default=None,
368 help="Max number of problems to evaluate.",
369 )
370 ap.add_argument(
371 "-o",
372 "--output",
373 type=Path,
374 default=ROOT / "out",
375 help="Output directory for traces and summary. Defaults to <repo_root>/out.",
376 )
377 ap.add_argument(
378 "--timeout",
379 type=int,
380 default=300,
381 help="Per-problem GPU evaluation timeout in seconds (default: 300).",
382 )
383 ap.add_argument(
384 "--max-workloads",
385 type=int,
386 default=None,
387 help="Max number of workloads per problem. Truncates the workload file if exceeded.",
388 )
389 ap.add_argument(
390 "--iterations",
391 type=int,
392 default=None,
393 help="Number of timing iterations per workload (default: 50, from BenchmarkConfig).",
394 )
395 ap.add_argument(
396 "--solution-name",
397 type=str,
398 default=None,
399 help="Filename to look for in each problem directory as the solution "
400 "(e.g. solution.py, solution.json). "
401 ".py files are wrapped into a solution JSON automatically; "
402 ".json files are loaded directly. "
403 "Defaults to None (uses definition.reference).",

Callers 1

run_dataset.pyFile · 0.70

Calls 5

discover_problemsFunction · 0.85
inspect_tracesFunction · 0.85
run_cliFunction · 0.85
print_summaryFunction · 0.85

Tested by

no test coverage detected