Commit 7f8fb8ca authored by Philip Carns's avatar Philip Carns

environment variable override for --with-log-hints value


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@448 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a30bb9f3
......@@ -1861,6 +1861,7 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
MPI_Aint displacements[CP_MAX_MEM_SEGMENTS];
void* buf;
int failed_write = 0;
char* hints;
/* skip building a datatype if we don't have anything to write */
if(count > 0)
......@@ -1883,6 +1884,17 @@ static int cp_log_write(struct darshan_job_runtime* final_job, int rank,
DARSHAN_MPI_CALL(PMPI_Type_commit)(&mtype);
}
/* check environment variable to see if the default MPI file hints have
* been overridden
*/
hints = getenv(CP_LOG_HINTS_OVERRIDE);
if(!hints)
{
hints = __CP_LOG_HINTS;
}
/* TODO: process hints */
ret = DARSHAN_MPI_CALL(PMPI_File_open)(MPI_COMM_WORLD, logfile_name,
MPI_MODE_CREATE | MPI_MODE_WRONLY | MPI_MODE_EXCL, MPI_INFO_NULL, &fh);
if(ret != MPI_SUCCESS)
......
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