Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement AoSoA data containers for efficient memory caching/coalescing #6

Open
jbeisman opened this issue Feb 16, 2023 · 0 comments
Open

Comments

@jbeisman
Copy link
Collaborator

Implement array-of-struct-of-array data containers that set the size of the inner arrays as the SIMD width of the executing architecture. This will allow better caching/coalescing of kernel memory and will increase vectorization.

eg

struct AoS {
int x, y, z;
};
AoS[n];

struct SoA {
int x[n], y[n], z[n];
};

struct AoSoA {
int x[VEC_WIDTH], y[VEC_WIDTH], z[VEC_WIDTH];
};
AoSoA[ N / VEC_WIDTH];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant