Skip to content

Commit

Permalink
count number of H|psi> operations
Browse files Browse the repository at this point in the history
  • Loading branch information
toxa81 committed Mar 11, 2020
1 parent 9e58c5c commit 4eb0619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions PW/src/h_psi.f90
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SUBROUTINE h_psi( lda, n, m, psi, hpsi )
USE mp_bands, ONLY: use_bgrp_in_hpsi, inter_bgrp_comm
USE mp, ONLY: mp_allgather, mp_size, &
mp_type_create_column_section, mp_type_free
USE mp_bands_util, ONLY: num_loc_op_applied
!
IMPLICIT NONE
!
Expand All @@ -42,6 +43,7 @@ SUBROUTINE h_psi( lda, n, m, psi, hpsi )
INTEGER, ALLOCATABLE :: recv_counts(:), displs(:)
!
!
num_loc_op_applied = num_loc_op_applied + m
CALL start_clock( 'h_psi_bgrp' ); !write (*,*) 'start h_psi_bgrp'; FLUSH(6)
!
! band parallelization with non-distributed bands is performed if
Expand Down
6 changes: 4 additions & 2 deletions PW/src/run_pwscf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SUBROUTINE run_pwscf( exit_status )
USE mp_world, ONLY : mpime
USE dfunct, ONLY : newd
USE mod_sirius
USE mp_bands_util, ONLY : evp_work_count
USE mp_bands_util, ONLY : evp_work_count, num_loc_op_applied
!
IMPLICIT NONE
!
Expand Down Expand Up @@ -149,9 +149,11 @@ SUBROUTINE run_pwscf( exit_status )
CALL electrons()
IF (use_sirius) THEN
CALL sirius_get_parameters(sctx, evp_work_count=evp_work_count)
CALL sirius_get_parameters(sctx, num_loc_op_applied=num_loc_op_applied)
ENDIF
WRITE(stdout, *)
WRITE(stdout,'(" evp_work_count : ", F12.6)')evp_work_count
WRITE(stdout,'(" evp_work_count : ", F12.6)')evp_work_count
WRITE(stdout,'(" num_loc_op_applied : ", I6)')num_loc_op_applied
CALL sirius_stop_timer(string("qe|electrons"))
END IF
IF (use_sirius.AND.use_sirius_ks_solver) THEN
Expand Down

0 comments on commit 4eb0619

Please sign in to comment.