diff options
Diffstat (limited to 'tests/cooperative-matrix/load-store-arbitrary-array-vec.slang')
| -rw-r--r-- | tests/cooperative-matrix/load-store-arbitrary-array-vec.slang | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/cooperative-matrix/load-store-arbitrary-array-vec.slang b/tests/cooperative-matrix/load-store-arbitrary-array-vec.slang index 51af16ada..d34494fd8 100644 --- a/tests/cooperative-matrix/load-store-arbitrary-array-vec.slang +++ b/tests/cooperative-matrix/load-store-arbitrary-array-vec.slang @@ -23,7 +23,9 @@ RWByteAddressBuffer input; //TEST_INPUT:ubuffer(stride=4, count=256):out,name=outputBuffer RWStructuredBuffer<uint32_t> outputBuffer; -typealias CoopMatType = CoopMat<uint32_t, CoopMatScope::Subgroup, 16, 16, CoopMatMatrixUse::MatrixAccumulator>; +using namespace linalg; + +typealias CoopMatType = CoopMat<uint32_t, MemoryScope.Subgroup, 16, 16, CoopMatMatrixUse.MatrixAccumulator>; groupshared float3[128] tempShared; @@ -31,11 +33,9 @@ groupshared float3[128] tempShared; void computeMain() { let stride = 16; - let matrixLayout = CoopMatMatrixLayout::RowMajor; - - let mat = coopMatLoad<uint32_t, CoopMatScope::Subgroup, 16, 16, CoopMatMatrixUse::MatrixAccumulator>(input, 0, stride, matrixLayout); - mat.storeAny(tempShared, 0, stride, matrixLayout); + let mat = coopMatLoad<uint32_t, MemoryScope.Subgroup, 16, 16, CoopMatMatrixUse.MatrixAccumulator, CoopMatMatrixLayout.RowMajor>(input, 0, stride); + mat.Store<CoopMatMatrixLayout.RowMajor>(tempShared, 0, stride); - let result = CoopMatType.loadAny(tempShared, 0, stride, matrixLayout); - result.store(outputBuffer, 0, stride, matrixLayout); + let result = CoopMatType.Load<CoopMatMatrixLayout.RowMajor>(tempShared, 0, stride); + result.Store<CoopMatMatrixLayout.RowMajor>(outputBuffer, 0, stride); } |
