inducer / grudge

Grand Unified Discontinuous Galerkin Environment? A DG code in training.
14 stars 17 forks source link

Enable `force_device_scalars` by default #358

Closed majosm closed 2 months ago

majosm commented 2 months ago

Instances of PyOpenCLArrayContext that don't explicitly pass force_device_scalars=True will have it set to False. This is deprecated, and will be an error once inducer/arraycontext#278 goes in.

After the arraycontext PR gets merged I'll submit a follow-up here that makes the interface for force_device_scalars match (i.e., allow it to be None), so that it will only emit deprecation warnings when explicitly specified.

majosm commented 2 months ago

Ruff errors appear to be unrelated.

inducer commented 2 months ago

Thx!