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
b4be0abd
Commit
b4be0abd
authored
Jan 26, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allreduce job start time in darshan-core init.
parent
8070c831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+6
-8
No files found.
darshan-runtime/lib/darshan-core.c
View file @
b4be0abd
...
...
@@ -312,6 +312,10 @@ void darshan_core_initialize(int argc, char **argv)
}
}
/* reduce so all ranks agree on the job start time */
DARSHAN_MPI_CALL
(
PMPI_Allreduce
)(
MPI_IN_PLACE
,
&
init_core
->
log_job_p
->
start_time
,
1
,
MPI_INT64_T
,
MPI_MIN
,
MPI_COMM_WORLD
);
if
(
internal_timing_flag
)
{
init_time
=
DARSHAN_MPI_CALL
(
PMPI_Wtime
)()
-
init_start
;
...
...
@@ -335,7 +339,6 @@ void darshan_core_shutdown()
int
internal_timing_flag
=
0
;
struct
tm
*
start_tm
;
time_t
start_time_tmp
;
int64_t
first_start_time
;
int64_t
last_end_time
;
double
start_log_time
;
double
tm_end
;
...
...
@@ -445,16 +448,11 @@ void darshan_core_shutdown()
final_core
->
log_job_p
->
end_time
=
time
(
NULL
);
/* reduce to report first start time and last end time across all ranks
* at rank 0
*/
DARSHAN_MPI_CALL
(
PMPI_Reduce
)(
&
final_core
->
log_job_p
->
start_time
,
&
first_start_time
,
1
,
MPI_LONG_LONG
,
MPI_MIN
,
0
,
MPI_COMM_WORLD
);
/* reduce to report last end time across all ranks at rank 0 */
DARSHAN_MPI_CALL
(
PMPI_Reduce
)(
&
final_core
->
log_job_p
->
end_time
,
&
last_end_time
,
1
,
MPI_
LONG_LONG
,
MPI_MAX
,
0
,
MPI_COMM_WORLD
);
1
,
MPI_
INT64_T
,
MPI_MAX
,
0
,
MPI_COMM_WORLD
);
if
(
my_rank
==
0
)
{
out_job
.
start_time
=
first_start_time
;
out_job
.
end_time
=
last_end_time
;
}
...
...
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