-
Notifications
You must be signed in to change notification settings - Fork 361
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
Make vector allocation aligned to 64-bytes #1909
Conversation
…ment requirement used by State data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add release note for this fix
Added release note for the fix. |
@doichanj , can you help understand how this PR is breaking the Windows builds? It shouldn't change anything there. I only see the compiler running out of memory. |
Windows build sometimes fails because of heap memory shortage. Only we can do is to rerun until it will not fail |
Summary
Make vector allocation aligned to 64-bytes as that is the same alignment requirement used by QubitVector data.
Details and comments
AER::Vector
is in some cases used to initializeQubitVector
data and the code assumes that that storage is at least 32-byte aligned so that mm256 instructions can be used. This PR makesAER::Vector
storage have the same alignment requirements (64-byte) asQubitVector
so that one doesn't get into segfaults when trying to access this storage with vector intrinsics.This fixes #1908.