Satish is right. ex55k is not standalone.
There are many examples in petsc tests that can run with kokkos. Just
search "requires: kokkos_kernels" and you will find them.
ex55k.kokkos.cxx is an example showing how to use petsc/kokkos functions
like DMDAVecRestoreKokkosOffsetView,
Looks like ex55 is the one to use - that links in with ex55k
But it needs a fix for a build from 'make'
>>
balay@petsc-gpu-01:/scratch/balay/petsc/src/snes/tutorials$ git diff
diff --git a/src/snes/tutorials/makefile b/src/snes/tutorials/makefile
index 672a62aa5a0..eed127f7eae 100644
---