From c0d469718afef353ce7e091c1bfd6fc3d210a240 Mon Sep 17 00:00:00 2001 From: CNugteren Date: Wed, 28 Oct 2015 21:19:59 +0100 Subject: Now sets local memory size in xgemv tuner properly --- src/tuning/xgemv.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tuning/xgemv.cc b/src/tuning/xgemv.cc index 675f0bf9..60c73d76 100644 --- a/src/tuning/xgemv.cc +++ b/src/tuning/xgemv.cc @@ -72,7 +72,10 @@ class TuneXgemv { tuner.AddConstraint(id, MultipleOfX, {"WPT"+std::to_string(V), "VW"+std::to_string(V)}); } } - static void SetLocalMemorySize(cltune::Tuner &, const size_t, const Arguments &) { } + static void SetLocalMemorySize(cltune::Tuner &tuner, const size_t id, const Arguments &args) { + auto LocalMemorySize = [args] (std::vector v) { return v[0]*GetBytes(args.precision); }; + tuner.SetLocalMemoryUsage(id, LocalMemorySize, {"WGS"+std::to_string(V)}); + } // Sets the base thread configuration static std::vector GlobalSize(const Arguments &args) { return {args.m}; } -- cgit v1.2.3