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
d03c3eea
Commit
d03c3eea
authored
Jan 17, 2020
by
Stephan Seitz
Browse files
Avoid re-initialization opencl context in test
parent
aa15fba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_opencl.py
View file @
d03c3eea
...
...
@@ -10,6 +10,8 @@ from pystencils.opencl.opencljit import get_global_cl_queue, make_python_functio
try
:
import
pyopencl
as
cl
HAS_OPENCL
=
True
import
pystencils.opencl.autoinit
except
Exception
:
HAS_OPENCL
=
False
...
...
@@ -244,9 +246,6 @@ def test_kernel_creation():
print
(
assignments
)
pystencils
.
opencl
.
clear_global_ctx
()
import
pystencils.opencl.autoinit
ast
=
pystencils
.
create_kernel
(
assignments
,
target
=
'opencl'
)
print
(
ast
.
backend
)
...
...
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