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

Use size_t for call to aligned_malloc #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agrebe
Copy link

@agrebe agrebe commented Sep 4, 2023

If using the POSIX memory allocator (rather than _mm_malloc), the code originally accepted an int to store the size of the allocation, which fails if the allocation size exceeds about 2 GB. (Empirically, this caused problems for me when allocating a $48^3 \times 96$ gauge field.) Changing this to type size_t, as is done in the analogous version using _mm_malloc, allows much larger memory allocations, including my test $48^3$ field.

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

Successfully merging this pull request may close these issues.

1 participant