diff --git a/examples/curve-pot.py b/examples/curve-pot.py index c6402352ff940af14d6861714035eae02edfbaed..c1c11366224ce7f05eb937469852b843ab556cf0 100644 --- a/examples/curve-pot.py +++ b/examples/curve-pot.py @@ -63,7 +63,7 @@ def draw_pot_figure(aspect_ratio, from sumpy.array_context import PyOpenCLArrayContext ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) # {{{ make plot targets diff --git a/examples/expansion-toys.py b/examples/expansion-toys.py index c7052fe362168fe2824d4eafd17ef0d4d5721855..b61aafcf5d3dcf0c70de5c02aab2a48a8a74b76a 100644 --- a/examples/expansion-toys.py +++ b/examples/expansion-toys.py @@ -18,7 +18,7 @@ def main(): from sumpy.array_context import PyOpenCLArrayContext ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) tctx = t.ToyContext( actx.context, diff --git a/examples/sym-exp-complexity.py b/examples/sym-exp-complexity.py index 9dfbfb442e8ccc8e38a88e2cf4c020df752fa5c9..c0d0c816387f6e57ccb0e708fc7a0b4c40bcc59e 100644 --- a/examples/sym-exp-complexity.py +++ b/examples/sym-exp-complexity.py @@ -24,7 +24,7 @@ def find_flops(): from sumpy.array_context import PyOpenCLArrayContext ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) if 0: knl = LaplaceKernel(2) diff --git a/sumpy/array_context.py b/sumpy/array_context.py index eddfb2cc805ab9a69018a183b6038987c23c8603..cc54048a8ac2a77ada093cc1b6815d1b7fd85a5e 100644 --- a/sumpy/array_context.py +++ b/sumpy/array_context.py @@ -64,7 +64,7 @@ def _acf(): ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) - return PyOpenCLArrayContext(queue, force_device_scalars=True) + return PyOpenCLArrayContext(queue) class PytestPyOpenCLArrayContextFactory( diff --git a/test/test_fmm.py b/test/test_fmm.py index 525046e0c3f7d9a42b0084b378600b8766470bec..d85eafe60d1f79630f5cbfb3c25f92fb96577a88 100644 --- a/test/test_fmm.py +++ b/test/test_fmm.py @@ -450,7 +450,7 @@ def test_sumpy_fmm_timing_data_collection(ctx_factory, use_fft, visualize=False) ctx = ctx_factory() queue = cl.CommandQueue(ctx, properties=cl.command_queue_properties.PROFILING_ENABLE) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) nsources = 500 dtype = np.float64