Skip to content
Snippets Groups Projects
Commit fee0a55d authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

test_arraycontext: add an _acf

parent 0a124475
No related branches found
No related tags found
No related merge requests found
Pipeline #181355 passed
......@@ -34,8 +34,7 @@ from arraycontext import (
FirstAxisIsElementsTag,
PyOpenCLArrayContext)
from arraycontext import ( # noqa: F401
pytest_generate_tests_for_array_contexts,
_acf)
pytest_generate_tests_for_array_contexts)
from arraycontext.pytest import _PytestPyOpenCLArrayContextFactoryWithClass
......@@ -69,6 +68,14 @@ pytest_generate_tests = pytest_generate_tests_for_array_contexts([
_PyOpenCLArrayContextWithHostScalarsForTestsFactory,
])
def _acf():
import pyopencl as cl
context = cl._csc()
queue = cl.CommandQueue(context)
return _PyOpenCLArrayContextForTests(queue, force_device_scalars=True)
# }}}
......
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