Skip to content

Commit

Permalink
[apps] Add dwt scalar kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Jan 16, 2024
1 parent 0d40b00 commit 594ce81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/benchmarks/benchmark/dwt.bmark
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand Down

0 comments on commit 594ce81

Please sign in to comment.