Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
37112bd3
Commit
37112bd3
authored
Apr 30, 2018
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MPI_Allreduce flops only if they should be printed
parent
0183d8ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90
src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90
+4
-3
No files found.
src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90
View file @
37112bd3
...
...
@@ -2153,6 +2153,8 @@
if
(
ANY
(
result_recv_request
/
=
MPI_REQUEST_NULL
))
write
(
error_unit
,
*
)
'*** ERROR result_recv_request ***'
,
my_prow
,
my_pcol
#ifdef HAVE_DETAILED_TIMINGS
call
obj
%
get
(
"print_flops"
,
print_flops
)
if
(
print_flops
==
1
)
then
call
MPI_ALLREDUCE
(
kernel_flops
,
kernel_flops_recv
,
1
,
MPI_INTEGER8
,
MPI_SUM
,
MPI_COMM_ROWS
,
mpierr
)
kernel_flops
=
kernel_flops_recv
call
MPI_ALLREDUCE
(
kernel_flops
,
kernel_flops_recv
,
1
,
MPI_INTEGER8
,
MPI_SUM
,
MPI_COMM_COLS
,
mpierr
)
...
...
@@ -2162,16 +2164,15 @@
kernel_time_recv
=
kernel_time
call
MPI_ALLREDUCE
(
kernel_time
,
kernel_time_recv
,
1
,
MPI_REAL8
,
MPI_MAX
,
MPI_COMM_COLS
,
mpierr
)
kernel_time_recv
=
kernel_time
endif
#endif
#e
lse
/* WITH_MPI */
#e
ndif
/* WITH_MPI */
call
obj
%
get
(
"print_flops"
,
print_flops
)
if
(
my_prow
==
0
.and.
my_pcol
==
0
.and.
print_flops
==
1
)
&
write
(
error_unit
,
'(" Kernel time:",f10.3," MFlops: ",es12.5)'
)
kernel_time
,
kernel_flops
/
kernel_time
*
1.d-6
#endif /* WITH_MPI */
if
(
useGPU
)
then
! copy q to q_dev needed in trans_ev_band_to_full
successCUDA
=
cuda_malloc
(
q_dev
,
ldq
*
matrixCols
*
size_of_datatype
)
...
...
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