Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frederik Hennig
lbmpy
Commits
fe2b7f9c
Commit
fe2b7f9c
authored
Nov 02, 2020
by
Markus Holzer
Browse files
Fixed OpenCL test case
parent
6b1145e7
Pipeline
#27667
waiting for manual action with stage
in 24 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy_tests/test_boundary_handling.py
View file @
fe2b7f9c
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment