Commit 320a3a9f authored by Philip Carns's avatar Philip Carns

update reduction and condense functions to account for device record


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@137 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 3a729d80
...@@ -1317,6 +1317,9 @@ static void darshan_file_reduce(void* infile_v, ...@@ -1317,6 +1317,9 @@ static void darshan_file_reduce(void* infile_v,
inoutfile->counters[CP_MAX_READ_TIME_SIZE]; inoutfile->counters[CP_MAX_READ_TIME_SIZE];
} }
/* pick one device id */
tmp_file.counters[CP_DEVICE] = infile->counters[CP_DEVICE];
/* pick one name suffix */ /* pick one name suffix */
strcpy(tmp_file.name_suffix, infile->name_suffix); strcpy(tmp_file.name_suffix, infile->name_suffix);
......
...@@ -1076,6 +1076,11 @@ void darshan_condense(void) ...@@ -1076,6 +1076,11 @@ void darshan_condense(void)
case CP_MAX_READ_TIME_SIZE: case CP_MAX_READ_TIME_SIZE:
break; break;
/* pick one */
case CP_DEVICE:
CP_SET(base_file, i, CP_VALUE(iter_file, i));
break;
/* most records can simply be added */ /* most records can simply be added */
default: default:
CP_INC(base_file, i, CP_VALUE(iter_file, i)); CP_INC(base_file, i, CP_VALUE(iter_file, i));
......
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