37 writes to MaxDegreeOfParallelism
aspire (1)
Projects\ProjectLocator.cs (1)
45
MaxDegreeOfParallelism
= Environment.ProcessorCount
Microsoft.Build (2)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
35
private static readonly ParallelOptions s_parallelOptions = new() {
MaxDegreeOfParallelism
= Environment.ProcessorCount };
FileMatcher.cs (1)
1023
new ParallelOptions {
MaxDegreeOfParallelism
= dop },
Microsoft.Build.Tasks.Core (1)
FileMatcher.cs (1)
1023
new ParallelOptions {
MaxDegreeOfParallelism
= dop },
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
1023
new ParallelOptions {
MaxDegreeOfParallelism
= dop },
Microsoft.CodeAnalysis.UnitTests (1)
Text\StringTextDecodingTests.cs (1)
220
var parallelOptions = new ParallelOptions {
MaxDegreeOfParallelism
= Environment.ProcessorCount * 2 };
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
236
parallelOptions.
MaxDegreeOfParallelism
= _repackParallelism;
Microsoft.ML.Ensemble (1)
Trainer\EnsembleTrainerBase.cs (1)
148
new ParallelOptions() {
MaxDegreeOfParallelism
= Args.TrainParallel ? -1 : 1 },
Microsoft.ML.FastTree (22)
Dataset\Dataset.cs (2)
267
Parallel.For(0, NumFlocks, new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads },
317
Parallel.For(0, NumFlocks, new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads },
GamClassification.cs (1)
134
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Training\Applications\ObjectiveFunction.cs (1)
79
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Training\DcgCalculator.cs (4)
167
new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads },
268
new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads },
383
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
521
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Training\DocumentPartitioning.cs (2)
97
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
129
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Training\ScoreTracker.cs (3)
105
Parallel.For(0, tree.NumLeaves, new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, (leaf) =>
194
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
203
Parallel.For(0, tree.NumLeaves, new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads },
Training\Test.cs (3)
565
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
640
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
698
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Training\WinLossCalculator.cs (1)
63
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
TreeEnsemble\InternalRegressionTree.cs (3)
1395
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
1420
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
1443
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
TreeEnsemble\InternalTreeEnsemble.cs (1)
308
Parallel.Invoke(new ParallelOptions {
MaxDegreeOfParallelism
= BlockingThreadPool.NumThreads }, actions);
Utils\ThreadTaskManager.cs (1)
59
Parallel.Invoke(new ParallelOptions() {
MaxDegreeOfParallelism
= _num }, _actions);
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
1396
MaxDegreeOfParallelism
= numThreads
1743
MaxDegreeOfParallelism
= numThreads
Microsoft.ML.StandardTrainers (2)
Standard\SdcaBinary.cs (2)
364
var pOptions = new ParallelOptions {
MaxDegreeOfParallelism
= numThreads };
2049
var pOptions = new ParallelOptions {
MaxDegreeOfParallelism
= numThreads };
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (1)
195
_parallelOptions = new ParallelOptions {
MaxDegreeOfParallelism
= options.NumThreads ?? -1 };
SynthConfigRunner.cs (1)
37
_parallelOptions = new ParallelOptions {
MaxDegreeOfParallelism
= options.NumThreads ?? -1 };
Microsoft.ML.Sweeper.Tests (1)
TestSweeper.cs (1)
325
options.
MaxDegreeOfParallelism
= 4;
20 references to MaxDegreeOfParallelism
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;
System.Threading.Tasks.Parallel (9)
System\Threading\Tasks\Parallel.cs (9)
39
/// This constructor initializes the instance with default values. <see cref="
MaxDegreeOfParallelism
"/>
70
/// The <see cref="
MaxDegreeOfParallelism
"/> limits the number of concurrent operations run by <see
73
/// cref="
MaxDegreeOfParallelism
"/> is -1, then there is no limit placed on the number of concurrently
77
/// The exception that is thrown when this <see cref="
MaxDegreeOfParallelism
"/> is set to 0 or some
85
ArgumentOutOfRangeException.ThrowIfZero(value, nameof(
MaxDegreeOfParallelism
));
86
ArgumentOutOfRangeException.ThrowIfLessThan(value, -1, nameof(
MaxDegreeOfParallelism
));
112
int rval =
MaxDegreeOfParallelism
;
249
(parallelOptions.
MaxDegreeOfParallelism
!= -1 && parallelOptions.
MaxDegreeOfParallelism
< actionsCopy.Length)
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
95
int rval = options.
MaxDegreeOfParallelism
;