Commit fe2b7f9c authored by Markus Holzer's avatar Markus Holzer
Browse files

Fixed OpenCL test case

parent 6b1145e7
Pipeline #27667 waiting for manual action with stage
in 24 minutes and 13 seconds
......@@ -20,11 +20,11 @@ def test_simple(target):
import pystencils.opencl.autoinit
dh = create_data_handling((4, 4), parallel=False, default_target=target)
dh.add_array('pdfs', values_per_cell=9, cpu=True, gpu=target!='cpu')
dh.add_array('pdfs', values_per_cell=9, cpu=True, gpu=target != 'cpu')
for i in range(9):
dh.fill("pdfs", i, value_idx=i, ghost_layers=True)
if target == 'gpu':
if target == 'gpu' or target == 'opencl':
dh.all_to_gpu()
lb_func = create_lb_function(stencil='D2Q9',
......@@ -44,7 +44,7 @@ def test_simple(target):
bh.prepare()
bh()
if target == 'gpu':
if target == 'gpu' or target == 'opencl':
dh.all_to_cpu()
# left lower corner
assert (dh.cpu_arrays['pdfs'][0, 0, 6] == 7)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment