[Darshan-commits] [Git][darshan/darshan][master] 2 commits: fix compile warnings for uninit timers
Shane Snyder
xgitlab at cels.anl.gov
Mon Mar 14 16:14:18 CDT 2016
Shane Snyder pushed to branch master at darshan / darshan
Commits:
f2293a81 by Shane Snyder at 2016-03-14T16:08:28-05:00
fix compile warnings for uninit timers
- - - - -
b4cc833c by Shane Snyder at 2016-03-14T16:08:28-05:00
bug fix in resolving MPI_Barrrier in shared lib
- - - - -
2 changed files:
- darshan-runtime/lib/darshan-core-init-finalize.c
- darshan-runtime/lib/darshan-core.c
Changes:
=====================================
darshan-runtime/lib/darshan-core-init-finalize.c
=====================================
--- a/darshan-runtime/lib/darshan-core-init-finalize.c
+++ b/darshan-runtime/lib/darshan-core-init-finalize.c
@@ -136,6 +136,7 @@ DARSHAN_FORWARD_DECL(PMPI_Gather, int, (const void *sendbuf, int sendcount, MPI_
#else
DARSHAN_FORWARD_DECL(PMPI_Gather, int, (void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm));
#endif
+DARSHAN_FORWARD_DECL(PMPI_Barrier, int, (MPI_Comm comm));
void resolve_mpi_symbols (void)
{
@@ -196,6 +197,7 @@ void resolve_mpi_symbols (void)
MAP_OR_FAIL(PMPI_Send);
MAP_OR_FAIL(PMPI_Recv);
MAP_OR_FAIL(PMPI_Gather);
+ MAP_OR_FAIL(PMPI_Barrier);
return;
}
=====================================
darshan-runtime/lib/darshan-core.c
=====================================
--- a/darshan-runtime/lib/darshan-core.c
+++ b/darshan-runtime/lib/darshan-core.c
@@ -262,12 +262,12 @@ void darshan_core_shutdown()
darshan_record_id *mod_shared_recs;
int shared_rec_cnt = 0;
double start_log_time;
- double open1, open2;
- double job1, job2;
- double rec1, rec2;
+ double open1 = 0, open2 = 0;
+ double job1 = 0, job2 = 0;
+ double rec1 = 0, rec2 = 0;
double mod1[DARSHAN_MAX_MODS] = {0};
double mod2[DARSHAN_MAX_MODS] = {0};
- double header1, header2;
+ double header1 = 0, header2 = 0;
double tm_end;
uint64_t gz_fp = 0;
MPI_File log_fh;
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/07ff011f1df65710745a931a17ada915dce746c8...b4cc833cf1abc58954ba302b56cd53e69c91630c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160314/9e37eac4/attachment.html>
More information about the Darshan-commits
mailing list