diff --git a/examples/from_firedrake.py b/examples/from_firedrake.py index e6e39ea1083dd06afd0aa0c08c2bb5235c93c4a2..2ac23281b62b56d4b2b7f139c6f3da2fb2413065 100644 --- a/examples/from_firedrake.py +++ b/examples/from_firedrake.py @@ -57,7 +57,7 @@ def main(visualize=True): # Make connections cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) fd_connection = build_connection_from_firedrake(actx, fd_fspace) fd_bdy_connection = \ diff --git a/examples/moving-geometry.py b/examples/moving-geometry.py index ee1228b81c3ea13b230d7744d492c276d8d954c9..7f21b5c1a69da721997b31ee4dbc5cf1b09d6528 100644 --- a/examples/moving-geometry.py +++ b/examples/moving-geometry.py @@ -245,7 +245,7 @@ def run(actx, *, if __name__ == "__main__": cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) from pytools import ProcessTimer for _ in range(1): diff --git a/examples/plot-connectivity.py b/examples/plot-connectivity.py index 7d3bbd591e7f3b222c686c7e4b3a67c12898e957..ce27d5db4a21c689619b3d1bba43566e82ab3bdf 100644 --- a/examples/plot-connectivity.py +++ b/examples/plot-connectivity.py @@ -11,7 +11,7 @@ order = 4 def main(): cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) from meshmode.mesh.generation import ( # noqa: F401 generate_icosahedron, diff --git a/examples/simple-dg.py b/examples/simple-dg.py index 26722f1c84a1bf7d9e56e9d8d3ba4ea3a31878e0..51da62f6239a15cc7c730c157fe16bb12335302f 100644 --- a/examples/simple-dg.py +++ b/examples/simple-dg.py @@ -464,7 +464,7 @@ def main(lazy=False): cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx_outer = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx_outer = PyOpenCLArrayContext(queue) if lazy: actx_rhs = PytatoPyOpenCLArrayContext(queue) else: diff --git a/examples/to_firedrake.py b/examples/to_firedrake.py index 8027a8fd72dc0e86f871ac2bfc24dbfa1e475657..08e2e60e3825f5edd797b6f9fc50b813b3841266 100644 --- a/examples/to_firedrake.py +++ b/examples/to_firedrake.py @@ -52,7 +52,7 @@ def main(): cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) nel_1d = 16 from meshmode.mesh.generation import generate_regular_rect_mesh diff --git a/examples/tp-lagrange-stl.py b/examples/tp-lagrange-stl.py index 063efa5d75bba696d96252aed1fe176ca592e32e..e048a5253add7f152cd261e0ea68b175101498da 100644 --- a/examples/tp-lagrange-stl.py +++ b/examples/tp-lagrange-stl.py @@ -18,7 +18,7 @@ from meshmode.mesh import BTAG_ALL, make_mesh def main(): cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) npts1d = 100 # use 300 for actual print rs_coords = np.linspace(-1, 1, npts1d) diff --git a/meshmode/__init__.py b/meshmode/__init__.py index 1ba90f109e08cc51de5b342a5cfaeddee33b8adf..d891e8f73afb3b011f18214631c38b113f00763d 100644 --- a/meshmode/__init__.py +++ b/meshmode/__init__.py @@ -85,4 +85,4 @@ def _acf(): context = cl._csc() queue = cl.CommandQueue(context) - return PyOpenCLArrayContext(queue, force_device_scalars=True) + return PyOpenCLArrayContext(queue) diff --git a/test/test_partition.py b/test/test_partition.py index e57fac57a16c69a5048339509b72c96273338ccc..7b33e7664bba82355306d2f8fb96503c56ba0396 100644 --- a/test/test_partition.py +++ b/test/test_partition.py @@ -408,7 +408,7 @@ def _test_mpi_boundary_swap(dim, order, num_groups): from meshmode.array_context import PyOpenCLArrayContext cl_ctx = cl.create_some_context() queue = cl.CommandQueue(cl_ctx) - actx = PyOpenCLArrayContext(queue, force_device_scalars=True) + actx = PyOpenCLArrayContext(queue) from meshmode.discretization import Discretization vol_discr = Discretization(actx, local_mesh, group_factory)