Clone the git repository adding the --recursive option
One defines a simple kind a CSR storage. The data are stored in a
large 1d view (entries) or an hand written array (shared_array)
which uses a naive reference counting mechanism.
This test computes the sum of the values of each row using various approaches
Kokkos/Directdoes ne create a view but browse simply the row stored in aKokkos::subViewwhich use Kokkos' provided sub-view mechanismeKokkos::Viewwhich builds a Kokkos' view fromentries(recommended in Kokkos manual)Kokkos|RawViewan hand written unsafe view (the pointer may be invalid if theKokkos::Viewis destroyed before the viewSharedArrayViewan hand written view for the simpleSharedArray(shares the reference counter)SharedArray|RawViewthe same unsafe view used withSharedArray
- One requires a C++-17 compiler.
- Binary cannot be built in sources
- Default build type is
Release
One must provide an integer parameter which denotes the number of times each test is run. A value of 1000 seems quite reasonnable.