| 4b874de6 | 03-Apr-2025 |
Junchao Zhang <jczhang@anl.gov> |
VECKOKKOS: set offloadmask to PETSC_OFFLOAD_KOKKOS since some routines use the flag for quick test of VECKOKKOS
For example, VecPointwiseDivide_SeqKokkos() tests the offloadmask to quickly see if xi
VECKOKKOS: set offloadmask to PETSC_OFFLOAD_KOKKOS since some routines use the flag for quick test of VECKOKKOS
For example, VecPointwiseDivide_SeqKokkos() tests the offloadmask to quickly see if xin, yin are VECKOKKOS.
If it is not properly set, VecGetArrayRead() on xin, yin would trigger GPU to CPU memory copy
Reported-by: Steven Dargaville <dargaville.steven@gmail.com>
show more ...
|