Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable force_device_scalars by default #358

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

majosm
Copy link
Collaborator

@majosm majosm commented Aug 16, 2024

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 majosm marked this pull request as ready for review August 16, 2024 15:48
@majosm majosm requested a review from inducer August 16, 2024 15:48
@majosm
Copy link
Collaborator Author

majosm commented Aug 16, 2024

Ruff errors appear to be unrelated.

@inducer inducer force-pushed the force-device-scalars-by-default branch from 8b33f2d to edf580b Compare August 19, 2024 20:17
@inducer inducer enabled auto-merge (rebase) August 19, 2024 20:17
@inducer
Copy link
Owner

inducer commented Aug 19, 2024

Thx!

@inducer inducer merged commit 1bb9a14 into inducer:main Aug 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants