-
- Downloads
Add Table class and use it in ItemArray
Table is a bi-dimensional version of Array Use Kokkos::SubView to access rows and columns of Tables which are Array's Do not use SubArray (to be removed) anymore to get a partial views of an Array, but Kokkos::SubView. The reason for this change is that SubArray were not a safe construction since the underlying Array could be destroyed (or resized) while the SubArray was still active. This has obviously an extra cost, but Kokkos developers have made the mechanism so that reference counters are deactivated (for all Kokkos::View) during parallel_for. Thus performances are the same but this new approach is safer. [Now one use the subArray() function to get a View on a part of an Array.]
parent
b617d477
No related branches found
No related tags found
Showing
- src/mesh/ItemArray.hpp 18 additions, 31 deletionssrc/mesh/ItemArray.hpp
- src/utils/Array.hpp 17 additions, 3 deletionssrc/utils/Array.hpp
- src/utils/Table.hpp 126 additions, 0 deletionssrc/utils/Table.hpp
- tests/test_ItemArray.cpp 18 additions, 29 deletionstests/test_ItemArray.cpp
- tests/test_ItemArrayUtils.cpp 36 additions, 36 deletionstests/test_ItemArrayUtils.cpp
Loading
Please register or sign in to comment