From f62fcf3e47919b1c893ac2335b9fdfb842f9595f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 1 Jul 2019 22:28:27 +0200 Subject: Expand LDC benchmark scripts --- simulation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'simulation.py') diff --git a/simulation.py b/simulation.py index 039486c..b64ff96 100644 --- a/simulation.py +++ b/simulation.py @@ -67,7 +67,10 @@ class Memory: self.float_type = float_type if align: - self.size_x = pad(grid.size_x, 32) + self.size_x = pad(grid.size_x, { + numpy.float32: 32, + numpy.float64: 16 + }.get(float_type, None)) else: self.size_x = grid.size_x -- cgit v1.2.3