Skip to content

Commit

Permalink
Fixing BLOCKS
Browse files Browse the repository at this point in the history
  • Loading branch information
fvella committed Mar 18, 2020
1 parent 06bf45f commit 0436ece
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions devel/src/lcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ void lcc_func_bin_simd(LOCINT *col, LOCINT *row, float *output) {
LOCINT c = 0;
static LOCINT local_counter = 0;
static int tid;
LOCINT reduction[32];
#ifdef HAVE_CLAMPI
CMPI_Win win_col;
CMPI_Win win_row;
Expand Down Expand Up @@ -1230,16 +1231,16 @@ void lcc_func_bin_simd(LOCINT *col, LOCINT *row, float *output) {
local_counter += 1;
reduction[tid] = local_counter;
}
}
// Put the define here
for (c = 0; c < 32; c++) counter += reduction[c];
lcc =(float) counter/(float)(row_offset*(row_offset-1));
}
// Put the define here
for (c = 0; c < 32; c++) counter += reduction[c];
lcc =(float) counter/(float)(row_offset*(row_offset-1));

#ifdef HAVE_LIBLSB
if (it > WARMUP)
LSB_Rec(it);
#endif

}
#ifdef HAVE_CLAMPI
CMPI_Win_invalidate(win_col);
CMPI_Win_invalidate(win_row);
Expand Down

0 comments on commit 0436ece

Please sign in to comment.