Skip to content

Commit

Permalink
[apps] Fix fft performance
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Jul 30, 2024
1 parent 771b33d commit 326364c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fft/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main() {
runtime = get_timer();

float perf = (float)5.0 * NFFT * (31 - __builtin_clz(NFFT)) / runtime;
float max_perf = 6.0 / 5.0 * NR_LANES * 8.0 / sizeof(float);
float max_perf = 5.0 / 4.0 * NR_LANES * 8.0 / sizeof(float);

printf("Performance: %f. Max perf: %f. Actual performance is %f%% of max.\n",
perf, max_perf, 100 * perf / max_perf);
Expand Down

0 comments on commit 326364c

Please sign in to comment.