September 2018
Intermediate to advanced
328 pages
10h 46m
English
Assuming you have already downloaded the code we described at the beginning of the chapter, let's now take a look at what's happening. To start, let's open the TestParallelMetaBenchmarks project and open the main.cs file. This is the file we will be working with for the following code.
First, we need to create some very important variables which will become settings for the optimization layer. We have commented each so that you know what they are for, shown as follows:
// Set this close to 50 and a multiple of the number of processors, e.g. 8.static readonly int NumRuns = 64;// The total dimensions.static readonly int Dim = 5;// The dimension factor.static readonly int DimFactor = 2000;// The total number of times we ...
Read now
Unlock full access