Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
24f52f21
Commit
24f52f21
authored
Jan 22, 2020
by
Stephan Seitz
Browse files
Let's not fake that we test gpu execution here
parent
63bab1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_interpolation.py
View file @
24f52f21
...
...
@@ -211,7 +211,7 @@ def test_rotate_interpolation_size_change(address_mode):
@
pytest
.
mark
.
parametrize
(
'address_mode, target'
,
itertools
.
product
([
'border'
,
'wrap'
,
'clamp'
,
'mirror'
],
[
'cpu'
,
'gpu'
]))
itertools
.
product
([
'border'
,
'wrap'
,
'clamp'
,
'mirror'
],
[
'cpu'
]))
def
test_field_interpolated
(
address_mode
,
target
):
x_f
,
y_f
=
pystencils
.
fields
(
'x,y: float64 [2d]'
)
...
...
@@ -219,7 +219,7 @@ def test_field_interpolated(address_mode, target):
y_f
.
center
():
x_f
.
interpolated_access
([
0.5
*
x_
+
2.7
,
0.25
*
y_
+
7.2
],
address_mode
=
address_mode
)
})
print
(
assignments
)
ast
=
pystencils
.
create_kernel
(
assignments
)
ast
=
pystencils
.
create_kernel
(
assignments
,
target
=
target
)
print
(
ast
)
pystencils
.
show_code
(
ast
)
kernel
=
ast
.
compile
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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