From 93510c1a15e22919cce309e0f2b610d6ba4e0465 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Tue, 1 Oct 2024 20:54:00 +0300 Subject: [PATCH] remove explicit force_device_scalars --- examples/curve-pot.py | 2 +- examples/expansion-toys.py | 2 +- examples/sym-exp-complexity.py | 2 +- sumpy/array_context.py | 2 +- test/test_fmm.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/curve-pot.py b/examples/curve-pot.py index c6402352..c1c11366 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 c7052fe3..b61aafcf 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 9dfbfb44..c0d0c816 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 eddfb2cc..cc54048a 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 525046e0..d85eafe6 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 -- GitLab