Skip to content
Snippets Groups Projects
Commit 12b6b6f7 authored by Keck Jean-Baptiste's avatar Keck Jean-Baptiste
Browse files

stretching debug

parent 8a85a3e1
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ class TestDirectionalStretching(object): ...@@ -17,7 +17,7 @@ class TestDirectionalStretching(object):
queue = cl.CommandQueue(typegen.context) queue = cl.CommandQueue(typegen.context)
ctx = 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_ghosts = np.asarray([3*4,0,0])
compute_grid_size = grid_size + 2*compute_grid_ghosts compute_grid_size = grid_size + 2*compute_grid_ghosts
...@@ -108,8 +108,8 @@ class TestDirectionalStretching(object): ...@@ -108,8 +108,8 @@ class TestDirectionalStretching(object):
cls.host_buffers_gpu = host_buffers_gpu cls.host_buffers_gpu = host_buffers_gpu
cls.device_buffers = device_buffers cls.device_buffers = device_buffers
cls.local_work_size = np.asarray([30,1,1]) cls.local_work_size = np.asarray([1024,1,1])
cls.work_load = np.asarray([1,4,4]) cls.work_load = np.asarray([1,1,1])
cls.inv_dx = inv_dx cls.inv_dx = inv_dx
cls.dt = dtype(0.5) cls.dt = dtype(0.5)
...@@ -400,7 +400,7 @@ class TestDirectionalStretching(object): ...@@ -400,7 +400,7 @@ class TestDirectionalStretching(object):
for (name,host,dev) in buffers: for (name,host,dev) in buffers:
(l1,l2,linf) = self._distances(host,dev,view) (l1,l2,linf) = self._distances(host,dev,view)
print '\t{} -> l1={} l2={} linf={}'.format(name,l1,l2,linf) print '\t{} -> l1={} l2={} linf={}'.format(name,l1,l2,linf)
if l2>1e-11: if l2>1e-8:
err_buffers.append(name) err_buffers.append(name)
good = False good = False
if not good: if not good:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment