|
|
@ -668,8 +668,7 @@ contains
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
class(psb_c_vect_cuda), intent(inout) :: x
|
|
|
|
class(psb_c_vect_cuda), intent(inout) :: x
|
|
|
|
|
|
|
|
|
|
|
|
if (allocated(x%v)) x%v=czero
|
|
|
|
call x%set_scal(czero)
|
|
|
|
call x%set_host()
|
|
|
|
|
|
|
|
end subroutine c_cuda_zero
|
|
|
|
end subroutine c_cuda_zero
|
|
|
|
|
|
|
|
|
|
|
|
subroutine c_cuda_asb_m(n, x, info)
|
|
|
|
subroutine c_cuda_asb_m(n, x, info)
|
|
|
@ -807,7 +806,6 @@ contains
|
|
|
|
if (present(first)) first_ = max(1,first)
|
|
|
|
if (present(first)) first_ = max(1,first)
|
|
|
|
if (present(last)) last_ = min(last,last_)
|
|
|
|
if (present(last)) last_ = min(last,last_)
|
|
|
|
|
|
|
|
|
|
|
|
if (x%is_host()) call x%sync()
|
|
|
|
|
|
|
|
info = setScalDevice(val,first_,last_,1,x%deviceVect)
|
|
|
|
info = setScalDevice(val,first_,last_,1,x%deviceVect)
|
|
|
|
call x%set_dev()
|
|
|
|
call x%set_dev()
|
|
|
|
|
|
|
|
|
|
|
|