hlsf error is solved. HLSF is now full functional available.

This commit is contained in:
Youmu Liu
2025-12-02 19:26:17 +08:00
parent dc39baeac6
commit 38dba88331
+9 -5
View File
@@ -25,6 +25,7 @@
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using StgSharp.HighPerformance.Memory;
using StgSharp.Internal;
using StgSharp.Mathematics.Numeric;
@@ -47,10 +48,12 @@ namespace StgSharp
// TestRender();
// TestHlsf();
HlsfStressTest.Run();
/*
HybridLayerSegregatedFitAllocator hlsf = new HybridLayerSegregatedFitAllocator((nuint)(64 * (ulong)10000 * 10000));
// HlsfStressTest.Run();
/**/
HybridLayerSegregatedFitAllocator hlsf;
unchecked {
hlsf = new((nuint)(64 * (ulong)10000 * 10000));
}
Matrix<float> m = Matrix.FromHlsf<float>(1000, 1000, hlsf);
MatrixCompute.Fill(m, 1.0f);
@@ -64,7 +67,8 @@ namespace StgSharp
for (int j = 0; j < 2; j++)
{
MatrixCompute.Add(n, m, n);
Console.WriteLine($"{i} {j}");
// Console.WriteLine($"{i} {j}");
}
GC.Collect();
}