diff options
author | mcian <mcian86@gmail.com> | 2017-07-23 14:48:13 +0200 |
---|---|---|
committer | mcian <mcian86@gmail.com> | 2017-07-23 14:48:13 +0200 |
commit | 473e81471895b35dcec5cb82e6beba134c544006 (patch) | |
tree | e4ff6df062b45644bc0ca8c0fb7640864128ad2f /src/tuning/kernels/copy_pad.cpp | |
parent | 8131e68664e02c8a1bc5a0f5598294fd3bc5b974 (diff) |
Code refactoring
Diffstat (limited to 'src/tuning/kernels/copy_pad.cpp')
-rw-r--r-- | src/tuning/kernels/copy_pad.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tuning/kernels/copy_pad.cpp b/src/tuning/kernels/copy_pad.cpp index 0e157364..c487aaf5 100644 --- a/src/tuning/kernels/copy_pad.cpp +++ b/src/tuning/kernels/copy_pad.cpp @@ -49,7 +49,14 @@ 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 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> &) { return 1; } // N/A for this kernel static size_t GetSizeY(const Arguments<T> &) { return 1; } // N/A for this kernel @@ -107,6 +114,11 @@ class TunePad { return 2 * 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 + } }; // ================================================================================================= |