cuCollections icon indicating copy to clipboard operation
cuCollections copied to clipboard

[FEA] Add option to select between Struct of Arrays vs Array of Structs

Open jrhemstad opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

All of the current hash map implementations use an Array of Structs storage implementation.

There are instances where it could be nice to have a Struct of Arrays layout.

Describe the solution you'd like

Provide some way to configure the storage layout. Probably via some template parameter.

We'd want to avoid as much duplication as possible between the AoS vs SoA implementations, so would require some clever abstraction.

jrhemstad avatar Aug 10 '21 19:08 jrhemstad

Something like this: https://github.com/sleeepyjack/warpcore/blob/ba5a6a84a8797464e2ce8dd03b269907ee70e7c2/include/warpcore/storage.cuh#L150

sleeepyjack avatar Aug 10 '21 20:08 sleeepyjack