diff options
Diffstat (limited to 'src/tuning/kernels/xdot.cpp')
-rw-r--r-- | src/tuning/kernels/xdot.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tuning/kernels/xdot.cpp b/src/tuning/kernels/xdot.cpp index b85c8521..f70fafb3 100644 --- a/src/tuning/kernels/xdot.cpp +++ b/src/tuning/kernels/xdot.cpp @@ -49,7 +49,14 @@ class TuneXdot { 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; } @@ -108,6 +115,11 @@ class TuneXdot { return (V==1) ? (2*args.n + 1) * GetBytes(args.precision) : 1 * GetBytes(args.precision); } static std::string PerformanceUnit() { return (V==1) ? "GB/s" : "N/A"; } + + // Returns which Heuristic to run + static size_t GetCurrentHeuristic(const Arguments<T> &args){ + return size_t{0}; + } }; // ================================================================================================= |