-
Notifications
You must be signed in to change notification settings - Fork 37
Description
At compile time, Darshan supports a configure option that causes Darshan to use an environment variable to determine where to place log files (see the --with-log-path-by-env option at https://darshan.readthedocs.io/en/latest/darshan-runtime/doc/darshan-runtime.html#compilation ).
This option takes precedent over the typical --with-log-path option. Unlike that option, however, --with-log-path-by-env does not use a year/month/day hierarchy; it is just a flat directory.
Also, once it has been set, I do not see any way to override it, at least if the env variable chosen is something that is always set, like $HOME. So even if you specify a Darshan configuration file, you cannot override this setting and place logs in a year/month/day hierarchy. This is particularly problematic for Spack installations that use this setting by default and redirect all logs to $HOME.
If DARSHAN_LOGPATH is set in the configuration file as documented in https://darshan.readthedocs.io/en/latest/darshan-runtime/doc/darshan-runtime.html#darshan-library-config-settings, then it should take precedence so that a default Spack-installed Darshan package can still be configured afterwards to work like a traditional installation. Or alternatively the configuration file can provide a means to disable the by-env option so that the normal logic falls through to the DARSHAN_LOGPATH.