diff options
author | Michael McGeagh <michael.mcgeagh@arm.com> | 2020-12-02 10:55:04 +0000 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2020-12-08 15:00:41 +0000 |
commit | 2fa40ae3e0e17c899e847c8ad8decd1ec0d9bfcd (patch) | |
tree | 2bf8a91748d75ba330d6b12639263eaa9338119b /ethosu | |
parent | f3e3ad746de943e312c290d614184c0f6559ac1f (diff) | |
download | ethos-u-vela-2fa40ae3e0e17c899e847c8ad8decd1ec0d9bfcd.tar.gz |
MLBEDSW-3333 New CLI: --verbose-all
Added a new CLI option which simply force-enables all the other verbose
options available to vela
Signed-off-by: Michael McGeagh <michael.mcgeagh@arm.com>
Change-Id: I0dddbc86a76ea0de57266452f39fd0a5ca57eeb3
Diffstat (limited to 'ethosu')
-rw-r--r-- | ethosu/vela/vela.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py index 08ab4831..37de1ed2 100644 --- a/ethosu/vela/vela.py +++ b/ethosu/vela/vela.py @@ -221,6 +221,7 @@ def main(args=None): parser.add_argument( "--config", type=str, action="append", help="Vela configuration file(s) in Python ConfigParser .ini file format" ) + parser.add_argument("--verbose-all", action="store_true", help="Enable all verbose options") parser.add_argument("--verbose-config", action="store_true", help="Verbose system configuration and memory mode") parser.add_argument("--verbose-graph", action="store_true", help="Verbose graph rewriter") parser.add_argument("--verbose-quantization", action="store_true", help="Verbose quantization") @@ -384,6 +385,11 @@ def main(args=None): if args.memory_mode == ArchitectureFeatures.DEFAULT_CONFIG: print(f"Warning: Using {ArchitectureFeatures.DEFAULT_CONFIG} values for memory mode") + if args.verbose_all: + for v in vars(args): + if v.startswith("verbose") and v != "verbose_all": + setattr(args, v, True) + arch = architecture_features.ArchitectureFeatures( vela_config_files=args.config, system_config=args.system_config, |