Commit 1cabcbf9 authored by Philip Carns's avatar Philip Carns
Browse files

add environment variable to optionally disable shared file reduction


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@855 3b7491f3-a168-0410-bf4b-c445ed680a29
parent e0a2289b
...@@ -22,6 +22,8 @@ darshan-2.2.9-pre1 ...@@ -22,6 +22,8 @@ darshan-2.2.9-pre1
- Update documentation to clarify the interaction between rpath and - Update documentation to clarify the interaction between rpath and
LD_PRELOAD when instrumenting dynamic libraries, issue reported and LD_PRELOAD when instrumenting dynamic libraries, issue reported and
investigated by Davide Del Vento. investigated by Davide Del Vento.
- Ability to disable shared-file reduction by setting the
DARSHAN_DISABLE_SHARED_REDUCTION environment variable.
darshan-2.2.8 darshan-2.2.8
============= =============
......
...@@ -410,4 +410,8 @@ behavior at runtime: ...@@ -410,4 +410,8 @@ behavior at runtime:
* DARSHAN_DISABLE_TIMING: disables the subset of Darshan instrumentation that gathers timing information * DARSHAN_DISABLE_TIMING: disables the subset of Darshan instrumentation that gathers timing information
* DARSHAN_MEMALIGN: specifies a value for memory alignment (CP_MEM_ALIGNMENT) * DARSHAN_MEMALIGN: specifies a value for memory alignment (CP_MEM_ALIGNMENT)
* DARSHAN_JOBID: specifies the name of the environment variable to use for the job identifier, such as PBS_JOBID * DARSHAN_JOBID: specifies the name of the environment variable to use for the job identifier, such as PBS_JOBID
* DARSHAN_DISABLE_SHARED_REDUCTION: disables the step in Darshan aggregation
in which files that were accessed by all ranks are collapsed into a single
cumulative file record at rank 0. This option retains more per-process
information at the expense of creating larger log files.
...@@ -531,8 +531,15 @@ void darshan_shutdown(int timing_flag) ...@@ -531,8 +531,15 @@ void darshan_shutdown(int timing_flag)
/* reduce records for shared files */ /* reduce records for shared files */
if(timing_flag) if(timing_flag)
red1 = DARSHAN_MPI_CALL(PMPI_Wtime)(); red1 = DARSHAN_MPI_CALL(PMPI_Wtime)();
local_ret = cp_log_reduction(final_job, rank, logfile_name, if(getenv("DARSHAN_DISABLE_SHARED_REDUCTION"))
&next_offset); {
local_ret = 0;
}
else
{
local_ret = cp_log_reduction(final_job, rank, logfile_name,
&next_offset);
}
if(timing_flag) if(timing_flag)
red2 = DARSHAN_MPI_CALL(PMPI_Wtime)(); red2 = DARSHAN_MPI_CALL(PMPI_Wtime)();
DARSHAN_MPI_CALL(PMPI_Allreduce)(&local_ret, &all_ret, 1, MPI_INT, MPI_LOR, DARSHAN_MPI_CALL(PMPI_Allreduce)(&local_ret, &all_ret, 1, MPI_INT, MPI_LOR,
......
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