Daily update on 20251124-010227 by Nitload Youmu. Additional Message : error in hlsf
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
// -----------------------------------------------------------------------
|
||||
// file="Program"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload
|
||||
// Copyright (c) Nitload. All rights reserved.
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -67,25 +67,27 @@ namespace StgSharp
|
||||
|
||||
|
||||
// 原有的矩阵测试代码
|
||||
HybridLayerSegregatedFitAllocator hlsf = new HybridLayerSegregatedFitAllocator(64 * 4000 * 4000);
|
||||
HybridLayerSegregatedFitAllocator hlsf = new HybridLayerSegregatedFitAllocator((nuint)(64 * (ulong)10000 * 10000));
|
||||
|
||||
Matrix<float> m = Matrix.FromHlsf<float>(2000, 2000, hlsf);
|
||||
m.Fill(1.0f);
|
||||
Matrix<float> m = Matrix.FromHlsf<float>(1000, 1000, hlsf);
|
||||
MatrixCompute.Fill(m, 1.0f);
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
Matrix<float> n = m.Add(m);
|
||||
Matrix<float> n = Matrix.FromHlsf<float>(1000, 1000, hlsf);
|
||||
MatrixCompute.Fill(n, 0.0f);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
n = n.Add(m);
|
||||
MatrixCompute.Add(n, m, n);
|
||||
Console.WriteLine($"{i} {j}");
|
||||
}
|
||||
GC.Collect();
|
||||
}
|
||||
n = n.Mul(12);
|
||||
|
||||
// MatrixCompute.Mul(n, 12, n);
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
for (int j = 0; j < 20; j++) {
|
||||
|
||||
Reference in New Issue
Block a user