aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmark_examples
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmark_examples')
-rw-r--r--tests/benchmark_examples/RunExample.cpp10
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()));
}