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
10
Issues
10
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
a12fa4a3
Commit
a12fa4a3
authored
Oct 21, 2016
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer for MPI communication in elpa_transpose_vectors.X90
parent
1e66b7a6
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
src/elpa_transpose_vectors.X90
src/elpa_transpose_vectors.X90
+26
-6
No files found.
src/elpa_transpose_vectors.X90
View file @
a12fa4a3
...
...
@@ -97,7 +97,9 @@ subroutine elpa_transpose_vectors_complex_single(vmat_s,ld_s,comm_s,vmat_t,ld_t,
#ifdef WITH_OPENMP
use omp_lib
#endif
#ifdef HAVE_DETAILED_TIMINGS
use timings
#endif
use elpa_mpi
implicit none
...
...
@@ -115,27 +117,38 @@ subroutine elpa_transpose_vectors_complex_single(vmat_s,ld_s,comm_s,vmat_t,ld_t,
integer(kind=ik) :: auxstride
#ifdef HAVE_DETAILED_TIMINGS
#if COMPLEXCASE == 1
#ifdef DOUBLE_PRECISION_COMPLEX
call timer%start("elpa_transpose_vectors_complex_double")
#else
call timer%start("elpa_transpose_vectors_complex_single")
#endif
#else
#else /* COMPLEXCASE == 1 */
#ifdef DOUBLE_PRECISION_REAL
call timer%start("elpa_transpose_vectors_real_double")
#else
call timer%start("elpa_transpose_vectors_real_single")
#endif
#endif
#endif /* COMPLEXCASE == 1 */
#endif /* HAVE_DETAILED_TIMINGS */
#ifdef HAVE_DETAILED_TIMINGS
call timer%start("mpi_communication")
#endif
call mpi_comm_rank(comm_s,myps,mpierr)
call mpi_comm_size(comm_s,nps ,mpierr)
call mpi_comm_rank(comm_t,mypt,mpierr)
call mpi_comm_size(comm_t,npt ,mpierr)
#ifdef HAVE_DETAILED_TIMINGS
call timer%stop("mpi_communication")
#endif
! The basic idea of this routine is that for every block (in the block cyclic
! distribution), the processor within comm_t which owns the diagonal
! broadcasts its values of vmat_s to all processors within comm_t.
...
...
@@ -190,6 +203,9 @@ subroutine elpa_transpose_vectors_complex_single(vmat_s,ld_s,comm_s,vmat_t,ld_t,
#endif
#ifdef WITH_MPI
#ifdef HAVE_DETAILED_TIMINGS
call timer%start("mpi_communication")
#endif
#if COMPLEXCASE==1
...
...
@@ -212,6 +228,9 @@ subroutine elpa_transpose_vectors_complex_single(vmat_s,ld_s,comm_s,vmat_t,ld_t,
#endif /* REALCASE == 1 */
#ifdef HAVE_DETAILED_TIMINGS
call timer%stop("mpi_communication")
#endif
#endif /* WITH_MPI */
#ifdef WITH_OPENMP
...
...
@@ -246,14 +265,15 @@ subroutine elpa_transpose_vectors_complex_single(vmat_s,ld_s,comm_s,vmat_t,ld_t,
call timer%stop("elpa_transpose_vectors_complex_single")
#endif
#else
#else /* COMPLEXCASE == 1 */
#ifdef DOUBLE_PRECISION_REAL
call timer%stop("elpa_transpose_vectors_real_double")
#else
call timer%stop("elpa_transpose_vectors_real_single")
#endif
#endif
#endif
/* COMPLEXCASE == 1 */
#endif
#endif
/* HAVE_DETAILED_TIMINGS */
end subroutine
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