Commit 22bc23f2 authored by Shane Snyder's avatar Shane Snyder

drop CP_ prefixes in runtime code

parent 57cb7624
...@@ -625,7 +625,7 @@ DARSHAN_USE_BGQ ...@@ -625,7 +625,7 @@ DARSHAN_USE_BGQ
MPICH_LIB_OLD MPICH_LIB_OLD
DARSHAN_VERSION DARSHAN_VERSION
DISABLE_LDPRELOAD DISABLE_LDPRELOAD
__CP_LOG_PATH __DARSHAN_LOG_PATH
darshan_share_path darshan_share_path
darshan_lib_path darshan_lib_path
PRI_MACROS_BROKEN PRI_MACROS_BROKEN
...@@ -3467,8 +3467,8 @@ if test "${with_zlib+set}" = set; then : ...@@ -3467,8 +3467,8 @@ if test "${with_zlib+set}" = set; then :
ZLIB_HOME="$withval" ZLIB_HOME="$withval"
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
__CP_ZLIB_LINK_FLAGS="-L${ZLIB_HOME}/lib" __DARSHAN_ZLIB_LINK_FLAGS="-L${ZLIB_HOME}/lib"
__CP_ZLIB_INCLUDE_FLAGS="-I${ZLIB_HOME}/include" __DARSHAN_ZLIB_INCLUDE_FLAGS="-I${ZLIB_HOME}/include"
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $withval does not exist, checking usual places" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $withval does not exist, checking usual places" >&5
$as_echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} $as_echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
...@@ -3561,7 +3561,7 @@ fi ...@@ -3561,7 +3561,7 @@ fi
if test "${enable_group_readable_logs+set}" = set; then : if test "${enable_group_readable_logs+set}" = set; then :
enableval=$enable_group_readable_logs; if test "x$enableval" = "xyes" ; then enableval=$enable_group_readable_logs; if test "x$enableval" = "xyes" ; then
$as_echo "#define __CP_GROUP_READABLE_LOGS 1" >>confdefs.h $as_echo "#define __DARSHAN_GROUP_READABLE_LOGS 1" >>confdefs.h
fi fi
...@@ -3576,7 +3576,7 @@ if test "${with_mem_align+set}" = set; then : ...@@ -3576,7 +3576,7 @@ if test "${with_mem_align+set}" = set; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define __CP_MEM_ALIGNMENT ${withval} #define __DARSHAN_MEM_ALIGNMENT ${withval}
_ACEOF _ACEOF
GOT_ALIGNMENT=1 GOT_ALIGNMENT=1
...@@ -3593,10 +3593,10 @@ if test "${with_log_path_by_env+set}" = set; then : ...@@ -3593,10 +3593,10 @@ if test "${with_log_path_by_env+set}" = set; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define __CP_LOG_ENV "${withval}" #define __DARSHAN_LOG_ENV "${withval}"
_ACEOF _ACEOF
__CP_LOG_ENV="${withval}" __DARSHAN_LOG_ENV="${withval}"
GOT_LOG_PATH=1 GOT_LOG_PATH=1
fi fi
...@@ -3611,10 +3611,10 @@ if test "${with_log_hints+set}" = set; then : ...@@ -3611,10 +3611,10 @@ if test "${with_log_hints+set}" = set; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define __CP_LOG_HINTS "${withval}" #define __DARSHAN_LOG_HINTS "${withval}"
_ACEOF _ACEOF
__CP_LOG_HINTS="${withval}" __DARSHAN_LOG_HINTS="${withval}"
GOT_LOG_HINTS=1 GOT_LOG_HINTS=1
fi fi
...@@ -3629,10 +3629,10 @@ if test "${with_log_path+set}" = set; then : ...@@ -3629,10 +3629,10 @@ if test "${with_log_path+set}" = set; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define __CP_LOG_PATH "${withval}" #define __DARSHAN_LOG_PATH "${withval}"
_ACEOF _ACEOF
__CP_LOG_PATH="${withval}" __DARSHAN_LOG_PATH="${withval}"
GOT_LOG_PATH=1 GOT_LOG_PATH=1
fi fi
...@@ -3647,10 +3647,10 @@ if test "${with_jobid_env+set}" = set; then : ...@@ -3647,10 +3647,10 @@ if test "${with_jobid_env+set}" = set; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define CP_JOBID "${withval}" #define __DARSHAN_JOBID "${withval}"
_ACEOF _ACEOF
CP_JOBID="${withval}" __DARSHAN_JOBID="${withval}"
GOT_JOBID=1 GOT_JOBID=1
fi fi
...@@ -3666,11 +3666,11 @@ fi ...@@ -3666,11 +3666,11 @@ fi
if test x$GOT_JOBID != x1; then if test x$GOT_JOBID != x1; then
as_fn_error $? "must provide --with-jobid-env=<name> argument to configure." "$LINENO" 5 as_fn_error $? "must provide --with-jobid-env=<name> argument to configure." "$LINENO" 5
fi fi
__CP_LOG_HINTS_DEFAULT="romio_no_indep_rw=true;cb_nodes=4" __DARSHAN_LOG_HINTS_DEFAULT="romio_no_indep_rw=true;cb_nodes=4"
if test x$GOT_LOG_HINTS != x1; then if test x$GOT_LOG_HINTS != x1; then
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define __CP_LOG_HINTS "$__CP_LOG_HINTS_DEFAULT" #define __DARSHAN_LOG_HINTS "$__DARSHAN_LOG_HINTS_DEFAULT"
_ACEOF _ACEOF
fi fi
......
...@@ -46,7 +46,7 @@ fi] ...@@ -46,7 +46,7 @@ fi]
AC_ARG_ENABLE(group-readable-logs, AC_ARG_ENABLE(group-readable-logs,
[ --enable-group-readable-logs Set log files to be group readable], [ --enable-group-readable-logs Set log files to be group readable],
[if test "x$enableval" = "xyes" ; then [if test "x$enableval" = "xyes" ; then
AC_DEFINE(__CP_GROUP_READABLE_LOGS, 1, Define if Darshan should set log files to be group readable) AC_DEFINE(__DARSHAN_GROUP_READABLE_LOGS, 1, Define if Darshan should set log files to be group readable)
fi] fi]
,) ,)
...@@ -55,7 +55,7 @@ AC_ARG_WITH(mem-align, ...@@ -55,7 +55,7 @@ AC_ARG_WITH(mem-align,
if test x$withval = xyes; then if test x$withval = xyes; then
AC_MSG_ERROR(--with-mem-align must be given a number in bytes) AC_MSG_ERROR(--with-mem-align must be given a number in bytes)
else else
AC_DEFINE_UNQUOTED(__CP_MEM_ALIGNMENT, ${withval}, Memory alignment in bytes) AC_DEFINE_UNQUOTED(__DARSHAN_MEM_ALIGNMENT, ${withval}, Memory alignment in bytes)
GOT_ALIGNMENT=1 GOT_ALIGNMENT=1
fi fi
) )
...@@ -65,8 +65,8 @@ AC_ARG_WITH(log-path-by-env, ...@@ -65,8 +65,8 @@ AC_ARG_WITH(log-path-by-env,
if test x$withval = xyes; then if test x$withval = xyes; then
AC_MSG_ERROR(--with-log-path-by-env must be given at least one variable name) AC_MSG_ERROR(--with-log-path-by-env must be given at least one variable name)
else else
AC_DEFINE_UNQUOTED(__CP_LOG_ENV, "${withval}", Comma separated list of env. variables to use for log path) AC_DEFINE_UNQUOTED(__DARSHAN_LOG_ENV, "${withval}", Comma separated list of env. variables to use for log path)
__CP_LOG_ENV="${withval}" __DARSHAN_LOG_ENV="${withval}"
GOT_LOG_PATH=1 GOT_LOG_PATH=1
fi fi
) )
...@@ -76,8 +76,8 @@ AC_ARG_WITH(log-hints, ...@@ -76,8 +76,8 @@ AC_ARG_WITH(log-hints,
if test x$withval = xyes; then if test x$withval = xyes; then
AC_MSG_ERROR(--with-log-hints must be given an argument) AC_MSG_ERROR(--with-log-hints must be given an argument)
else else
AC_DEFINE_UNQUOTED(__CP_LOG_HINTS, "${withval}", Semicolon-separated list of MPI-IO hints for log file write) AC_DEFINE_UNQUOTED(__DARSHAN_LOG_HINTS, "${withval}", Semicolon-separated list of MPI-IO hints for log file write)
__CP_LOG_HINTS="${withval}" __DARSHAN_LOG_HINTS="${withval}"
GOT_LOG_HINTS=1 GOT_LOG_HINTS=1
fi fi
) )
...@@ -87,8 +87,8 @@ AC_ARG_WITH(log-path, ...@@ -87,8 +87,8 @@ AC_ARG_WITH(log-path,
if test x$withval = xyes; then if test x$withval = xyes; then
AC_MSG_ERROR(--with-log-path must be given a pathname) AC_MSG_ERROR(--with-log-path must be given a pathname)
else else
AC_DEFINE_UNQUOTED(__CP_LOG_PATH, "${withval}", Location to store log files at run time) AC_DEFINE_UNQUOTED(__DARSHAN_LOG_PATH, "${withval}", Location to store log files at run time)
__CP_LOG_PATH="${withval}" __DARSHAN_LOG_PATH="${withval}"
GOT_LOG_PATH=1 GOT_LOG_PATH=1
fi fi
) )
...@@ -100,8 +100,8 @@ AC_ARG_WITH(jobid-env, ...@@ -100,8 +100,8 @@ AC_ARG_WITH(jobid-env,
if test x$withval = xyes; then if test x$withval = xyes; then
AC_MSG_ERROR(--with-jobid-env must be given a name) AC_MSG_ERROR(--with-jobid-env must be given a name)
else else
AC_DEFINE_UNQUOTED(CP_JOBID, "${withval}", Name of the environment variable that stores the jobid) AC_DEFINE_UNQUOTED(__DARSHAN_JOBID, "${withval}", Name of the environment variable that stores the jobid)
CP_JOBID="${withval}" __DARSHAN_JOBID="${withval}"
GOT_JOBID=1 GOT_JOBID=1
fi fi
) )
...@@ -115,10 +115,10 @@ fi ...@@ -115,10 +115,10 @@ fi
if test x$GOT_JOBID != x1; then if test x$GOT_JOBID != x1; then
AC_MSG_ERROR(must provide --with-jobid-env=<name> argument to configure.) AC_MSG_ERROR(must provide --with-jobid-env=<name> argument to configure.)
fi fi
__CP_LOG_HINTS_DEFAULT="romio_no_indep_rw=true;cb_nodes=4" __DARSHAN_LOG_HINTS_DEFAULT="romio_no_indep_rw=true;cb_nodes=4"
if test x$GOT_LOG_HINTS != x1; then if test x$GOT_LOG_HINTS != x1; then
dnl use default hints dnl use default hints
AC_DEFINE_UNQUOTED(__CP_LOG_HINTS, "$__CP_LOG_HINTS_DEFAULT", Comma-separated list of MPI-IO hints for log file write) AC_DEFINE_UNQUOTED(__DARSHAN_LOG_HINTS, "$__DARSHAN_LOG_HINTS_DEFAULT", Comma-separated list of MPI-IO hints for log file write)
fi fi
# checks to see how we can print 64 bit values on this architecture # checks to see how we can print 64 bit values on this architecture
...@@ -313,7 +313,7 @@ DARSHAN_VERSION="AC_PACKAGE_VERSION" ...@@ -313,7 +313,7 @@ DARSHAN_VERSION="AC_PACKAGE_VERSION"
AC_SUBST(darshan_lib_path) AC_SUBST(darshan_lib_path)
AC_SUBST(darshan_share_path) AC_SUBST(darshan_share_path)
AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS)
AC_SUBST(__CP_LOG_PATH) AC_SUBST(__DARSHAN_LOG_PATH)
AC_SUBST(DISABLE_LDPRELOAD) AC_SUBST(DISABLE_LDPRELOAD)
AC_SUBST(DARSHAN_VERSION) AC_SUBST(DARSHAN_VERSION)
AC_SUBST(MPICH_LIB_OLD) AC_SUBST(MPICH_LIB_OLD)
......
...@@ -14,18 +14,17 @@ ...@@ -14,18 +14,17 @@
#include "uthash.h" #include "uthash.h"
#include "darshan-log-format.h" #include "darshan-log-format.h"
/* TODO: drop CP_ and use DARSHAN_ */ /* Environment variable to override __DARSHAN_JOBID */
/* Environment variable to override CP_JOBID */ #define DARSHAN_JOBID_OVERRIDE "DARSHAN_JOBID"
#define CP_JOBID_OVERRIDE "DARSHAN_JOBID"
/* Environment variable to override __CP_LOG_PATH */ /* Environment variable to override __DARSHAN_LOG_PATH */
#define CP_LOG_PATH_OVERRIDE "DARSHAN_LOGPATH" #define DARSHAN_LOG_PATH_OVERRIDE "DARSHAN_LOGPATH"
/* Environment variable to override __CP_LOG_PATH */ /* Environment variable to override __DARSHAN_LOG_HINTS */
#define CP_LOG_HINTS_OVERRIDE "DARSHAN_LOGHINTS" #define DARSHAN_LOG_HINTS_OVERRIDE "DARSHAN_LOGHINTS"
/* Environment variable to override __CP_MEM_ALIGNMENT */ /* Environment variable to override __DARSHAN_MEM_ALIGNMENT */
#define CP_MEM_ALIGNMENT_OVERRIDE "DARSHAN_MEMALIGN" #define DARSHAN_MEM_ALIGNMENT_OVERRIDE "DARSHAN_MEMALIGN"
#define DARSHAN_CORE_MAX_RECORDS 1024 #define DARSHAN_CORE_MAX_RECORDS 1024
......
...@@ -10,7 +10,7 @@ use File::Basename; ...@@ -10,7 +10,7 @@ use File::Basename;
# LOGDIR/<year>/<month>/<day>/ # LOGDIR/<year>/<month>/<day>/
# use log dir specified at configure time # use log dir specified at configure time
$LOGDIR = "@__CP_LOG_PATH@"; $LOGDIR = "@__DARSHAN_LOG_PATH@";
my $year = (localtime)[5] + 1900; my $year = (localtime)[5] + 1900;
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
/* Define if building universal (internal helper macro) */ /* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD #undef AC_APPLE_UNIVERSAL_BUILD
/* Name of the environment variable that stores the jobid */
#undef CP_JOBID
/* Define if cuserid() should be disabled */ /* Define if cuserid() should be disabled */
#undef DARSHAN_DISABLE_CUSERID #undef DARSHAN_DISABLE_CUSERID
...@@ -91,19 +88,22 @@ ...@@ -91,19 +88,22 @@
#endif #endif
/* Define if Darshan should set log files to be group readable */ /* Define if Darshan should set log files to be group readable */
#undef __CP_GROUP_READABLE_LOGS #undef __DARSHAN_GROUP_READABLE_LOGS
/* Name of the environment variable that stores the jobid */
#undef __DARSHAN_JOBID
/* Comma separated list of env. variables to use for log path */ /* Comma separated list of env. variables to use for log path */
#undef __CP_LOG_ENV #undef __DARSHAN_LOG_ENV
/* Comma-separated list of MPI-IO hints for log file write */ /* Comma-separated list of MPI-IO hints for log file write */
#undef __CP_LOG_HINTS #undef __DARSHAN_LOG_HINTS
/* Location to store log files at run time */ /* Location to store log files at run time */
#undef __CP_LOG_PATH #undef __DARSHAN_LOG_PATH
/* Memory alignment in bytes */ /* Memory alignment in bytes */
#undef __CP_MEM_ALIGNMENT #undef __DARSHAN_MEM_ALIGNMENT
/* Generalized request type for MPI-IO */ /* Generalized request type for MPI-IO */
#undef __D_MPI_REQUEST #undef __D_MPI_REQUEST
...@@ -477,7 +477,7 @@ behavior at runtime: ...@@ -477,7 +477,7 @@ behavior at runtime:
* DARSHAN_DISABLE: disables Darshan instrumentation * DARSHAN_DISABLE: disables Darshan instrumentation
* DARSHAN_INTERNAL_TIMING: enables internal instrumentation that will print the time required to startup and shutdown Darshan to stderr at run time. * DARSHAN_INTERNAL_TIMING: enables internal instrumentation that will print the time required to startup and shutdown Darshan to stderr at run time.
* DARSHAN_LOGHINTS: specifies the MPI-IO hints to use when storing the Darshan output file. The format is a semicolon-delimited list of key=value pairs, for example: hint1=value1;hint2=value2 * DARSHAN_LOGHINTS: specifies the MPI-IO hints to use when storing the Darshan output file. The format is a semicolon-delimited list of key=value pairs, for example: hint1=value1;hint2=value2
* DARSHAN_MEMALIGN: specifies a value for memory alignment (CP_MEM_ALIGNMENT) * DARSHAN_MEMALIGN: specifies a value for system memory 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 * DARSHAN_DISABLE_SHARED_REDUCTION: disables the step in Darshan aggregation
in which files that were accessed by all ranks are collapsed into a single in which files that were accessed by all ranks are collapsed into a single
......
...@@ -140,10 +140,10 @@ void darshan_core_initialize(int argc, char **argv) ...@@ -140,10 +140,10 @@ void darshan_core_initialize(int argc, char **argv)
/* setup darshan runtime if darshan is enabled and hasn't been initialized already */ /* setup darshan runtime if darshan is enabled and hasn't been initialized already */
if(!getenv("DARSHAN_DISABLE") && !darshan_core) if(!getenv("DARSHAN_DISABLE") && !darshan_core)
{ {
#if (__CP_MEM_ALIGNMENT < 1) #if (__DARSHAN_MEM_ALIGNMENT < 1)
#error Darshan must be configured with a positive value for --with-mem-align #error Darshan must be configured with a positive value for --with-mem-align
#endif #endif
envstr = getenv("DARSHAN_MEMALIGN"); envstr = getenv(DARSHAN_MEM_ALIGNMENT_OVERRIDE);
if(envstr) if(envstr)
{ {
ret = sscanf(envstr, "%d", &tmpval); ret = sscanf(envstr, "%d", &tmpval);
...@@ -155,7 +155,7 @@ void darshan_core_initialize(int argc, char **argv) ...@@ -155,7 +155,7 @@ void darshan_core_initialize(int argc, char **argv)
} }
else else
{ {
darshan_mem_alignment = __CP_MEM_ALIGNMENT; darshan_mem_alignment = __DARSHAN_MEM_ALIGNMENT;
} }
/* avoid floating point errors on faulty input */ /* avoid floating point errors on faulty input */
...@@ -303,11 +303,11 @@ void darshan_core_shutdown() ...@@ -303,11 +303,11 @@ void darshan_core_shutdown()
/* set darshan job id/metadata and constuct log file name on rank 0 */ /* set darshan job id/metadata and constuct log file name on rank 0 */
if(my_rank == 0) if(my_rank == 0)
{ {
/* Use CP_JOBID_OVERRIDE for the env var or CP_JOBID */ /* Use DARSHAN_JOBID_OVERRIDE for the env var or __DARSHAN_JOBID */
envjobid = getenv(CP_JOBID_OVERRIDE); envjobid = getenv(DARSHAN_JOBID_OVERRIDE);
if(!envjobid) if(!envjobid)
{ {
envjobid = CP_JOBID; envjobid = __DARSHAN_JOBID;
} }
/* find a job id */ /* find a job id */
...@@ -590,7 +590,7 @@ void darshan_core_shutdown() ...@@ -590,7 +590,7 @@ void darshan_core_shutdown()
{ {
if(getenv("DARSHAN_LOGFILE")) if(getenv("DARSHAN_LOGFILE"))
{ {
#ifdef __CP_GROUP_READABLE_LOGS #ifdef __DARSHAN_GROUP_READABLE_LOGS
chmod(logfile_name, (S_IRUSR|S_IRGRP)); chmod(logfile_name, (S_IRUSR|S_IRGRP));
#else #else
chmod(logfile_name, (S_IRUSR)); chmod(logfile_name, (S_IRUSR));
...@@ -612,7 +612,7 @@ void darshan_core_shutdown() ...@@ -612,7 +612,7 @@ void darshan_core_shutdown()
sprintf(tmp_index, "_%d.darshan", (int)(end_log_time-start_log_time+1)); sprintf(tmp_index, "_%d.darshan", (int)(end_log_time-start_log_time+1));
rename(logfile_name, new_logfile_name); rename(logfile_name, new_logfile_name);
/* set permissions on log file */ /* set permissions on log file */
#ifdef __CP_GROUP_READABLE_LOGS #ifdef __DARSHAN_GROUP_READABLE_LOGS
chmod(new_logfile_name, (S_IRUSR|S_IRGRP)); chmod(new_logfile_name, (S_IRUSR|S_IRGRP));
#else #else
chmod(new_logfile_name, (S_IRUSR)); chmod(new_logfile_name, (S_IRUSR));
...@@ -688,7 +688,7 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s ...@@ -688,7 +688,7 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s
char* logpath; char* logpath;
char* logname_string; char* logname_string;
char* logpath_override = NULL; char* logpath_override = NULL;
#ifdef __CP_LOG_ENV #ifdef __DARSHAN_LOG_ENV
char env_check[256]; char env_check[256];
char* env_tok; char* env_tok;
#endif #endif
...@@ -716,12 +716,12 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s ...@@ -716,12 +716,12 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s
{ {
/* otherwise, generate the log path automatically */ /* otherwise, generate the log path automatically */
/* Use CP_LOG_PATH_OVERRIDE for the value or __CP_LOG_PATH */ /* Use DARSHAN_LOG_PATH_OVERRIDE for the value or __DARSHAN_LOG_PATH */
logpath = getenv(CP_LOG_PATH_OVERRIDE); logpath = getenv(DARSHAN_LOG_PATH_OVERRIDE);
if(!logpath) if(!logpath)
{ {
#ifdef __CP_LOG_PATH #ifdef __DARSHAN_LOG_PATH
logpath = __CP_LOG_PATH; logpath = __DARSHAN_LOG_PATH;
#endif #endif
} }
...@@ -766,12 +766,12 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s ...@@ -766,12 +766,12 @@ static void darshan_get_logfile_name(char* logfile_name, int jobid, struct tm* s
* argument, which allows the user to specify an absolute path to * argument, which allows the user to specify an absolute path to
* place logs via an env variable. * place logs via an env variable.
*/ */
#ifdef __CP_LOG_ENV #ifdef __DARSHAN_LOG_ENV
/* just silently skip if the environment variable list is too big */ /* just silently skip if the environment variable list is too big */
if(strlen(__CP_LOG_ENV) < 256) if(strlen(__DARSHAN_LOG_ENV) < 256)
{ {
/* copy env variable list to a temporary buffer */ /* copy env variable list to a temporary buffer */
strcpy(env_check, __CP_LOG_ENV); strcpy(env_check, __DARSHAN_LOG_ENV);
/* tokenize the comma-separated list */ /* tokenize the comma-separated list */
env_tok = strtok(env_check, ","); env_tok = strtok(env_check, ",");
if(env_tok) if(env_tok)
...@@ -847,10 +847,10 @@ static void darshan_log_record_hints_and_ver(struct darshan_core_runtime* core) ...@@ -847,10 +847,10 @@ static void darshan_log_record_hints_and_ver(struct darshan_core_runtime* core)
/* check environment variable to see if the default MPI file hints have /* check environment variable to see if the default MPI file hints have
* been overridden * been overridden
*/ */
hints = getenv(CP_LOG_HINTS_OVERRIDE); hints = getenv(DARSHAN_LOG_HINTS_OVERRIDE);
if(!hints) if(!hints)
{ {
hints = __CP_LOG_HINTS; hints = __DARSHAN_LOG_HINTS;
} }
if(!hints || strlen(hints) < 1) if(!hints || strlen(hints) < 1)
...@@ -1153,10 +1153,10 @@ static int darshan_log_open_all(char *logfile_name, MPI_File *log_fh) ...@@ -1153,10 +1153,10 @@ static int darshan_log_open_all(char *logfile_name, MPI_File *log_fh)
*/ */
MPI_Info_create(&info); MPI_Info_create(&info);
hints = getenv(CP_LOG_HINTS_OVERRIDE); hints = getenv(DARSHAN_LOG_HINTS_OVERRIDE);
if(!hints) if(!hints)
{ {
hints = __CP_LOG_HINTS; hints = __DARSHAN_LOG_HINTS;
} }
if(hints && strlen(hints) > 0) if(hints && strlen(hints) > 0)
......
...@@ -11,8 +11,8 @@ AC_ARG_WITH(zlib, ...@@ -11,8 +11,8 @@ AC_ARG_WITH(zlib,
ZLIB_HOME="$withval" ZLIB_HOME="$withval"
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
__CP_ZLIB_LINK_FLAGS="-L${ZLIB_HOME}/lib" __DARSHAN_ZLIB_LINK_FLAGS="-L${ZLIB_HOME}/lib"
__CP_ZLIB_INCLUDE_FLAGS="-I${ZLIB_HOME}/include" __DARSHAN_ZLIB_INCLUDE_FLAGS="-I${ZLIB_HOME}/include"
else else
AC_MSG_WARN([Sorry, $withval does not exist, checking usual places]) AC_MSG_WARN([Sorry, $withval does not exist, checking usual places])
fi fi
......
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