mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-14 19:53:18 +01:00
Shaken out stencil to the point where I think wilson dslash is correct.
Need to audit code carefully, consolidate between stencil and cshift, and then benchmark and optimise.
This commit is contained in:
1 parent
0b7d389258
commit
b0485894b3
24 files changed
+599
-605
No files matched your search
@@ -118,6 +118,7 @@ namespace Grid {
|
||||
|
||||
int fd = _grid->_fdimensions[dimension];
|
||||
int rd = _grid->_rdimensions[dimension];
|
||||
int pd = _grid->_processors[dimension];
|
||||
int simd_layout = _grid->_simd_layout[dimension];
|
||||
int comm_dim = _grid->_processors[dimension] >1 ;
|
||||
|
||||
@@ -136,10 +137,10 @@ namespace Grid {
|
||||
|
||||
for(int x=0;x<rd;x++){
|
||||
|
||||
int offnode = ( x+sshift >= rd );
|
||||
int comm_proc = ((x+sshift)/rd)%pd;
|
||||
int offnode = (comm_proc!=0);
|
||||
int sx = (x+sshift)%rd;
|
||||
int comm_proc = (x+sshift)/rd;
|
||||
|
||||
|
||||
if (!offnode) {
|
||||
|
||||
int permute_slice=0;
|
||||
|
||||
Reference in new issue
Block a user