Skip to content

Commit 45b73c8

Browse files
Version 5.2.0, Revision 22964, Hash 7f56361
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]>
1 parent cf23216 commit 45b73c8

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

Diff for: config/version/version.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AC_INIT(Yambo, 5.1.2 r.21870 h.d1ffde8db, [email protected])
22
SVERSION="5"
33
SSUBVERSION="1"
4-
SPATCHLEVEL="3"
4+
SPATCHLEVEL="4"
55
SREVISION="21870"
66
SHASH="d1ffde8db"
77
AC_SUBST(SVERSION)

Diff for: configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -3227,7 +3227,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
32273227

32283228
SVERSION="5"
32293229
SSUBVERSION="1"
3230-
SPATCHLEVEL="2"
3230+
SPATCHLEVEL="4"
32313231
SREVISION="21870"
32323232
SHASH="d1ffde8db"
32333233

Diff for: include/driver/version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#define YAMBO_VERSION 5
2626
#define YAMBO_SUBVERSION 1
27-
#define YAMBO_PATCHLEVEL 3
28-
#define YAMBO_REVISION 21872
29-
#define YAMBO_HASH "612ae3ca5"
27+
#define YAMBO_PATCHLEVEL 4
28+
#define YAMBO_REVISION 21873
29+
#define YAMBO_HASH "cf23216bac"
3030

Diff for: src/modules/mod_X.F

+8
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ logical function OPTICS_eels(wv,nw,be_verbose,ordering,eps,eel)
172172
complex(SP) ,optional:: eps(nw),eel(nw)
173173
end function
174174
!
175+
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
176+
use matrix, ONLY:PAR_matrix
177+
implicit none
178+
type(PAR_matrix), target :: KERNEL,Xo
179+
integer, intent(in) :: Xo_rows(2),Xo_cols(2),iq
180+
logical, intent(in) :: compute_on_gpu
181+
end subroutine
182+
!
175183
end interface
176184
!
177185
contains

Diff for: src/pol_function/X_redux.F

+8-8
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ subroutine X_redux(iq,what,X_par,Xw,X)
4848
use wrapper, ONLY:M_by_M
4949
use interfaces, ONLY:LINEAR_ALGEBRA_driver,MATRIX_transfer
5050
use stderr, ONLY:intc
51-
use X_m, ONLY:X_t,X_use_lin_sys,X_use_gpu,X_par_lower_triangle
51+
use X_m, ONLY:X_t,X_use_lin_sys,X_use_gpu,X_par_lower_triangle,X_redux_build_kernel
5252
use TDDFT, ONLY:FXC_n_g_corr,F_xc_gspace,FXC_LRC_alpha,FXC_LRC_beta,FXC_SVD_digits
5353
use timing_m, ONLY:timing
5454
use cuda_m
@@ -226,7 +226,7 @@ subroutine X_redux(iq,what,X_par,Xw,X)
226226
!
227227
! no Fxc [delta_(g1,g2)-Xo(g1,g2)*v(g2)]
228228
!
229-
call X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
229+
call X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
230230
!
231231
! X(g,gp)=Sum_gpp[KERNEL]^-1_(g,gpp)*Xo(gpp,gp)
232232
!
@@ -354,14 +354,16 @@ subroutine X_redux(iq,what,X_par,Xw,X)
354354
YAMBO_FREE(PAR_FREQS_index)
355355
call PP_indexes_reset(PAR_IND_freqs)
356356
!
357-
contains
357+
end subroutine
358358
!
359-
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
359+
subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols,compute_on_gpu,iq)
360360
use R_lattice, ONLY:bare_qpg, bare_qpg_d
361-
use pars, ONLY:pi,cONE
361+
use pars, ONLY:pi,cONE,SP
362+
use matrix, ONLY:PAR_matrix
362363
implicit none
363364
type(PAR_matrix), target :: KERNEL,Xo
364-
integer, intent(in) :: Xo_rows(2),Xo_cols(2)
365+
integer, intent(in) :: Xo_rows(2),Xo_cols(2),iq
366+
logical, intent(in) :: compute_on_gpu
365367
integer :: ig1,ig2
366368
!
367369
complex(SP), pointer DEV_ATTR :: KERNEL_blc_d(:,:,:)
@@ -394,5 +396,3 @@ subroutine X_redux_build_kernel(KERNEL,Xo,Xo_rows,Xo_cols)
394396
endif
395397
!
396398
end subroutine X_redux_build_kernel
397-
!
398-
end subroutine

0 commit comments

Comments
 (0)