mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-07 07:04:57 +00:00
Fix for I gpu types from template: use psb_sizeof_ip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user