Skip to content

Commit

Permalink
Version 5.2.0, Revision 22964, Hash 7f56361
Browse files Browse the repository at this point in the history
MODIFIED *  configure include/version/version.m4 modules/mod_X.F pol_function/X_redux.F

Bugs:
- [yambo] Fix for issue #76

Patch sent by:  Davide Sangalli <[email protected]>
  • Loading branch information
sangallidavide committed Apr 19, 2024
1 parent cf23216 commit 45b73c8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config/version/version.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AC_INIT(Yambo, 5.1.2 r.21870 h.d1ffde8db, [email protected])
SVERSION="5"
SSUBVERSION="1"
SPATCHLEVEL="3"
SPATCHLEVEL="4"
SREVISION="21870"
SHASH="d1ffde8db"
AC_SUBST(SVERSION)
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu

SVERSION="5"
SSUBVERSION="1"
SPATCHLEVEL="2"
SPATCHLEVEL="4"
SREVISION="21870"
SHASH="d1ffde8db"

Expand Down
6 changes: 3 additions & 3 deletions include/driver/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#define YAMBO_VERSION 5
#define YAMBO_SUBVERSION 1
#define YAMBO_PATCHLEVEL 3
#define YAMBO_REVISION 21872
#define YAMBO_HASH "612ae3ca5"
#define YAMBO_PATCHLEVEL 4
#define YAMBO_REVISION 21873
#define YAMBO_HASH "cf23216bac"

8 changes: 8 additions & 0 deletions src/modules/mod_X.F
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ logical function OPTICS_eels(wv,nw,be_verbose,ordering,eps,eel)
complex(SP) ,optional:: eps(nw),eel(nw)
end function
!
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
use matrix, ONLY:PAR_matrix
implicit none
type(PAR_matrix), target :: KERNEL,Xo
integer, intent(in) :: Xo_rows(2),Xo_cols(2),iq
logical, intent(in) :: compute_on_gpu
end subroutine
!
end interface
!
contains
Expand Down
16 changes: 8 additions & 8 deletions src/pol_function/X_redux.F
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ subroutine X_redux(iq,what,X_par,Xw,X)
use wrapper, ONLY:M_by_M
use interfaces, ONLY:LINEAR_ALGEBRA_driver,MATRIX_transfer
use stderr, ONLY:intc
use X_m, ONLY:X_t,X_use_lin_sys,X_use_gpu,X_par_lower_triangle
use X_m, ONLY:X_t,X_use_lin_sys,X_use_gpu,X_par_lower_triangle,X_redux_build_kernel
use TDDFT, ONLY:FXC_n_g_corr,F_xc_gspace,FXC_LRC_alpha,FXC_LRC_beta,FXC_SVD_digits
use timing_m, ONLY:timing
use cuda_m
Expand Down Expand Up @@ -226,7 +226,7 @@ subroutine X_redux(iq,what,X_par,Xw,X)
!
! no Fxc [delta_(g1,g2)-Xo(g1,g2)*v(g2)]
!
call X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
call X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
!
! X(g,gp)=Sum_gpp[KERNEL]^-1_(g,gpp)*Xo(gpp,gp)
!
Expand Down Expand Up @@ -354,14 +354,16 @@ subroutine X_redux(iq,what,X_par,Xw,X)
YAMBO_FREE(PAR_FREQS_index)
call PP_indexes_reset(PAR_IND_freqs)
!
contains
end subroutine
!
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
use R_lattice, ONLY:bare_qpg, bare_qpg_d
use pars, ONLY:pi,cONE
use pars, ONLY:pi,cONE,SP
use matrix, ONLY:PAR_matrix
implicit none
type(PAR_matrix), target :: KERNEL,Xo
integer, intent(in) :: Xo_rows(2),Xo_cols(2)
integer, intent(in) :: Xo_rows(2),Xo_cols(2),iq
logical, intent(in) :: compute_on_gpu
integer :: ig1,ig2
!
complex(SP), pointer DEV_ATTR :: KERNEL_blc_d(:,:,:)
Expand Down Expand Up @@ -394,5 +396,3 @@ subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
endif
!
end subroutine X_redux_build_kernel
!
end subroutine

0 comments on commit 45b73c8

Please sign in to comment.