Skip to content

Commit

Permalink
Initialize to more "random" numbers to avoid compiler optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jussienko committed May 23, 2024
1 parent f7e6293 commit a19d6e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demos/peak/peak_flops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ int main() {

for (i=0, j=0; i < VECTOR_WIDTH; i++) {
for (int n=0; n < NUM_OPS; n++, j++)
fa[j] = 0.0;
fb[i] = 0.5;
fc[i] = 1.0;
fa[j] = 1.2345;
fb[i] = 0.5678;
fc[i] = 3.0102;
}

#pragma nounroll // Try to prevent automatic unrolling
Expand Down

0 comments on commit a19d6e6

Please sign in to comment.