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

Alignment of data for SSE/AVX does not seem to matter #25

Open
Martinsos opened this issue May 10, 2015 · 0 comments
Open

Alignment of data for SSE/AVX does not seem to matter #25

Martinsos opened this issue May 10, 2015 · 0 comments
Assignees

Comments

@Martinsos
Copy link
Owner

Documentation says that data which will be loaded/stored by SSE must be memory aligned to 16/32 bytes, or loading/storing will be much slower and possibly cause exceptions.

I do that like this:

int myArray[4] __attribute__((aligned(16)));

However, if I remove alignment, or align it to some different, wrong value, nothing changes in speed!
I am not sure if loads/stores actually become slower but it does not affect overall speed of execution of opal, or am I actually doing something else wrong -> maybe I am aligning wrong all the time? I should investigate this, to make sure I am doing this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant