mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-09 06:53:38 +01:00
Added timings.
This commit is contained in:
parent
2e9f539827
commit
0394865bf6
@ -325,7 +325,14 @@ subroutine davidson_diag_cfg_hjj(dets_in,u_in,H_jj,energies,dim_in,sze,sze_csf,N
|
|||||||
enddo
|
enddo
|
||||||
enddo
|
enddo
|
||||||
!tmpU(1,1)=1.0d0
|
!tmpU(1,1)=1.0d0
|
||||||
|
double precision :: irp_rdtsc
|
||||||
|
double precision :: ticks_0, ticks_1
|
||||||
|
integer*8 :: irp_imax
|
||||||
|
irp_imax = 1
|
||||||
|
ticks_0 = irp_rdtsc()
|
||||||
call calculate_sigma_vector_cfg_nst_naive_store(tmpW,tmpU,N_st_diag,sze_csf,1,sze_csf,0,1)
|
call calculate_sigma_vector_cfg_nst_naive_store(tmpW,tmpU,N_st_diag,sze_csf,1,sze_csf,0,1)
|
||||||
|
ticks_1 = irp_rdtsc()
|
||||||
|
print *,' ----Cycles:',(ticks_1-ticks_0)/dble(irp_imax)," ----"
|
||||||
do kk=1,N_st_diag
|
do kk=1,N_st_diag
|
||||||
do ii=1,sze_csf
|
do ii=1,sze_csf
|
||||||
W_csf(ii,shift+kk)=tmpW(kk,ii)
|
W_csf(ii,shift+kk)=tmpW(kk,ii)
|
||||||
|
@ -356,7 +356,14 @@ subroutine davidson_diag_hjj_sjj(dets_in,u_in,H_jj,s2_out,energies,dim_in,sze,N_
|
|||||||
if ((sze > 100000).and.distributed_davidson) then
|
if ((sze > 100000).and.distributed_davidson) then
|
||||||
call H_S2_u_0_nstates_zmq (W(1,shift+1),S_d,U(1,shift+1),N_st_diag,sze)
|
call H_S2_u_0_nstates_zmq (W(1,shift+1),S_d,U(1,shift+1),N_st_diag,sze)
|
||||||
else
|
else
|
||||||
|
double precision :: irp_rdtsc
|
||||||
|
double precision :: ticks_0, ticks_1
|
||||||
|
integer*8 :: irp_imax
|
||||||
|
irp_imax = 1
|
||||||
|
ticks_0 = irp_rdtsc()
|
||||||
call H_S2_u_0_nstates_openmp(W(1,shift+1),S_d,U(1,shift+1),N_st_diag,sze)
|
call H_S2_u_0_nstates_openmp(W(1,shift+1),S_d,U(1,shift+1),N_st_diag,sze)
|
||||||
|
ticks_1 = irp_rdtsc()
|
||||||
|
print *,' ----Cycles:',(ticks_1-ticks_0)/dble(irp_imax)," ----"
|
||||||
endif
|
endif
|
||||||
S(1:sze,shift+1:shift+N_st_diag) = real(S_d(1:sze,1:N_st_diag))
|
S(1:sze,shift+1:shift+N_st_diag) = real(S_d(1:sze,1:N_st_diag))
|
||||||
! else
|
! else
|
||||||
|
Loading…
Reference in New Issue
Block a user