| 860d1bbd | 27-Sep-2020 |
Barry Smith <bsmith@mcs.anl.gov> |
Move assignment of (*V)->offloadmask = PETSC_OFFLOAD_GPU; from VecCreateSeqCUDAWithArray() to only set the flag if the array is non-NULL, since that is the only case when the flag of PETSC_OFFLOAD_GP
Move assignment of (*V)->offloadmask = PETSC_OFFLOAD_GPU; from VecCreateSeqCUDAWithArray() to only set the flag if the array is non-NULL, since that is the only case when the flag of PETSC_OFFLOAD_GPU is valid.
Commit-type: bug-fix Reported-by: Jose Roman https://gitlab.com/joseroman \spend 10m
show more ...
|