From 2bceeaafb4a11bbf3b7fc873bf3eb999f20f22d4 Mon Sep 17 00:00:00 2001 From: "Michiel W. van Tol" Date: Mon, 18 May 2020 16:34:26 +0100 Subject: [PATCH] python: Make DOT config generation optional By default, DOT configs are always generated when pydot is present. This change allows a user to pass an empty --dot-config='' to disable generating the DOT configuration. This can be useful to save space, or to reduce Gem5 startup time when running many small regression tests. This brings the behavior in-line with providing an empty --dump_config='' and/or --json_config='' which similarly disables generation of those output files. Change-Id: I5bf39fda0409b948a8d14f3afa95db8fc78de6ee Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29232 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/python/m5/simulate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py index 3317ae8fd..698dfbc62 100644 --- a/src/python/m5/simulate.py +++ b/src/python/m5/simulate.py @@ -107,8 +107,9 @@ def instantiate(ckpt_dir=None): except ImportError: pass - do_dot(root, options.outdir, options.dot_config) - do_ruby_dot(root, options.outdir, options.dot_config) + if options.dot_config: + do_dot(root, options.outdir, options.dot_config) + do_ruby_dot(root, options.outdir, options.dot_config) # Initialize the global statistics stats.initSimStats() -- 2.30.2