@@ -128,7 +128,7 @@ class PyOpenCLArrayContext(_PyOpenCLArrayContextBase):
128
128
def __init__ (self , queue : "pyopencl.CommandQueue" ,
129
129
allocator : Optional ["pyopencl.tools.AllocatorBase" ] = None ,
130
130
wait_event_queue_length : Optional [int ] = None ,
131
- force_device_scalars : bool = False ) -> None :
131
+ force_device_scalars : bool = True ) -> None :
132
132
133
133
if allocator is None :
134
134
warn ("No memory allocator specified, please pass one. "
@@ -446,7 +446,7 @@ def __init__(self,
446
446
queue : "pyopencl.CommandQueue" ,
447
447
* , allocator : Optional ["pyopencl.tools.AllocatorBase" ] = None ,
448
448
wait_event_queue_length : Optional [int ] = None ,
449
- force_device_scalars : bool = False ) -> None :
449
+ force_device_scalars : bool = True ) -> None :
450
450
"""
451
451
See :class:`arraycontext.impl.pyopencl.PyOpenCLArrayContext` for most
452
452
arguments.
@@ -535,13 +535,6 @@ def __call__(self):
535
535
return self .actx_class (queue , allocator = alloc )
536
536
537
537
538
- # deprecated
539
- class PytestPyOpenCLArrayContextFactoryWithHostScalars (
540
- _PytestPyOpenCLArrayContextFactoryWithClass ):
541
- actx_class = PyOpenCLArrayContext
542
- force_device_scalars = False
543
-
544
-
545
538
register_pytest_array_context_factory ("grudge.pyopencl" ,
546
539
PytestPyOpenCLArrayContextFactory )
547
540
register_pytest_array_context_factory ("grudge.pytato-pyopencl" ,
0 commit comments