From: Ran Katzur Date: Fri, 20 May 2016 13:28:28 +0000 (-0400) Subject: Adding iterations for all hardware fft X-Git-Url: https://git.ti.com/gitweb?p=apps%2Fc55x-benchmarks.git;a=commitdiff_plain;h=HEAD Adding iterations for all hardware fft --- diff --git a/dsplib_benchmarks/cfft1/CFFT_T.C b/dsplib_benchmarks/cfft1/CFFT_T.C index 66de834..4cbadaf 100644 --- a/dsplib_benchmarks/cfft1/CFFT_T.C +++ b/dsplib_benchmarks/cfft1/CFFT_T.C @@ -47,9 +47,9 @@ //#include "t1_SCALE.h" //#include "t2_SCALE.h" //16 //#include "t3_SCALE.h" //32 -//#include "t4_SCALE.h" //64 +#include "t4_SCALE.h" //64 //#include "t5_SCALE.h" //128 -#include "t6_SCALE.h" //256 +//#include "t6_SCALE.h" //256 //#include "t7_SCALE.h" //512 //#include "t8_SCALE.h" //1024 //#include "t2_NOSCALE.h" @@ -243,15 +243,97 @@ void main() printf(" number of errors %d \n", compare_flag) ; + if (nx == 8) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_8pts(x_br, scratch, fft_flag, scale_flag ); + } + + } - for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + if (nx == 16) { - sel_out =hwafft_16pts(x_br, scratch, fft_flag, scale_flag ); + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_16pts(x_br, scratch, fft_flag, scale_flag ); + } } - printf("Done with %ld iteration \n",iterations1 ); + + if (nx == 32) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_32pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + + + if (nx == 64) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_64pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + + + if (nx == 128) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_128pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + + + if (nx == 256) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_256pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + + + if (nx == 512) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_512pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + +; + if (nx == 1024) + { + for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++) + + { + sel_out =hwafft_1024pts(x_br, scratch, fft_flag, scale_flag ); + } + } + + + + + + printf("Done with %ld iteration nx = %d \n",iterations1, nx );