summaryrefslogtreecommitdiff
path: root/src/tuning/kernels/xdot.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-03-22 21:01:02 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-03-22 21:01:02 +0100
commit9fb6550dd02c54fafbb03e20516a394d9cd63f3f (patch)
tree143bd103186eb0d3fd9672ab8a41ebb076d1107d /src/tuning/kernels/xdot.hpp
parent7a2371213bb900c8c726c346f85920199f424d82 (diff)
Added the OpenCL local memory size constraint to the tuners
Diffstat (limited to 'src/tuning/kernels/xdot.hpp')
-rw-r--r--src/tuning/kernels/xdot.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tuning/kernels/xdot.hpp b/src/tuning/kernels/xdot.hpp
index 15673c79..901d8fd0 100644
--- a/src/tuning/kernels/xdot.hpp
+++ b/src/tuning/kernels/xdot.hpp
@@ -76,6 +76,14 @@ TunerSettings XdotGetTunerSettings(const int V, const Arguments<T> &args) {
template <typename T>
void XdotTestValidArguments(const int, const Arguments<T> &) { }
std::vector<Constraint> XdotSetConstraints(const int) { return {}; }
+template <typename T>
+LocalMemSizeInfo XdotComputeLocalMemSize(const int V) {
+ return {
+ [] (std::vector<size_t> v) -> size_t {
+ return GetBytes(PrecisionValue<T>()) * v[0];
+ },
+ {"WGS"+std::to_string(V)}
+ };}
// Sets the kernel's arguments
template <typename T>