protected override NiceHashProcess _Start() { NiceHashProcess P = base._Start(); var AffinityMask = MiningSetup.MiningPairs[0].Device.AffinityMask; if (AffinityMask != 0 && P != null) { CpuID.AdjustAffinity(P.Id, AffinityMask); } return(P); }
protected override Process BenchmarkStartProcess(string CommandLine) { Process BenchmarkHandle = base.BenchmarkStartProcess(CommandLine); var AffinityMask = MiningSetup.MiningPairs[0].Device.AffinityMask; if (AffinityMask != 0 && BenchmarkHandle != null) { CpuID.AdjustAffinity(BenchmarkHandle.Id, AffinityMask); } return(BenchmarkHandle); }
protected override NiceHashProcess _Start(IReadOnlyDictionary <string, string> envVariables = null) { var p = base._Start(); var affinityMask = MiningSetup.MiningPairs[0].Device.AffinityMask; if (affinityMask != 0 && p != null) { CpuID.AdjustAffinity(p.Id, affinityMask); } return(p); }
protected override NiceHashProcess _Start() { var p = base._Start(); var affinityMask = MiningSetup.MiningPairs[0].Device.AffinityMask; if (affinityMask != 0 && p != null) { CpuID.AdjustAffinity(p.Id, affinityMask); } return(p); }
// benchmark stuff protected override Process BenchmarkStartProcess(string commandLine) { var benchmarkHandle = base.BenchmarkStartProcess(commandLine); if (CpuSetup.IsInit && benchmarkHandle != null) { var affinityMask = CpuSetup.MiningPairs[0].Device.AffinityMask; if (affinityMask != 0) { CpuID.AdjustAffinity(benchmarkHandle.Id, affinityMask); } } return(benchmarkHandle); }
// CPU aff set from NHM protected override NiceHashProcess _Start() { var P = base._Start(); if (CpuSetup.IsInit && P != null) { var affinityMask = CpuSetup.MiningPairs[0].Device.AffinityMask; if (affinityMask != 0) { CpuID.AdjustAffinity(P.Id, affinityMask); } } return(P); }
// CPU aff set from NHM protected override NiceHashProcess _Start(IReadOnlyDictionary <string, string> envVariables = null) { var P = base._Start(); if (CpuSetup.IsInit && P != null) { var affinityMask = CpuSetup.MiningPairs[0].Device.AffinityMask; if (affinityMask != 0) { CpuID.AdjustAffinity(P.Id, affinityMask); } } return(P); }