From 68e29dab4ada6e3457f066c3cf45acf51a204dd9 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Mon, 8 Feb 2021 16:31:10 +0000 Subject: Set up configure-only flag for validation. First trial with DepthwiseConvoltion This is needed in order to validate OpenCL kernel run-time compilation, without necessarily running or validating the kernels' execution - Add a run-time option for our validation suite to only configure one target function, without allocating, running or validating - Avoid to map/unmap tensors in CLAccessor if no allocation/validation is required - Create a new Fixture macro that accepts fixtures split into configure/allocate_and_run/reference, and do the last two only if required - Adjust fixture and validation files for the first trial function(s) (DepthwiseConvolutionLayer) Signed-off-by: Giorgio Arena Change-Id: I56fa1ce5ef4ac0c86bcabda686cc277ef5ec69c8 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5048 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Manuel Bottini Reviewed-by: Sang-Hoon Park --- tests/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index bd15fd3507..cecd89bdb7 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -149,6 +149,8 @@ int main(int argc, char **argv) threads->set_help("Number of threads to use"); auto cooldown_sec = parser.add_option>("delay", -1.f); cooldown_sec->set_help("Delay to add between test executions in seconds"); + auto configure_only = parser.add_option("configure-only", false); + configure_only->set_help("Only configures kernels, without allocating, running or validating. Needed in order to validate OpenCL kernel run-time compilation, without necessarily running or validating the kernels' execution"); try { @@ -264,6 +266,7 @@ int main(int argc, char **argv) fconfig.mode = dataset_mode->value(); fconfig.log_level = options.log_level->value(); fconfig.cooldown_sec = cooldown_sec->value(); + fconfig.configure_only = configure_only->value(); framework.init(fconfig); for(auto &p : printers) -- cgit v1.2.1