Kokkos code should be properly managed with exception handlers
Kokkos code in both PETSc and examples should have proper try catch wrappers to properly collect error conditions that arise and convert them to appropriate PETSc errors etc.
[2]PETSC ERROR: Signal received
4488# [2]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
4489# [2]PETSC ERROR: Petsc Development GIT revision: v3.14.2-363-gff93c3eb4 GIT Date: 2020-12-29 19:14:13 -0600
4490# [2]PETSC ERROR: ../ex13 on a named p1 by petsc Tue Dec 29 20:08:55 2020
4491# [2]PETSC ERROR: Configure options --package-prefix-hash=/home/petsc/petsc-hash-pkgs --with-make-test-np=2 --with-mpi-dir=/home/petsc/soft/openmpi-4.0.2-cuda COPTFLAGS="-g -O" FOPTFLAGS="-g -O" CXXOPTFLAGS="-g -O" --with-cuda=1 --with-precision=double --with-clanguage=c --download-kokkos --download-kokkos-kernels --download-hwloc --with-kokkos-cuda-arch=TURING75 PETSC_ARCH=arch-ci-linux-cuda-double
4492# [2]PETSC ERROR: #1 User provided function() line 0 in unknown file
4493# uda-arch=TURING75 PETSC_ARCH=arch-ci-linux-cuda-double
4494# [3]PETSC ERROR: #1 User provided function() line 0 in unknown file
4495# uda-arch=TURING75 PETSC_ARCH=arch-ci-linux-cuda-double
4496# [1]PETSC ERROR: #1 User provided function() line 0 in unknown file
4497# terminate called after throwing an instance of 'std::runtime_error'
4498# what(): cusparseCreate(&cusparseHandle) error( CUSPARSE_STATUS_NOT_INITIALIZED): initialization error /home/petsc/builds/zTEu4Ys7/0/petsc/petsc/arch-ci-linux-cuda-double/externalpackages/git.kokkos-kernels/src/impl/tpls/KokkosKernels_tpl_handles_def.hpp:56
4499# [p1:367121] *** Process received signal ***
4500# [p1:367121] Signal: Aborted (6)
4501# [p1:367121] Signal code: (-6)