You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
727 B
Fortran
25 lines
727 B
Fortran
submodule (psb_z_oacc_hll_mat_mod) psb_z_oacc_hll_mv_from_fmt_impl
|
|
use psb_base_mod
|
|
contains
|
|
module subroutine psb_z_oacc_hll_mv_from_fmt(a, b, info)
|
|
implicit none
|
|
|
|
class(psb_z_oacc_hll_sparse_mat), intent(inout) :: a
|
|
class(psb_z_base_sparse_mat), intent(inout) :: b
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
info = psb_success_
|
|
|
|
select type(b)
|
|
type is (psb_z_coo_sparse_mat)
|
|
call a%mv_from_coo(b, info)
|
|
class default
|
|
call a%psb_z_hll_sparse_mat%mv_from_fmt(b, info)
|
|
if (info /= 0) return
|
|
|
|
!$acc update device(a%val, a%ja, a%irn, a%idiag, a%hkoffs)
|
|
end select
|
|
|
|
end subroutine psb_z_oacc_hll_mv_from_fmt
|
|
end submodule psb_z_oacc_hll_mv_from_fmt_impl
|