From 12b6b6f79ab97299fd9d42f94810c4947ebb58c5 Mon Sep 17 00:00:00 2001 From: Keck Jean-Baptiste <jean-baptiste.keck@imag.fr> Date: Sat, 17 Dec 2016 11:22:50 +0100 Subject: [PATCH] stretching debug --- .../codegen/kernels/tests/test_directional_stretching.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hysop/codegen/kernels/tests/test_directional_stretching.py b/hysop/codegen/kernels/tests/test_directional_stretching.py index b7802ecea..3b0c03878 100644 --- a/hysop/codegen/kernels/tests/test_directional_stretching.py +++ b/hysop/codegen/kernels/tests/test_directional_stretching.py @@ -17,7 +17,7 @@ class TestDirectionalStretching(object): queue = cl.CommandQueue(typegen.context) ctx = typegen.context - grid_size = np.asarray([256,256,256]) + grid_size = np.asarray([2048,10,10]) compute_grid_ghosts = np.asarray([3*4,0,0]) compute_grid_size = grid_size + 2*compute_grid_ghosts @@ -108,8 +108,8 @@ class TestDirectionalStretching(object): cls.host_buffers_gpu = host_buffers_gpu cls.device_buffers = device_buffers - cls.local_work_size = np.asarray([30,1,1]) - cls.work_load = np.asarray([1,4,4]) + cls.local_work_size = np.asarray([1024,1,1]) + cls.work_load = np.asarray([1,1,1]) cls.inv_dx = inv_dx cls.dt = dtype(0.5) @@ -400,7 +400,7 @@ class TestDirectionalStretching(object): for (name,host,dev) in buffers: (l1,l2,linf) = self._distances(host,dev,view) print '\t{} -> l1={} l2={} linf={}'.format(name,l1,l2,linf) - if l2>1e-11: + if l2>1e-8: err_buffers.append(name) good = False if not good: -- GitLab