aboutsummaryrefslogtreecommitdiff
path: root/codegen_lbm.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-10 15:38:52 +0200
committerAdrian Kummerlaender2019-06-10 15:38:52 +0200
commit91b66eb6fe213528bd71c7345f3449c4a3c0f375 (patch)
treedac5d9777069e187271041e4dc67f60c417d4570 /codegen_lbm.py
parenteac7769abf1ea05d78c525d38f15613d93fae925 (diff)
downloadsymlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar.gz
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar.bz2
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar.lz
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar.xz
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.tar.zst
symlbm_playground-91b66eb6fe213528bd71c7345f3449c4a3c0f375.zip
Reduce thread block size
=> ~780 MLUPS
Diffstat (limited to 'codegen_lbm.py')
-rw-r--r--codegen_lbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen_lbm.py b/codegen_lbm.py
index 29c2dad..235a548 100644
--- a/codegen_lbm.py
+++ b/codegen_lbm.py
@@ -173,10 +173,10 @@ class D2Q9_BGK_Lattice:
def evolve(self):
if self.tick:
self.tick = False
- self.program.collide_and_stream(self.queue, (self.nX,self.nY), (64,1), self.cl_pop_a, self.cl_pop_b, self.cl_moments, self.cl_material)
+ self.program.collide_and_stream(self.queue, (self.nX,self.nY), (32,1), self.cl_pop_a, self.cl_pop_b, self.cl_moments, self.cl_material)
else:
self.tick = True
- self.program.collide_and_stream(self.queue, (self.nX,self.nY), (64,1), self.cl_pop_b, self.cl_pop_a, self.cl_moments, self.cl_material)
+ self.program.collide_and_stream(self.queue, (self.nX,self.nY), (32,1), self.cl_pop_b, self.cl_pop_a, self.cl_moments, self.cl_material)
def sync(self):
self.queue.finish()