Skip to content

Move target-specific code out of flydsl.expr #641

@sjfeng1999

Description

@sjfeng1999

direct files under expr/ are supposed to be the target-neutral DSL surface, but two files break that:

  • expr/buffer_ops.py — AMD buffer-resource descriptor packing, buffer_load/buffer_store, Pure AMDGPU.
  • expr/rocdl.py — MFMA/WMMA wrappers, ROCDL intrinsic shims

Users importing from flydsl.expr.* can't tell which symbols are portable and which silently pin them to gfx9xx. A future backend has to either fork the file or carry dead AMD code.

Move buffer_ops.py and the standalone rocdl.py under a target-specific package (merge into the existing expr/rocdl/);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions