summaryrefslogtreecommitdiff
path: root/src/tuning/kernels/xger.cpp
diff options
context:
space:
mode:
authormcian <mcian86@gmail.com>2017-07-23 14:48:13 +0200
committermcian <mcian86@gmail.com>2017-07-23 14:48:13 +0200
commit473e81471895b35dcec5cb82e6beba134c544006 (patch)
treee4ff6df062b45644bc0ca8c0fb7640864128ad2f /src/tuning/kernels/xger.cpp
parent8131e68664e02c8a1bc5a0f5598294fd3bc5b974 (diff)
Code refactoring
Diffstat (limited to 'src/tuning/kernels/xger.cpp')
-rw-r--r--src/tuning/kernels/xger.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tuning/kernels/xger.cpp b/src/tuning/kernels/xger.cpp
index c82a29b6..09c5ba3f 100644
--- a/src/tuning/kernels/xger.cpp
+++ b/src/tuning/kernels/xger.cpp
@@ -49,7 +49,14 @@ class TuneXger {
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 double DefaultMaxTempAnn(){ return 1.0;}// N/A for this kernel
+
// Describes how to obtain the sizes of the buffers
static size_t GetSizeX(const Arguments<T> &args) { return args.m; }
static size_t GetSizeY(const Arguments<T> &args) { return args.n; }
@@ -107,6 +114,11 @@ class TuneXger {
return (2*args.m*args.n + args.m + args.n) * GetBytes(args.precision);
}
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
+ }
};
// =================================================================================================