From 4a6c7c37a34692a77d2cdce770898ce4cf319295 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 10 May 2020 20:28:23 +0200 Subject: Made sure that the global workgroup size is a multiple of the local size in the tuners --- src/tuning/tuning.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/tuning/tuning.cpp b/src/tuning/tuning.cpp index 54ba33da..0fc6112a 100644 --- a/src/tuning/tuning.cpp +++ b/src/tuning/tuning.cpp @@ -220,8 +220,13 @@ void Tuner(int argc, char* argv[], const int V, } // Sets the thread configuration - const auto global = settings.global_size_ref; - const auto local = settings.local_size_ref; + auto global = settings.global_size_ref; + auto local = settings.local_size_ref; + + // Make sure that the global worksize is a multiple of the local + for (auto i=size_t{0}; i