can create and retire matrix thread by numa infomation
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
using StgSharp.HighPerformance.Memory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -36,13 +37,26 @@ namespace StgSharp.Mathematics.Numeric
|
||||
public static unsafe partial class MatrixParallel
|
||||
{
|
||||
|
||||
private static L4[] _numaBuffer;
|
||||
private static NumaMeasurement[] _numaMeasurements;
|
||||
|
||||
private static int[] _numaPayload;
|
||||
private static MatrixParallelThread[][] _numaThreads;
|
||||
private static MatrixParallelThread[] _threads;
|
||||
|
||||
private static void UpdateThreadPayload()
|
||||
{
|
||||
for (int i = 0; i < _numaPayload.Length; i++) { }
|
||||
}
|
||||
|
||||
private struct NumaMeasurement
|
||||
{
|
||||
|
||||
public uint ActivePredictors;
|
||||
public uint ActiveThreadCount;
|
||||
public ulong ActiveTasks;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user