mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
Improve cuda%zero()
This commit is contained in:
@@ -668,7 +668,9 @@ contains
|
||||
use psi_serial_mod
|
||||
implicit none
|
||||
class(psb_c_vect_cuda), intent(inout) :: x
|
||||
|
||||
! Since we are overwriting, make sure to do it
|
||||
! on the GPU side
|
||||
call x%set_dev()
|
||||
call x%set_scal(czero)
|
||||
|
||||
end subroutine c_cuda_zero
|
||||
|
||||
@@ -668,7 +668,9 @@ contains
|
||||
use psi_serial_mod
|
||||
implicit none
|
||||
class(psb_d_vect_cuda), intent(inout) :: x
|
||||
|
||||
! Since we are overwriting, make sure to do it
|
||||
! on the GPU side
|
||||
call x%set_dev()
|
||||
call x%set_scal(dzero)
|
||||
|
||||
end subroutine d_cuda_zero
|
||||
|
||||
@@ -650,7 +650,9 @@ contains
|
||||
use psi_serial_mod
|
||||
implicit none
|
||||
class(psb_i_vect_cuda), intent(inout) :: x
|
||||
|
||||
! Since we are overwriting, make sure to do it
|
||||
! on the GPU side
|
||||
call x%set_dev()
|
||||
call x%set_scal(izero)
|
||||
|
||||
end subroutine i_cuda_zero
|
||||
|
||||
@@ -668,7 +668,9 @@ contains
|
||||
use psi_serial_mod
|
||||
implicit none
|
||||
class(psb_s_vect_cuda), intent(inout) :: x
|
||||
|
||||
! Since we are overwriting, make sure to do it
|
||||
! on the GPU side
|
||||
call x%set_dev()
|
||||
call x%set_scal(szero)
|
||||
|
||||
end subroutine s_cuda_zero
|
||||
|
||||
@@ -668,7 +668,9 @@ contains
|
||||
use psi_serial_mod
|
||||
implicit none
|
||||
class(psb_z_vect_cuda), intent(inout) :: x
|
||||
|
||||
! Since we are overwriting, make sure to do it
|
||||
! on the GPU side
|
||||
call x%set_dev()
|
||||
call x%set_scal(zzero)
|
||||
|
||||
end subroutine z_cuda_zero
|
||||
|
||||
Reference in New Issue
Block a user