mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
AVX2 fix
This commit is contained in:
parent
5aefa56e5c
commit
eb15a8dacb
@ -108,9 +108,8 @@ public:
|
||||
for(int d=0;d<_ndimension;d++){
|
||||
_dimensions[d] = dimensions[d];
|
||||
_layout[d] = layout[d];
|
||||
|
||||
// Use a reduced simd grid
|
||||
_rdimensions[d]= _dimensions[d]/_layout[d];
|
||||
_rdimensions[d]= _dimensions[d]/_layout[d]; //<-- _layout[d] is zero
|
||||
_osites *= _rdimensions[d];
|
||||
_isites *= _layout[d];
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
/* Grid_config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* AVX */
|
||||
#define AVX1 1
|
||||
/* #undef AVX1 */
|
||||
|
||||
/* AVX2 */
|
||||
/* #undef AVX2 */
|
||||
#define AVX2 1
|
||||
|
||||
/* AVX512 */
|
||||
/* #undef AVX512 */
|
||||
|
@ -46,12 +46,19 @@ int main (int argc, char ** argv)
|
||||
simd_layout[2] = 2;
|
||||
simd_layout[3] = 2;
|
||||
#endif
|
||||
#ifdef AVX1
|
||||
#if defined (AVX1)|| defined (AVX2)
|
||||
simd_layout[0] = 1;
|
||||
simd_layout[1] = 1;
|
||||
simd_layout[2] = 2;
|
||||
simd_layout[3] = 2;
|
||||
#endif
|
||||
#if defined (SSE2)
|
||||
simd_layout[0] = 1;
|
||||
simd_layout[1] = 1;
|
||||
simd_layout[2] = 1;
|
||||
simd_layout[3] = 2;
|
||||
#endif
|
||||
|
||||
|
||||
GridCartesian Fine(latt_size,simd_layout);
|
||||
GridRedBlackCartesian rbFine(latt_size,simd_layout);
|
||||
|
Loading…
Reference in New Issue
Block a user