diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-03-07 11:35:53 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:48:33 +0000 |
commit | 847864df46cea578bb0766c17c95ad5e804c49c3 (patch) | |
tree | 553f4c383b6a81b43b8634ea9856cd8dbeae0a27 /tests/benchmark_examples/RunExample.cpp | |
parent | 4a65b9855f71fff11a4c18d2fa4bccc74303e5c6 (diff) | |
download | ComputeLibrary-847864df46cea578bb0766c17c95ad5e804c49c3.tar.gz |
COMPMID-995 Add CL_DEVICE_VERSION to the test framework output
Change-Id: Ic32742388fbd45c8acc395977586204980eff591
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/123541
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Kevin Petit <kevin.petit@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/benchmark_examples/RunExample.cpp')
-rw-r--r-- | tests/benchmark_examples/RunExample.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp index 722a60e1f2..f1dca819ab 100644 --- a/tests/benchmark_examples/RunExample.cpp +++ b/tests/benchmark_examples/RunExample.cpp @@ -130,6 +130,16 @@ int run_example(int argc, char **argv, Example &example) { for(auto &p : printers) { +#ifdef ARM_COMPUTE_CL + if(opencl_is_available()) + { + p->print_entry("CL_DEVICE_VERSION", CLKernelLibrary::get().get_device_version()); + } + else + { + p->print_entry("CL_DEVICE_VERSION", "Unavailable"); + } +#endif /* ARM_COMPUTE_CL */ p->print_entry("Iterations", support::cpp11::to_string(options.iterations->value())); p->print_entry("Threads", support::cpp11::to_string(options.threads->value())); } |