Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
bb9d68c0
Commit
bb9d68c0
authored
Jun 17, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
honor DARSHAN_MODMEM env variable
parent
927b8773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+12
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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