summaryrefslogtreecommitdiff
path: root/src/tuning/kernels/xaxpy.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/xaxpy.cpp
parent8131e68664e02c8a1bc5a0f5598294fd3bc5b974 (diff)
Code refactoring
Diffstat (limited to 'src/tuning/kernels/xaxpy.cpp')
-rw-r--r--src/tuning/kernels/xaxpy.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tuning/kernels/xaxpy.cpp b/src/tuning/kernels/xaxpy.cpp
index a13e54f2..a8a9457d 100644
--- a/src/tuning/kernels/xaxpy.cpp
+++ b/src/tuning/kernels/xaxpy.cpp
@@ -53,7 +53,14 @@ class TuneXaxpy {
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.n; }
static size_t GetSizeY(const Arguments<T> &args) { return args.n; }
@@ -102,6 +109,11 @@ class TuneXaxpy {
return 3 * 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
+ }
};
// =================================================================================================