Fix for I gpu types from template: use psb_sizeof_ip

repack-precuda
sfilippone 1 year ago
parent 3a9116bc42
commit d0d4e45877

@ -258,7 +258,7 @@ contains
integer(psb_epk_) :: res
if (a%is_dev()) call a%sync()
res = 8
res = res + psb_sizeof_int * size(a%val)
res = res + psb_sizeof_ip * size(a%val)
res = res + psb_sizeof_ip * size(a%irp)
res = res + psb_sizeof_ip * size(a%ja)
! Should we account for the shadow data structure

@ -236,7 +236,7 @@ contains
integer(psb_epk_) :: res
res = 8
res = res + psb_sizeof_int * size(a%data)
res = res + psb_sizeof_ip * size(a%data)
res = res + psb_sizeof_ip * size(a%offset)
! Should we account for the shadow data structure

@ -294,7 +294,7 @@ contains
if (a%is_dev()) call a%sync()
res = 8
res = res + psb_sizeof_int * size(a%val)
res = res + psb_sizeof_ip * size(a%val)
res = res + psb_sizeof_ip * size(a%irn)
res = res + psb_sizeof_ip * size(a%idiag)
res = res + psb_sizeof_ip * size(a%ja)

@ -260,7 +260,7 @@ contains
if (a%is_dev()) call a%sync()
res = 8
res = res + psb_sizeof_int * size(a%val)
res = res + psb_sizeof_ip * size(a%val)
res = res + psb_sizeof_ip * size(a%irn)
res = res + psb_sizeof_ip * size(a%idiag)
res = res + psb_sizeof_ip * size(a%hkoffs)

@ -236,7 +236,7 @@ contains
class(psb_i_hybg_sparse_mat), intent(in) :: a
integer(psb_epk_) :: res
res = 8
res = res + psb_sizeof_int * size(a%val)
res = res + psb_sizeof_ip * size(a%val)
res = res + psb_sizeof_ip * size(a%irp)
res = res + psb_sizeof_ip * size(a%ja)
! Should we account for the shadow data structure

Loading…
Cancel
Save