Commit 4cac1e1e authored by Philip Carns's avatar Philip Carns
Browse files

clarify comments and configure help for max mem

parent 8f4cdc1c
......@@ -1398,7 +1398,8 @@ Optional Packages:
--with-jobid-env=<name> Name of environment variable that stores the jobid
(specify "NONE" if no appropriate environment variable
is available: Darshan will use the pid of rank 0)
--with-mod-mem=<num> Maximum amount of memory (in MiB) for each Darshan module
--with-mod-mem=<num> Maximum runtime memory consumption per process
(in MiB) across all instrumentation modules
Some influential environment variables:
MPICC MPI C compiler command
......@@ -4188,7 +4189,8 @@ else
fi
if test "x$enable_hdf5_mod" != "xno"; then :
if test -d "$enable_hdf5_mod"; then :
if test -d "$enable_hdf5_mod"; then :
CFLAGS="${CFLAGS} -I${enable_hdf5_mod}/include"
DARSHAN_HDF5_LD_FLAGS="-L${enable_hdf5_mod}/lib -Wl,-rpath=${enable_hdf5_mod}/lib -lhdf5"
else
......
......@@ -166,11 +166,12 @@ AC_ARG_WITH(jobid-env,
)
AC_ARG_WITH(mod-mem,
[ --with-mod-mem=<num> Maximum amount of memory (in MiB) for each Darshan module],
[ --with-mod-mem=<num> Maximum runtime memory consumption per process
(in MiB) across all instrumentation modules],
if test x$withval = xyes; then
AC_MSG_ERROR(--with-mod-mem must be given a number)
else
AC_DEFINE_UNQUOTED(__DARSHAN_MOD_MEM_MAX, ${withval}, Maximum memory (in MiB) for each Darshan module)
AC_DEFINE_UNQUOTED(__DARSHAN_MOD_MEM_MAX, ${withval}, Maximum runtime memory consumption per process (in MiB) across all instrumentation modules)
fi
)
......
......@@ -48,7 +48,9 @@
#define DARSHAN_DEF_MMAP_LOG_PATH "/tmp"
#endif
/* Maximum amount of memory per instrumentation module in MiB */
/* Maximum runtime memory consumption per process (in MiB) across
* all instrumentation modules
*/
#ifdef __DARSHAN_MOD_MEM_MAX
#define DARSHAN_MOD_MEM_MAX (__DARSHAN_MOD_MEM_MAX * 1024L * 1024L)
#else
......
......@@ -135,7 +135,8 @@
/* Memory alignment in bytes */
#undef __DARSHAN_MEM_ALIGNMENT
/* Maximum memory (in MiB) for each Darshan module */
/* Maximum runtime memory consumption per process (in MiB) across all
instrumentation modules */
#undef __DARSHAN_MOD_MEM_MAX
/* Generalized request type for MPI-IO */
......
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