JeffersonLab / qphix

QCD for Intel Xeon Phi and Xeon processors
http://jeffersonlab.github.io/qphix/
Other
13 stars 11 forks source link

Use size_t for call to aligned_malloc #123

Open agrebe opened 1 year ago

agrebe commented 1 year ago

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.