Commit 94430f41 authored by Shane Snyder's avatar Shane Snyder
Browse files

bug fix in aggregating common accesses

parent 04063da7
...@@ -331,6 +331,7 @@ static void darshan_log_agg_mpiio_files(void *rec, void *agg_rec, int init_flag) ...@@ -331,6 +331,7 @@ static void darshan_log_agg_mpiio_files(void *rec, void *agg_rec, int init_flag)
memset(tmp_val, 0, 4 * sizeof(int64_t)); memset(tmp_val, 0, 4 * sizeof(int64_t));
memset(tmp_cnt, 0, 4 * sizeof(int64_t)); memset(tmp_cnt, 0, 4 * sizeof(int64_t));
if(mpi_rec->counters[j] == 0) break;
for(k = 0; k < 4; k++) for(k = 0; k < 4; k++)
{ {
if(agg_mpi_rec->counters[i + k] == mpi_rec->counters[j]) if(agg_mpi_rec->counters[i + k] == mpi_rec->counters[j])
......
...@@ -326,7 +326,6 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag) ...@@ -326,7 +326,6 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag)
case POSIX_STRIDE1_STRIDE: case POSIX_STRIDE1_STRIDE:
case POSIX_ACCESS1_ACCESS: case POSIX_ACCESS1_ACCESS:
/* increment common value counters */ /* increment common value counters */
if(psx_rec->counters[i] == 0) break;
/* first, collapse duplicates */ /* first, collapse duplicates */
for(j = i; j < i + 4; j++) for(j = i; j < i + 4; j++)
...@@ -348,6 +347,7 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag) ...@@ -348,6 +347,7 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag)
memset(tmp_val, 0, 4 * sizeof(int64_t)); memset(tmp_val, 0, 4 * sizeof(int64_t));
memset(tmp_cnt, 0, 4 * sizeof(int64_t)); memset(tmp_cnt, 0, 4 * sizeof(int64_t));
if(psx_rec->counters[j] == 0) break;
for(k = 0; k < 4; k++) for(k = 0; k < 4; k++)
{ {
if(agg_psx_rec->counters[i + k] == psx_rec->counters[j]) if(agg_psx_rec->counters[i + k] == psx_rec->counters[j])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment