-
Notifications
You must be signed in to change notification settings - Fork 831
[SM6.10][specs/791] Align LinAlg Matrix Mul with spec #8183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1174,8 +1174,8 @@ def populate_categories_and_models_ExperimentalOps(self): | |
| + "LinAlgMatrixGetCoordinate,LinAlgMatrixGetElement," | ||
| + "LinAlgMatrixSetElement,LinAlgMatrixStoreToDescriptor," | ||
| + "LinAlgMatrixLoadFromMemory,LinAlgMatrixStoreToMemory," | ||
| + "LinAlgMatrixAccumulateToMemory,LinAlgMatrixMulOp," | ||
| + "LinAlgMatrixAccumulate" | ||
| + "LinAlgMatrixAccumulateToMemory,LinAlgMatrixMultiply," | ||
| + "LinAlgMatrixMultiplyAccumulate,LinAlgMatrixAccumulate" | ||
| ): | ||
| i.category = "Linear Algebra Operations" | ||
| i.shader_model = experimental_sm | ||
|
|
@@ -6341,7 +6341,19 @@ def populate_ExperimentalOps(self): | |
| ) | ||
|
|
||
| # Linear Algebra Ops | ||
| op_table.reserve_dxil_op_range("ReservedD", 1) | ||
| add_dxil_op( | ||
| "LinAlgMatrixMultiplyAccumulate", | ||
| "LinAlgMatrixMultiplyAccumulate", | ||
| "Returns the resulting matrix from multiplying A and B and accumulating into C", | ||
| "o,o,o,o", | ||
| "", | ||
| [ | ||
| db_dxil_param(0, "$x0", "", "resulting matrix"), | ||
| db_dxil_param(2, "$x1", "matrixA", "A matrix"), | ||
| db_dxil_param(3, "$x2", "matrixB", "B matrix"), | ||
| db_dxil_param(4, "$x3", "matrixC", "C matrix"), | ||
| ], | ||
| ) | ||
|
|
||
| add_dxil_op( | ||
| "LinAlgFillMatrix", | ||
|
|
@@ -6530,9 +6542,9 @@ def populate_ExperimentalOps(self): | |
| ) | ||
|
|
||
| add_dxil_op( | ||
| "LinAlgMatrixMulOp", | ||
| "LinAlgMatrixMulOp", | ||
| "applies a multiplication op to matrix C using A and B as parameters", | ||
| "LinAlgMatrixMultiply", | ||
| "LinAlgMatrixMultiply", | ||
| "Returns the resulting matrix from multiplying A and B", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one doesn't need db_dxil_params?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It has them just below the diff! The params of this op didn't change, just the name as description
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. haha im just blind! |
||
| "o,o,o", | ||
| "", | ||
| [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is skipping over 1 intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! 1 is the const int opcode which is inserted automatically