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
Jakob Luettgau
darshan
Commits
c53dd65a
Commit
c53dd65a
authored
Sep 30, 2015
by
Shane Snyder
Browse files
add reduction to check for partial flag
parent
ac48a609
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/configure
View file @
c53dd65a
This diff is collapsed.
Click to expand it.
darshan-runtime/darshan-runtime-config.h.in
View file @
c53dd65a
...
...
@@ -63,6 +63,9 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
...
...
darshan-runtime/lib/darshan-core.c
View file @
c53dd65a
...
...
@@ -261,6 +261,7 @@ void darshan_core_shutdown()
double
header1
,
header2
;
double
tm_end
;
uint64_t
gz_fp
=
0
;
unsigned
char
tmp_partial_flag
;
MPI_File
log_fh
;
MPI_Status
status
;
...
...
@@ -549,6 +550,13 @@ void darshan_core_shutdown()
mod2
[
i
]
=
DARSHAN_MPI_CALL
(
PMPI_Wtime
)();
}
/* run a reduction to determine if any application processes had to set the
* partial flag. this happens when a process has tracked too many records
* at once and cannot track new records
*/
DARSHAN_MPI_CALL
(
PMPI_Reduce
)(
&
(
final_core
->
log_header
.
partial_flag
),
&
tmp_partial_flag
,
1
,
MPI_UNSIGNED_CHAR
,
MPI_MAX
,
0
,
MPI_COMM_WORLD
);
if
(
internal_timing_flag
)
header1
=
DARSHAN_MPI_CALL
(
PMPI_Wtime
)();
/* rank 0 is responsible for writing the log header */
...
...
@@ -558,6 +566,7 @@ void darshan_core_shutdown()
strcpy
(
final_core
->
log_header
.
version_string
,
DARSHAN_LOG_VERSION
);
final_core
->
log_header
.
magic_nr
=
DARSHAN_MAGIC_NR
;
final_core
->
log_header
.
comp_type
=
DARSHAN_ZLIB_COMP
;
final_core
->
log_header
.
partial_flag
=
tmp_partial_flag
;
all_ret
=
DARSHAN_MPI_CALL
(
PMPI_File_write_at
)(
log_fh
,
0
,
&
(
final_core
->
log_header
),
sizeof
(
struct
darshan_header
),
MPI_BYTE
,
&
status
);
...
...
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