| c5ed836c | 18-Feb-2022 |
Junchao Zhang <jczhang@mcs.anl.gov> |
VecKokkos: zero the newly created vector on host instead of device
Host array is calloc'ed, so if we do not use it, it incurs zero cost; Device array is uninitialized, because we guess most likely o
VecKokkos: zero the newly created vector on host instead of device
Host array is calloc'ed, so if we do not use it, it incurs zero cost; Device array is uninitialized, because we guess most likely one will do VecGetKokkosViewWrite() to initialize the vector, so that one can avoid zeroing the device array or copying the zero'ed host array from host to device.
show more ...
|