... | ... | @@ -17,3 +17,5 @@ autoTuning->addParameter(&chiSq->numBlocks_m, minBlocks, maxBlocs, step, "NumBlo |
|
|
autoTuning->hillClimbing(restarts);
|
|
|
```
|
|
|
The example of auto-tuning test setup is shown in code example above. The auto-tuning framework executes the function varying the parameters in order to find the parameter set that gives the best (fastest) execution time. The developer is responsible of providing the function for the auto-tuning with the necessary parameters, parameters that should be auto-tuned and there ranges, and the search method that should be used. After the benchmark tests are done a small database is created that stores the launch configurations for each kernel on the tested devices. This database is used by DKS at run-time to determine the kernel launch parameters. If the auto-tuning tests are not performed the DKS uses default parameters, that are set by the developer.
|
|
|
|
|
|
 |