better kernel fma

This commit is contained in:
Youmu Liu
2026-01-07 18:06:36 +08:00
parent 3d488abd2e
commit 88af8d8957
11 changed files with 347 additions and 149 deletions
+7 -13
View File
@@ -66,19 +66,13 @@ namespace StgSharp
hlsf);
MatrixCompute.Fill(p, 0.0f);
/*
for (int i = 0; i < 10; i++)
/**/
for (int j = 0; j < 20; j++)
{
MatrixCompute.Add(n, m, n);
for (int j = 0; j < 5; j++)
{
for (int k = 0; k < 5; k++) {
Console.Write($"{n[j, k]:0.0E+00} \t");
}
Console.WriteLine();
for (int k = 0; k < 10; k++) {
Console.Write($"{m[j, k]:0.0E+00}\t");
}
Console.WriteLine($"{i}");
GC.Collect();
Console.WriteLine();
}
/**/
@@ -86,8 +80,8 @@ namespace StgSharp
MatrixCompute.Mul(n, m, p);
for (int i = 0; i < 20; i++)
{
for (int j = 0; j < 20; j++) {
Console.Write($"{p[i, j]:0.0E+00} \t");
for (int j = 0; j < 10; j++) {
Console.Write($"{p[i, j]:0.0E+00}\t");
}
Console.WriteLine();
}