From 2580bb02f7a079ab1c0106b5960a21ed1627bca0 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 15 May 2025 03:47:43 +0000 Subject: Add new coopmat2 functions: Reduce and Transpose (#7027) This commit adds three new functions for CoopMat as described in the proposal document, Cooperative matrix 2 proposal spec#12 The new functions are: CoopMat::Transpose CoopMat::ReduceRow CoopMat::ReduceColumn CoopMat::ReduceRowAndColumn CoopMat::Reduce2x2 --- tests/cooperative-matrix/subscript.slang | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/cooperative-matrix/subscript.slang') diff --git a/tests/cooperative-matrix/subscript.slang b/tests/cooperative-matrix/subscript.slang index cfe164f04..0d765b6b3 100644 --- a/tests/cooperative-matrix/subscript.slang +++ b/tests/cooperative-matrix/subscript.slang @@ -9,7 +9,9 @@ //TEST_INPUT:ubuffer(stride=4, count=256):out,name=outputBuffer RWStructuredBuffer outputBuffer; -typealias CoopMatType = CoopMat; +using namespace linalg; + +typealias CoopMatType = CoopMat; [numthreads(32, 1, 1)] void computeMain() @@ -19,5 +21,5 @@ void computeMain() mat[1] = mat[0]+2; mat[2] = mat[1]+3; mat[3] = mat[2]+4; - mat.store(outputBuffer, 0, 16, CoopMatMatrixLayout::RowMajor); + mat.Store(outputBuffer, 0, 16); } -- cgit v1.2.3