Examples
ex1.c: Tests creation and destruction of PetscDevice.
ex2cu.cu: Benchmarking cudaPointerGetAttributes() time
ex1k.kokkos.cxx: Benchmarking device kernel launch time
ex11.cxx: Tests PetscDeviceContextMarkIntentFromID().
ex12.c: Tests PetscDevice and PetscDeviceContext init sequence control from command line.
ex8.c: Tests PetscDeviceContextSetDevice.
ex4.c: Tests PetscDeviceContextFork/Join.
ex9.c: Tests PetscDeviceContextQueryIdle.
ex6.c: Tests PetscDeviceContextView().
ex10.c: Tests PetscDeviceContextSetStreamType().
ex7.c: Tests PetscDeviceAllocate().
ex2.c: Tests creation and destruction of PetscDeviceContext.
petscdevicetestcommon.h:
ex3.c: Tests PetscDeviceContextDuplicate.
ex2hip.hip.cxx: Benchmarking hipPointerGetAttributes() time
ex5.c: Tests PetscDeviceGetAttribute().