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