mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 13:15:55 +01:00
Reversing changes to Stencil class
This commit is contained in:
parent
6472b431f0
commit
8bbd9ebc27
@ -2,7 +2,7 @@
|
|||||||
#define _GRID_STAT_H
|
#define _GRID_STAT_H
|
||||||
|
|
||||||
#ifdef AVX512
|
#ifdef AVX512
|
||||||
#define _KNIGHTS_LANDING_
|
#define _KNIGHTS_LANDING_ROOTONLY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
@ -265,7 +265,7 @@
|
|||||||
}
|
}
|
||||||
inline uint64_t GetInfo(int &ptype,int &local,int &perm,int point,int ent,uint64_t base) {
|
inline uint64_t GetInfo(int &ptype,int &local,int &perm,int point,int ent,uint64_t base) {
|
||||||
//_mm_prefetch((char *)&_entries[ent+1],_MM_HINT_T0);
|
//_mm_prefetch((char *)&_entries[ent+1],_MM_HINT_T0);
|
||||||
uint64_t cbase = (uint64_t) & comm_buf[0];
|
uint64_t cbase = (uint64_t) 0;
|
||||||
local = _entries[ent]._is_local;
|
local = _entries[ent]._is_local;
|
||||||
perm = _entries[ent]._permute;
|
perm = _entries[ent]._permute;
|
||||||
if (perm) ptype = _permute_type[point];
|
if (perm) ptype = _permute_type[point];
|
||||||
@ -273,7 +273,7 @@
|
|||||||
else return cbase + _entries[ent]._byte_offset;
|
else return cbase + _entries[ent]._byte_offset;
|
||||||
}
|
}
|
||||||
inline uint64_t GetPFInfo(int ent,uint64_t base) {
|
inline uint64_t GetPFInfo(int ent,uint64_t base) {
|
||||||
uint64_t cbase = (uint64_t)& comm_buf[0];
|
uint64_t cbase = (uint64_t) 0;
|
||||||
int local = _entries[ent]._is_local;
|
int local = _entries[ent]._is_local;
|
||||||
if (local) return base + _entries[ent]._byte_offset;
|
if (local) return base + _entries[ent]._byte_offset;
|
||||||
else return cbase + _entries[ent]._byte_offset;
|
else return cbase + _entries[ent]._byte_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user