Skip to content

Define explicit atomic memory operations and ordering #920

Open

Description

@LunaStev

Motivation

No Wave atomic load/store/RMW or memory-order API was found in inspected compiler/std sources. Rust atomics used by compiler tooling do not provide Wave-language atomics.

Scope

Decide widths, alignment, ordering, target support and unsupported diagnostics. Avoid hidden lock-based fallbacks unless explicitly selected. Separate this design from volatile device access.

Completion criteria

  • Approve operation set, widths/alignment and the memory-order contract.
  • Specify target capability reporting and whether any explicit fallback is permitted.
  • Validate generated ordering/RMW operations, concurrency behavior and invalid-order diagnostics.

Design required. Please mention @LunaStev to discuss the design before starting implementation.

Activity

  1. added
    enhancementA request for a new feature or improvement.
    discussionIssues that require a technical or community discussion.
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionIssues that require a technical or community discussion.enhancementA request for a new feature or improvement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions