summaryrefslogtreecommitdiff
path: root/src/tuning/kernels/copy_pad.cpp
diff options
context:
space:
mode:
authormcian <mcian86@gmail.com>2017-08-21 14:09:11 +0200
committermcian <mcian86@gmail.com>2017-08-21 14:09:11 +0200
commitdfd332524ab0e66a04d803bb075787e35cd2db1a (patch)
tree98d826500b435c2cb5313bc5348cb581fe716e63 /src/tuning/kernels/copy_pad.cpp
parent4adee608843b138f2edf15fbefdb61610edecb51 (diff)
Remove multistrategy and related functions
Diffstat (limited to 'src/tuning/kernels/copy_pad.cpp')
-rw-r--r--src/tuning/kernels/copy_pad.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tuning/kernels/copy_pad.cpp b/src/tuning/kernels/copy_pad.cpp
index c487aaf5..23f52d75 100644
--- a/src/tuning/kernels/copy_pad.cpp
+++ b/src/tuning/kernels/copy_pad.cpp
@@ -49,12 +49,11 @@ class TunePad {
static size_t DefaultBatchCount() { return 1; } // N/A for this kernel
static double DefaultFraction() { return 1.0; } // N/A for this kernel
static size_t DefaultNumRuns() { return 10; } // run every kernel this many times for averaging
- static size_t DefaultNumSearchStragegy() { return 1; } // N/A for this kernel
static size_t DefaultSwarmSizePSO() { return 8; } // N/A for this kernel
static double DefaultInfluenceGlobalPSO(){ return 0.1; }// N/A for this kernel
static double DefaultInfluenceLocalPSO(){ return 0.3; }// N/A for this kernel
static double DefaultInfluenceRandomPSO(){ return 0.6; }// N/A for this kernel
- static size_t DefaultHeuristic(){ return size_t{0};} // Full Search
+ static size_t DefaultHeuristic(){ return static_cast<size_t> (cltune::SearchMethod::FullSearch);}
static double DefaultMaxTempAnn(){ return 1.0;}// N/A for this kernel
// Describes how to obtain the sizes of the buffers
@@ -116,8 +115,8 @@ class TunePad {
static std::string PerformanceUnit() { return "GB/s"; }
// Returns which Heuristic to run
- static size_t GetCurrentHeuristic(const Arguments<T> &args){
- return size_t{0}; // Full Search
+ static size_t GetHeuristic(const Arguments<T> &args){
+ return static_cast<size_t> (cltune::SearchMethod::FullSearch);
}
};