From 594ce81fe7acd47f88542003f740baae6ea0f765 Mon Sep 17 00:00:00 2001 From: Matteo Perotti Date: Tue, 16 Jan 2024 17:52:31 +0100 Subject: [PATCH] [apps] Add dwt scalar kernel --- apps/benchmarks/benchmark/dwt.bmark | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/benchmarks/benchmark/dwt.bmark b/apps/benchmarks/benchmark/dwt.bmark index ceaad766c..25a4ed0f0 100644 --- a/apps/benchmarks/benchmark/dwt.bmark +++ b/apps/benchmarks/benchmark/dwt.bmark @@ -42,7 +42,11 @@ extern float buf[] __attribute__((aligned(4 * NR_LANES))); void warm_caches(uint64_t heat) { for (uint64_t k = 0; k < heat; ++k) +#ifndef SCALAR gsl_wavelet_transform_vector(data_s, DWT_LEN, buf, 0); +#else + gsl_wavelet_transform(data_s, DWT_LEN, buf, 0); +#endif } int main() { @@ -63,7 +67,11 @@ int main() { HW_CNT_READY; start_timer(); +#ifndef SCALAR gsl_wavelet_transform_vector(data_v, DWT_LEN, buf, first_iter_only); +#else + gsl_wavelet_transform(data_v, DWT_LEN, buf, first_iter_only); +#endif stop_timer(); // Number of cycles