From 27ce855378a80dff680c2989800af1f4e69975fe Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 9 Nov 2019 20:21:27 +0100 Subject: Implement basic version of the SSS pattern for C++ target An interesting extension of the AA pattern. The main advantage of this is that updating pointers in a control structure is much more elegant than duplicating all function implementations as is required by the normal AA pattern. For more details see [1]. Only works for the SOA layout. On a pure memory access level this pattern is equivalent to the AA pattern. The difference is how the memory locations are calculated (by pointer swap & shift or by different indexing functions for odd and even time steps). [1]: "An auto-vectorization friendly parallel lattice Boltzmann streaming scheme for direct addressing" by Mohrhard et al. (2019) --- boltzgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boltzgen.py') diff --git a/boltzgen.py b/boltzgen.py index 216234f..c2eb297 100755 --- a/boltzgen.py +++ b/boltzgen.py @@ -13,7 +13,7 @@ argparser.add_argument('--model', required = False, help = 'LBM model (curre argparser.add_argument('--precision', required = True, help = 'Floating precision ("single" or "double")') argparser.add_argument('--layout', required = True, help = 'Memory layout ("AOS" or "SOA")') argparser.add_argument('--index', required = False, help = 'Cell indexing ("XYZ" or "ZYX")') -argparser.add_argument('--streaming', required = True, help = 'Streaming pattern ("AB" or "AA")') +argparser.add_argument('--streaming', required = True, help = 'Streaming pattern ("AB", "AA" or "SSS")') argparser.add_argument('--geometry', required = True, help = 'Size of the block geometry ("x:y(:z)")') argparser.add_argument('--tau', required = True, help = 'BGK relaxation time') -- cgit v1.2.3