can create and retire matrix thread by numa infomation

This commit is contained in:
Youmu Liu
2026-04-15 18:08:08 +08:00
parent fdf11c729f
commit 2203a46eb7
11 changed files with 160 additions and 123 deletions
@@ -76,7 +76,14 @@ namespace StgSharp.Mathematics.Numeric
IModuleInitializeProfile profile
)
{
MatrixParallel.Init();
try
{
MatrixParallel.Init();
}
finally
{
GC.Collect();
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]