diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-08-21 20:14:02 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-08-21 20:14:02 +0200 |
commit | da28cc5e9315729bc7f9078f1ae43ac68740ec87 (patch) | |
tree | fc944bfee014243b0b07dcb869b5780316bb5006 /src/tuning | |
parent | e5eb6b1d3a66358093cb40f0fad51ecdc4654771 (diff) |
Minor updates after merging in the PSO addition to the tuners
Diffstat (limited to 'src/tuning')
-rw-r--r-- | src/tuning/kernels/xgemm.cpp | 8 | ||||
-rw-r--r-- | src/tuning/kernels/xgemm_direct.cpp | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/tuning/kernels/xgemm.cpp b/src/tuning/kernels/xgemm.cpp index 063a3bae..02118aff 100644 --- a/src/tuning/kernels/xgemm.cpp +++ b/src/tuning/kernels/xgemm.cpp @@ -19,7 +19,6 @@ #include "utilities/utilities.hpp" #include "tuning/tuning.hpp" - namespace clblast { // ================================================================================================= @@ -29,8 +28,7 @@ class TuneXgemm { public: // The representative kernel and the source code - // static std::string KernelFamily() { return (V==1) ? "xgemm_1" : "xgemm_2"; } - static std::string KernelFamily() { switch(V){ case 1: return "xgemm_1"; case 2: return "xgemm_2"; }} + static std::string KernelFamily() { return (V==1) ? "xgemm_1" : "xgemm_2"; } static std::string KernelName() { return "Xgemm"; } static std::string GetSources() { return @@ -182,8 +180,8 @@ class TuneXgemm { // Returns which Heuristic to run static size_t GetHeuristic(const Arguments<T> &args){ - // Use full-search to explore all parameter combinations or random-search to search only a part of - // the parameter values. The fraction is set as a command-line argument. + // Use full-search to explore all parameter combinations or another strategy to search only a + // part of the parameter values. The fraction is set as a command-line argument. if (args.fraction == 1.0 || args.fraction == 0.0) { return static_cast<size_t> (cltune::SearchMethod::FullSearch); } diff --git a/src/tuning/kernels/xgemm_direct.cpp b/src/tuning/kernels/xgemm_direct.cpp index 3de19496..90e8262b 100644 --- a/src/tuning/kernels/xgemm_direct.cpp +++ b/src/tuning/kernels/xgemm_direct.cpp @@ -177,8 +177,8 @@ class TuneXgemmDirect { // Returns which Heuristic to run static size_t GetHeuristic(const Arguments<T> &args){ - // Use full-search to explore all parameter combinations or random-search to search only a part of - // the parameter values. The fraction is set as a command-line argument. + // Use full-search to explore all parameter combinations or another strategy to search only a + // part of the parameter values. The fraction is set as a command-line argument. if (args.fraction == 1.0 || args.fraction == 0.0) { return static_cast<size_t> (cltune::SearchMethod::FullSearch); } |