Kokkos: do not redeclare functions if device is host
If petsc is configured with kokkos but without cuda, we met errors for function redeclaration in template instantiation. This MR tests if device is host and does conditional compilation.
If petsc is configured with kokkos but without cuda, we met errors for function redeclaration in template instantiation. This MR tests if device is host and does conditional compilation.