LvArray icon indicating copy to clipboard operation
LvArray copied to clipboard

Array layouts

Open klevzoff opened this issue 2 years ago • 0 comments

Proposal for new array layout types that allow for static (compile-time) extents and strides. Passes all unit tests.

Inspired by: https://github.com/NVIDIA/cutlass/tree/main/include/cute https://github.com/NVIDIA/cutlass/blob/main/media/docs/cute/00_quickstart.md

The main changes to look at (in order):

  • Constant.hpp/testConstant.hpp
  • tupleManipulation.hpp/testTupleManipulation.hpp
  • Layout.hpp/testLayout.hpp
  • then ArraySlice.hpp/ArrayView.hpp/Array.hpp

The type name changes (Array2 etc.) are temporary.

Build times for time ninja -j8 coreComponents/LvArray/all

  • develop:
real	4m51.127s
user	36m42.070s
sys	0m58.920s
  • feature/klevzoff/layouts:
real	4m57.517s
user	36m53.505s
sys	1m0.265s

klevzoff avatar Jul 11 '23 00:07 klevzoff