Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
bb9d68c0
Commit
bb9d68c0
authored
Jun 17, 2016
by
Shane Snyder
Browse files
honor DARSHAN_MODMEM env variable
parent
927b8773
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-core.c
View file @
bb9d68c0
...
...
@@ -195,6 +195,18 @@ void darshan_core_initialize(int argc, char **argv)
jobid
=
getpid
();
}
/* set the memory quota for darshan modules' records */
envstr
=
getenv
(
DARSHAN_MOD_MEM_OVERRIDE
);
if
(
envstr
)
{
ret
=
sscanf
(
envstr
,
"%d"
,
&
tmpval
);
/* silently ignore if the env variable is set poorly */
if
(
ret
==
1
&&
tmpval
>
0
)
{
darshan_mod_mem_quota
=
tmpval
*
1024
*
1024
;
/* convert from MiB */
}
}
/* allocate structure to track darshan core runtime information */
init_core
=
malloc
(
sizeof
(
*
init_core
));
if
(
init_core
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment