From ce7c44117918ed4d01c60010565d942d2221748e Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Mon, 24 Aug 2020 18:00:07 +0100 Subject: COMPMID-3756 Update CommonGraphOptions documentations to include tuner-mode Signed-off-by: SiCong Li Change-Id: I2d2fad99a7528274152e3e3ffefd3ea4d074ff71 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3832 Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- utils/CommonGraphOptions.cpp | 6 +++++- utils/CommonGraphOptions.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/utils/CommonGraphOptions.cpp b/utils/CommonGraphOptions.cpp index cae98726bb..d262ea86e9 100644 --- a/utils/CommonGraphOptions.cpp +++ b/utils/CommonGraphOptions.cpp @@ -170,7 +170,11 @@ CommonGraphOptions::CommonGraphOptions(CommandLineParser &parser) data_layout->set_help("Data layout to use"); enable_tuner->set_help("Enable OpenCL dynamic tuner"); enable_cl_cache->set_help("Enable OpenCL program caches"); - tuner_mode->set_help("Configures the time taken by the tuner to tune. Slow tuner produces the most performant LWS configuration"); + tuner_mode->set_help( + "Configures the time taken by the tuner to tune. " + "Exhaustive: slowest but produces the most performant LWS configuration. " + "Normal: slow but produces the LWS configurations on par with Exhaustive most of the time. " + "Rapid: fast but produces less performant LWS configurations"); fast_math_hint->set_help("Enable fast math"); data_path->set_help("Path where graph parameters reside"); image->set_help("Input image for the graph"); diff --git a/utils/CommonGraphOptions.h b/utils/CommonGraphOptions.h index ab7125eac9..dac2e10b19 100644 --- a/utils/CommonGraphOptions.h +++ b/utils/CommonGraphOptions.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 Arm Limited. + * Copyright (c) 2018-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -55,6 +55,10 @@ namespace utils * --validation-range : The range of the images to validate from the validation file (e.g 0,9). * If not specified all the images will be validated. * --tuner-file : The file to store the OpenCL dynamic tuner tuned parameters. + * --tuner-mode : Select tuner mode. Supported modes: Exhaustive,Normal,Rapid + * * Exhaustive: slowest but produces the most performant LWS configuration. + * * Normal: slow but produces the LWS configurations on par with Exhaustive most of the time. + * * Rapid: fast but produces less performant LWS configurations * * Note that data, image and labels options should be provided to perform an inference run on an image. * Note that validation-file and validation-path should be provided to perform a graph accuracy estimation. -- cgit v1.2.1