Skip to content

[block] sync(): fix unsupported-arch error message#700

Open
hughperkins wants to merge 1 commit into
mainfrom
hp/block-sync-error-msg
Open

[block] sync(): fix unsupported-arch error message#700
hughperkins wants to merge 1 commit into
mainfrom
hp/block-sync-error-msg

Conversation

@hughperkins
Copy link
Copy Markdown
Collaborator

Summary

block.sync() was raising qd.block.shared_array is not supported for arch ... when the arch wasn't CUDA / AMDGPU / Vulkan / Metal -- a copy-paste leftover from SharedArray. Switch to qd.block.sync so the message matches the function and follows the convention used by every other primitive in block.py (sync_all_nonzero, mem_fence, thread_idx, global_thread_idx, ...).

Closes #646.

Test plan

  • Code-only diff in an unreachable raise ValueError path; no behaviour change on supported archs.

Made with Cursor

…', should say 'sync')

Closes #646.

The fall-through error in block.sync() was raising 'qd.block.shared_array is not supported for arch ...', a clear copy-paste leftover from SharedArray. Switch to 'qd.block.sync' to match the per-op convention used by every other primitive in this file (sync_all_nonzero, mem_fence, thread_idx, etc.).
@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

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.

[Bug] sync() error message incorrectly says shared_array

1 participant