summaryrefslogtreecommitdiff
path: root/src/tuning
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-08-21 20:14:02 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-08-21 20:14:02 +0200
commitda28cc5e9315729bc7f9078f1ae43ac68740ec87 (patch)
treefc944bfee014243b0b07dcb869b5780316bb5006 /src/tuning
parente5eb6b1d3a66358093cb40f0fad51ecdc4654771 (diff)
Minor updates after merging in the PSO addition to the tuners
Diffstat (limited to 'src/tuning')
-rw-r--r--src/tuning/kernels/xgemm.cpp8
-rw-r--r--src/tuning/kernels/xgemm_direct.cpp4
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);
}