aboutsummaryrefslogtreecommitdiff
path: root/lbm.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-15 15:51:56 +0200
committerAdrian Kummerlaender2019-06-15 16:14:26 +0200
commitc43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a (patch)
tree39992e419204135a9625e662f4b5574e044d6b1f /lbm.py
parentc543a20179d495cb6d585c48637c24b248c29a07 (diff)
downloadsymlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar.gz
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar.bz2
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar.lz
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar.xz
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.tar.zst
symlbm_playground-c43d3f38b6922d36d15e8ba2b6ce17ddb0c75b0a.zip
Start to record some benchmarks
Diffstat (limited to 'lbm.py')
-rw-r--r--lbm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lbm.py b/lbm.py
index e4eaf62..546b3c7 100644
--- a/lbm.py
+++ b/lbm.py
@@ -5,6 +5,7 @@ import numpy
import sympy
from mako.template import Template
+from pathlib import Path
class Geometry:
def __init__(self, size_x, size_y):
@@ -67,7 +68,7 @@ class Lattice:
cl.enqueue_copy(self.queue, self.cl_material, self.np_material).wait();
def build_kernel(self):
- program_src = Template(filename = './template/kernel.mako').render(
+ program_src = Template(filename = str(Path(__file__).parent/'template/kernel.mako')).render(
descriptor = self.descriptor,
geometry = self.geometry,