Commit 9a92ab16 authored by Kevin Harms's avatar Kevin Harms

Correct the usage of MPI_Wtime in darshan-posix.c and add a runtime

check to make sure memory alignment value is ok.


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@372 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 898e8fc9
......@@ -41,7 +41,6 @@ extern char* __progname_full;
#define DARSHAN_MPI_CALL(func) __real_ ## func
#define MAP_OR_FAIL(func) \
fprintf(stderr, "Trapped: %s\n", #func); \
if (!(__real_ ## func)) \
{ \
__real_ ## func = dlsym(RTLD_NEXT, #func); \
......@@ -52,7 +51,7 @@ extern char* __progname_full;
}
extern double __real_PMPI_Wtime(void);
extern double (*__real_PMPI_Wtime)(void);
#else
......@@ -1126,6 +1125,12 @@ void darshan_initialize(int argc, char** argv, int nprocs, int rank)
darshan_mem_alignment = __CP_MEM_ALIGNMENT;
}
/* avoid floating point errors on faulty input */
if (darshan_mem_alignment < 1)
{
darshan_mem_alignment = 1;
}
/* allocate structure to track darshan_global_job information */
darshan_global_job = malloc(sizeof(*darshan_global_job));
if(!darshan_global_job)
......
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