diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-03-22 21:01:02 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-03-22 21:01:02 +0100 |
commit | 9fb6550dd02c54fafbb03e20516a394d9cd63f3f (patch) | |
tree | 143bd103186eb0d3fd9672ab8a41ebb076d1107d /src/tuning/kernels/xdot.hpp | |
parent | 7a2371213bb900c8c726c346f85920199f424d82 (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.hpp | 8 |
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> |