Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cristian Simarro
darshan
Commits
915885cf
Commit
915885cf
authored
Jan 30, 2017
by
Shane Snyder
Browse files
make sure compression buffers are big enough
parent
410c684a
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/darshan-core.h
View file @
915885cf
...
...
@@ -48,9 +48,6 @@
/* default name record buf can store 2048 records of size 100 bytes */
#define DARSHAN_NAME_RECORD_BUF_SIZE (2048 * 100)
/* Default runtime compression buffer size */
#define DARSHAN_COMP_BUF_SIZE DARSHAN_MOD_MEM_MAX
/* structure to track registered modules */
struct
darshan_core_module
{
...
...
darshan-runtime/lib/darshan-core.c
View file @
915885cf
...
...
@@ -405,7 +405,7 @@ void darshan_core_shutdown()
final_core
->
log_job_p
->
end_time
=
last_end_time
;
}
final_core
->
comp_buf
=
malloc
(
DARSHAN_COMP_BUF_SIZE
);
final_core
->
comp_buf
=
malloc
(
darshan_mod_mem_quota
);
if
(
!
(
final_core
->
comp_buf
))
{
darshan_core_cleanup
(
final_core
);
...
...
@@ -1558,7 +1558,7 @@ static int darshan_deflate_buffer(void **pointers, int *lengths, int count,
}
tmp_stream
.
next_out
=
(
unsigned
char
*
)
comp_buf
;
tmp_stream
.
avail_out
=
DARSHAN_COMP_BUF_SIZE
;
tmp_stream
.
avail_out
=
darshan_mod_mem_quota
;
/* loop over the input pointers */
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
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