From 847864df46cea578bb0766c17c95ad5e804c49c3 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Wed, 7 Mar 2018 11:35:53 +0000 Subject: 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 Reviewed-by: Kevin Petit Reviewed-by: Georgios Pinitas --- tests/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index 1f3c365c03..4a8a82d490 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -130,6 +130,16 @@ int main(int argc, char **argv) { p->print_entry("Version", build_information()); p->print_entry("Seed", support::cpp11::to_string(seed->value())); +#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())); { -- cgit v1.2.1