Skip to content

[mlir][dxsa] Add dcl_thread_group instruction#121

Open
tagolog wants to merge 1 commit into
access-softek:dxsa-mlirfrom
tagolog:dxsa-mlir-dcl_thread_group
Open

[mlir][dxsa] Add dcl_thread_group instruction#121
tagolog wants to merge 1 commit into
access-softek:dxsa-mlirfrom
tagolog:dxsa-mlir-dcl_thread_group

Conversation

@tagolog
Copy link
Copy Markdown

@tagolog tagolog commented May 1, 2026

Example:
dxsa.dcl_thread_group<x = 1, y = 1, z = 1>

@tagolog tagolog requested review from asavonic and asl May 1, 2026 03:44
Comment thread mlir/include/mlir/Dialect/DXSA/IR/DXSAOps.td Outdated
Comment thread mlir/lib/Dialect/DXSA/IR/DXSA.cpp Outdated
//===----------------------------------------------------------------------===//

LogicalResult DclThreadGroup::verify() {
auto total = uint64_t(getX()) * uint64_t(getY()) * uint64_t(getZ());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need cast here? individual operand checks enforces ranges, and 64 * 1024 * 1024 does not overflow 32-bit type.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we still cast to int64_t in DclThreadGroup::verify.

Comment thread mlir/lib/Target/DXSA/BinaryParser.cpp Outdated
Comment thread mlir/lib/Target/DXSA/BinaryParser.cpp Outdated
@tagolog tagolog force-pushed the dxsa-mlir-dcl_thread_group branch from a89b52d to d02c638 Compare May 5, 2026 23:52
Comment thread mlir/include/mlir/Dialect/DXSA/IR/DXSAOps.td Outdated
@tagolog tagolog marked this pull request as draft May 14, 2026 01:57
Example:
  dxsa.dcl_thread_group<x = 1, y = 1, z = 1>

Signed-off-by: Vladimir Shiryaev <tagolog@users.noreply.github.com>
@tagolog tagolog force-pushed the dxsa-mlir-dcl_thread_group branch from d02c638 to 3285a60 Compare May 25, 2026 06:47
@tagolog tagolog requested a review from asl May 25, 2026 06:50
@tagolog tagolog marked this pull request as ready for review June 1, 2026 19:48
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.

3 participants