Skip to content

[SM6.10] Implement VectorAccumDescriptor Builtin#8448

Open
V-FEXrt wants to merge 2 commits into
microsoft:mainfrom
V-FEXrt:linalg-vec-accum-to-descriptor
Open

[SM6.10] Implement VectorAccumDescriptor Builtin#8448
V-FEXrt wants to merge 2 commits into
microsoft:mainfrom
V-FEXrt:linalg-vec-accum-to-descriptor

Conversation

@V-FEXrt
Copy link
Copy Markdown
Collaborator

@V-FEXrt V-FEXrt commented May 12, 2026

Implements VectorAccumulateToDescriptor builtin and updates the header implementation.

Fixes #8416

Co-Authored-By: @pow2clk

@@ -33,7 +33,7 @@ target triple = "dxil-ms-dx"
@"\01?SharedArr@@3PAMA" = external addrspace(3) global [64 x float], align 4

define void @mainAS() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These tests updates still need to be moved per #8315

but I'm still kicking that can down the road:)

Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

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

I think it looks good, with just a "Matrix" nit and a question about whether we should have included an alignment parameter.

Comment thread utils/hct/hctdb.py
db_dxil_param(0, "v", "", ""),
db_dxil_param(2, "$o", "vector", "vector to accumulate"),
db_dxil_param(3, "res", "handle", "buffer to accumulate into"),
db_dxil_param(4, "i32", "offset", "starting offset in the buffer"),
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.

I realize the spec proposal didn't include an alignment parameter, but I can't help but wonder if that was a mistake.

Comment on lines +7180 to +7182
// Matrix parameters
Value *MatrixBuffer = CI->getArgOperand(2);
Value *MatrixOffset = CI->getArgOperand(3);
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.

"Matrix parameters"? MatrixBuffer? MatrixOffset? Seems a little copy-pasta to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

[SM6.10] Implement VectorAccumulate Spec

2 participants