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
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
c53dd65a
Commit
c53dd65a
authored
Sep 30, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reduction to check for partial flag
parent
ac48a609
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1654 additions
and
2804 deletions
+1654
-2804
darshan-runtime/configure
darshan-runtime/configure
+1642
-2804
darshan-runtime/darshan-runtime-config.h.in
darshan-runtime/darshan-runtime-config.h.in
+3
-0
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+9
-0
No files found.
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