Skip to content

Share code to Add VectorAccumulate and InterpretedVector Multiply#8435

Open
pow2clk wants to merge 3 commits intomicrosoft:mainfrom
pow2clk:vectoraccumulate
Open

Share code to Add VectorAccumulate and InterpretedVector Multiply#8435
pow2clk wants to merge 3 commits intomicrosoft:mainfrom
pow2clk:vectoraccumulate

Conversation

@pow2clk
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk commented May 8, 2026

Sharing the code that adds VectorAccumulate and the Mat/Vec Multiply overload that takes an interpreted vector. A test is included, but it is likely not in the form required.

These commits can be accepted as-is and enhanced later or the code taken and modified before submission. The test has prerequisites that force the commits to be grouped like this, but could be teased apart and probably should be.

pow2clk added 3 commits May 8, 2026 13:29
Consists of little more than adding the dxil op, builtin, and trivial header call. I even reused the lowering function from coopvec.
@pow2clk
Copy link
Copy Markdown
Collaborator Author

pow2clk commented May 8, 2026

@V-FEXrt for visibility

Comment thread utils/hct/hctdb.py

op_table.reserve_dxil_op_range("ReservedE", 2)
add_dxil_op(
"LinAlgVectorAccumulateToDescriptor",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

per the spec, this should be VectorAccumulateToDescriptor (op is named @dx.op.vectorAccumulateToDescriptor) though I do find that to be a strange break from the rest of the operations.

It either needs to be changed here or in the spec

@V-FEXrt
Copy link
Copy Markdown
Collaborator

V-FEXrt commented May 8, 2026

Thanks for putting this up! Looks pretty much exactly as I'd expect it would.

Just to confirm, would you like us to take over the PR to implement the full test suite or would you like me to give you pointers so you can write the rest of the tests yourself?

@V-FEXrt
Copy link
Copy Markdown
Collaborator

V-FEXrt commented May 8, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants