From a51be49a5fe2549f6ca8e3ca65b20aa8da0c8f6b Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 21 Apr 2018 14:58:37 +1000 Subject: [PATCH] Add a summary to the profiling test. --- tests/mal_profiling.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/mal_profiling.c b/tests/mal_profiling.c index b1fad118..a74f4322 100644 --- a/tests/mal_profiling.c +++ b/tests/mal_profiling.c @@ -167,6 +167,34 @@ int main(int argc, char** argv) (void)argc; (void)argv; + // Summary. + if (mal_has_sse2()) { + printf("Has SSE: YES\n"); + } else { + printf("Has SSE: NO\n"); + } + + if (mal_has_avx()) { + printf("Has AVX: YES\n"); + } else { + printf("Has AVX: NO\n"); + } + + if (mal_has_avx512f()) { + printf("Has AVX-512F: YES\n"); + } else { + printf("Has AVX-512F: NO\n"); + } + + if (mal_has_neon()) { + printf("Has NEON: YES\n"); + } else { + printf("Has NEON: NO\n"); + } + + + printf("\n"); + // Channel routing. do_profiling__channel_routing();