Commit f1ad34e8 authored by Shane Snyder's avatar Shane Snyder

add mpiio wrappers for close,sync,set_view

parent 628724ba
...@@ -24,7 +24,6 @@ enum darshan_mpiio_indices ...@@ -24,7 +24,6 @@ enum darshan_mpiio_indices
MPIIO_SYNCS, /* count of MPI file syncs */ MPIIO_SYNCS, /* count of MPI file syncs */
MPIIO_HINTS, /* count of MPI hints used */ MPIIO_HINTS, /* count of MPI hints used */
MPIIO_VIEWS, /* count of MPI set view calls */ MPIIO_VIEWS, /* count of MPI set view calls */
#if 0
/* type categories */ /* type categories */
MPIIO_COMBINER_NAMED, /* count of each MPI datatype category */ MPIIO_COMBINER_NAMED, /* count of each MPI datatype category */
MPIIO_COMBINER_DUP, MPIIO_COMBINER_DUP,
...@@ -44,6 +43,7 @@ enum darshan_mpiio_indices ...@@ -44,6 +43,7 @@ enum darshan_mpiio_indices
MPIIO_COMBINER_F90_COMPLEX, MPIIO_COMBINER_F90_COMPLEX,
MPIIO_COMBINER_F90_INTEGER, MPIIO_COMBINER_F90_INTEGER,
MPIIO_COMBINER_RESIZED, MPIIO_COMBINER_RESIZED,
#if 0
/* buckets */ /* buckets */
MPIIO_SIZE_READ_AGG_0_100, /* count of MPI read size ranges */ MPIIO_SIZE_READ_AGG_0_100, /* count of MPI read size ranges */
MPIIO_SIZE_READ_AGG_100_1K, MPIIO_SIZE_READ_AGG_100_1K,
...@@ -103,10 +103,8 @@ enum darshan_mpiio_f_indices ...@@ -103,10 +103,8 @@ enum darshan_mpiio_f_indices
MPIIO_F_WRITE_END_TIMESTAMP, MPIIO_F_WRITE_END_TIMESTAMP,
#endif #endif
MPIIO_F_CLOSE_TIMESTAMP, MPIIO_F_CLOSE_TIMESTAMP,
#if 0
MPIIO_F_READ_TIME, MPIIO_F_READ_TIME,
MPIIO_F_WRITE_TIME, MPIIO_F_WRITE_TIME,
#endif
MPIIO_F_META_TIME, MPIIO_F_META_TIME,
MPIIO_F_NUM_INDICES, MPIIO_F_NUM_INDICES,
......
This diff is collapsed.
...@@ -38,9 +38,9 @@ int darshan_log_get_mpiio_file(darshan_fd fd, struct darshan_mpiio_file *file) ...@@ -38,9 +38,9 @@ int darshan_log_get_mpiio_file(darshan_fd fd, struct darshan_mpiio_file *file)
/* swap bytes if necessary */ /* swap bytes if necessary */
DARSHAN_BSWAP64(&file->f_id); DARSHAN_BSWAP64(&file->f_id);
DARSHAN_BSWAP64(&file->rank); DARSHAN_BSWAP64(&file->rank);
for(i=0; i<DARSHAN_MPIIO_NUM_INDICES; i++) for(i=0; i<MPIIO_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->counters[i]); DARSHAN_BSWAP64(&file->counters[i]);
for(i=0; i<DARSHAN_MPIIO_F_NUM_INDICES; i++) for(i=0; i<MPIIO_F_NUM_INDICES; i++)
DARSHAN_BSWAP64(&file->fcounters[i]); DARSHAN_BSWAP64(&file->fcounters[i]);
} }
} }
......
...@@ -184,14 +184,76 @@ int main(int argc, char **argv) ...@@ -184,14 +184,76 @@ int main(int argc, char **argv)
printf( printf(
"\t\tMPIIO_INDEP_OPENS:\t%"PRIu64"\n" "\t\tMPIIO_INDEP_OPENS:\t%"PRIu64"\n"
"\t\tMPIIO_COLL_OPENS:\t%"PRIu64"\n" "\t\tMPIIO_COLL_OPENS:\t%"PRIu64"\n"
"\t\tMPIIO_INDEP_READS:\t%"PRIu64"\n"
"\t\tMPIIO_INDEP_WRITES:\t%"PRIu64"\n"
"\t\tMPIIO_COLL_READS:\t%"PRIu64"\n"
"\t\tMPIIO_COLL_WRITES:\t%"PRIu64"\n"
"\t\tMPIIO_SPLIT_READS:\t%"PRIu64"\n"
"\t\tMPIIO_SPLIT_WRITES:\t%"PRIu64"\n"
"\t\tMPIIO_NB_READS:\t%"PRIu64"\n"
"\t\tMPIIO_NB_WRITES:\t%"PRIu64"\n"
"\t\tMPIIO_SYNCS:\t%"PRIu64"\n"
"\t\tMPIIO_HINTS:\t%"PRIu64"\n" "\t\tMPIIO_HINTS:\t%"PRIu64"\n"
"\t\tMPIIO_F_META_TIME:\t%lf\n" "\t\tMPIIO_VIEWS:\t%"PRIu64"\n"
"\t\tMPIIO_F_OPEN_TIMESTAMP:\t%lf\n", "\t\tMPIIO_COMBINER_NAMED:\t%"PRIu64"\n"
next_file.counters[DARSHAN_MPIIO_INDEP_OPENS], "\t\tMPIIO_COMBINER_DUP:\t%"PRIu64"\n"
next_file.counters[DARSHAN_MPIIO_COLL_OPENS], "\t\tMPIIO_COMBINER_CONTIGUOUS:\t%"PRIu64"\n"
next_file.counters[DARSHAN_MPIIO_HINTS], "\t\tMPIIO_COMBINER_VECTOR:\t%"PRIu64"\n"
next_file.fcounters[DARSHAN_MPIIO_F_META_TIME], "\t\tMPIIO_COMBINER_HVECTOR_INTEGER:\t%"PRIu64"\n"
next_file.fcounters[DARSHAN_MPIIO_F_OPEN_TIMESTAMP]); "\t\tMPIIO_COMBINER_HVECTOR:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_INDEXED:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_HINDEXED_INTEGER:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_HINDEXED:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_INDEXED_BLOCK:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_STRUCT_INTEGER:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_STRUCT:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_SUBARRAY:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_DARRAY:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_F90_REAL:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_F90_COMPLEX:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_F90_INTEGER:\t%"PRIu64"\n"
"\t\tMPIIO_COMBINER_RESIZED:\t%"PRIu64"\n"
"\t\tMPIIO_F_OPEN_TIMESTAMP:\t%lf\n"
"\t\tMPIIO_F_CLOSE_TIMESTAMP:\t%lf\n"
"\t\tMPIIO_F_READ_TIME:\t%lf\n"
"\t\tMPIIO_F_WRITE_TIME:\t%lf\n"
"\t\tMPIIO_F_META_TIME:\t%lf\n",
next_file.counters[MPIIO_INDEP_OPENS],
next_file.counters[MPIIO_COLL_OPENS],
next_file.counters[MPIIO_INDEP_READS],
next_file.counters[MPIIO_INDEP_WRITES],
next_file.counters[MPIIO_COLL_READS],
next_file.counters[MPIIO_COLL_WRITES],
next_file.counters[MPIIO_SPLIT_READS],
next_file.counters[MPIIO_SPLIT_WRITES],
next_file.counters[MPIIO_NB_READS],
next_file.counters[MPIIO_NB_WRITES],
next_file.counters[MPIIO_SYNCS],
next_file.counters[MPIIO_HINTS],
next_file.counters[MPIIO_VIEWS],
next_file.counters[MPIIO_COMBINER_NAMED],
next_file.counters[MPIIO_COMBINER_DUP],
next_file.counters[MPIIO_COMBINER_CONTIGUOUS],
next_file.counters[MPIIO_COMBINER_VECTOR],
next_file.counters[MPIIO_COMBINER_HVECTOR_INTEGER],
next_file.counters[MPIIO_COMBINER_HVECTOR],
next_file.counters[MPIIO_COMBINER_INDEXED],
next_file.counters[MPIIO_COMBINER_HINDEXED_INTEGER],
next_file.counters[MPIIO_COMBINER_HINDEXED],
next_file.counters[MPIIO_COMBINER_INDEXED_BLOCK],
next_file.counters[MPIIO_COMBINER_STRUCT_INTEGER],
next_file.counters[MPIIO_COMBINER_STRUCT],
next_file.counters[MPIIO_COMBINER_SUBARRAY],
next_file.counters[MPIIO_COMBINER_DARRAY],
next_file.counters[MPIIO_COMBINER_F90_REAL],
next_file.counters[MPIIO_COMBINER_F90_COMPLEX],
next_file.counters[MPIIO_COMBINER_F90_INTEGER],
next_file.counters[MPIIO_COMBINER_RESIZED],
next_file.fcounters[MPIIO_F_OPEN_TIMESTAMP],
next_file.fcounters[MPIIO_F_CLOSE_TIMESTAMP],
next_file.fcounters[MPIIO_F_READ_TIME],
next_file.fcounters[MPIIO_F_WRITE_TIME],
next_file.fcounters[MPIIO_F_META_TIME]);
i++; i++;
} while((ret = darshan_log_get_mpiio_file(fd, &next_file)) == 1); } while((ret = darshan_log_get_mpiio_file(fd, &next_file)) == 1);
......
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