Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev stable #344

Merged
merged 25 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
48c54fc
Merge pull request #38 from QuantumPackage/dev-stable
AbdAmmar Jun 26, 2024
461e216
few modif in TC int
AbdAmmar Jun 28, 2024
73066b4
issue with linking with CUDA
AbdAmmar Jun 28, 2024
4d79bd1
Merge pull request #39 from QuantumPackage/dev-stable
AbdAmmar Jul 29, 2024
eb236e0
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Jul 29, 2024
b6b0ed5
WORKING ON DEBUG CUDA-INTEG
AbdAmmar Aug 1, 2024
f43ee8c
int2_grad1_u12_ao is computed correctly on CUDA
AbdAmmar Aug 1, 2024
76ec028
fix nb of blocks autom
AbdAmmar Aug 2, 2024
4bd8b71
CuTC integrals: OK
AbdAmmar Aug 2, 2024
8e0fe19
fixed path for install
AbdAmmar Aug 3, 2024
c4b19af
cuda tc-integrals tested
AbdAmmar Aug 3, 2024
672fdfd
cuda tc-integrals tested
AbdAmmar Aug 3, 2024
e20d44c
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Aug 3, 2024
dee4407
devide BH jast coeff by 2 direct
AbdAmmar Aug 4, 2024
67a2f0e
openmp issue solved
AbdAmmar Aug 5, 2024
4744fc7
openmp issue solved
AbdAmmar Aug 5, 2024
84445aa
Combine calculation of Left & RIGHT MOs in r
AbdAmmar Aug 8, 2024
09cf7da
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Aug 8, 2024
df1c27c
Optim in int2_grad1_u12_bimo_t
AbdAmmar Aug 8, 2024
2b24424
2e-noL with CUDA
AbdAmmar Aug 8, 2024
4e91431
added 1e-noL with CUDA
AbdAmmar Aug 10, 2024
bf15b68
add normal-ordering with CuTC
AbdAmmar Aug 13, 2024
2e6df70
cleaning in cpu vs gpu comparison
AbdAmmar Aug 13, 2024
674635c
remove double counting of nuclear repulsion
AbdAmmar Aug 27, 2024
07c4db5
Merge pull request #40 from QuantumPackage/dev-stable
AbdAmmar Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 94 additions & 1 deletion plugins/local/bi_ort_ints/bi_ort_ints.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ program bi_ort_ints
! call test_3e
! call test_5idx
! call test_5idx2
call test_4idx()
! call test_4idx()
!call test_4idx_n4()
!call test_4idx2()
!call test_5idx2
!call test_5idx

call test_mos_in_r()
call test_int2_grad1_u12_bimo_t()

end

subroutine test_5idx2
Expand Down Expand Up @@ -472,4 +475,94 @@ subroutine test_4idx()
return
end

! ---

subroutine test_mos_in_r()

implicit none

integer :: i, j
double precision :: err_tot, nrm_tot, err_loc, acc_thr

PROVIDE mos_l_in_r_array_transp_old mos_r_in_r_array_transp_old
PROVIDE mos_l_in_r_array_transp mos_r_in_r_array_transp

acc_thr = 1d-13

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, n_points_final_grid
err_loc = dabs(mos_l_in_r_array_transp_old(j,i) - mos_l_in_r_array_transp(j,i))
if(err_loc > acc_thr) then
print*, " error on", j, i
print*, " old res", mos_l_in_r_array_transp_old(j,i)
print*, " new res", mos_l_in_r_array_transp (j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(mos_l_in_r_array_transp_old(j,i))
enddo
enddo
print *, ' absolute accuracy on mos_l_in_r_array_transp (%) =', 100.d0 * err_tot / nrm_tot

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, n_points_final_grid
err_loc = dabs(mos_r_in_r_array_transp_old(j,i) - mos_r_in_r_array_transp(j,i))
if(err_loc > acc_thr) then
print*, " error on", j, i
print*, " old res", mos_r_in_r_array_transp_old(j,i)
print*, " new res", mos_r_in_r_array_transp (j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(mos_r_in_r_array_transp_old(j,i))
enddo
enddo
print *, ' absolute accuracy on mos_r_in_r_array_transp (%) =', 100.d0 * err_tot / nrm_tot

return
end

! ---

subroutine test_int2_grad1_u12_bimo_t()

implicit none
integer :: i, j, ipoint, m
double precision :: err_tot, nrm_tot, err_loc, acc_thr

PROVIDE int2_grad1_u12_bimo_t_old
PROVIDE int2_grad1_u12_bimo_t

acc_thr = 1d-13

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, mo_num
do m = 1, 3
do ipoint = 1, n_points_final_grid
err_loc = dabs(int2_grad1_u12_bimo_t_old(ipoint,m,j,i) - int2_grad1_u12_bimo_t(ipoint,m,j,i))
if(err_loc > acc_thr) then
print*, " error on", ipoint, m, j, i
print*, " old res", int2_grad1_u12_bimo_t_old(ipoint,m,j,i)
print*, " new res", int2_grad1_u12_bimo_t (ipoint,m,j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(int2_grad1_u12_bimo_t_old(ipoint,m,j,i))
enddo
enddo
enddo
enddo
print *, ' absolute accuracy on int2_grad1_u12_bimo_t (%) =', 100.d0 * err_tot / nrm_tot

return
end

! ---


2 changes: 2 additions & 0 deletions plugins/local/bi_ort_ints/no_dressing.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@

endif

print*, " noL_0e =", noL_0e

END_PROVIDER

! ---
Expand Down
Loading
Loading