From 0d13d814c21f1fdb3b0781b84bf12914aec5225a Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 14 Sep 2017 21:27:33 +0200 Subject: Added architecture layer in the tuning database for better performance on unseen devices --- src/utilities/utilities.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utilities/utilities.hpp') diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp index d912a377..1ba3ab03 100644 --- a/src/utilities/utilities.hpp +++ b/src/utilities/utilities.hpp @@ -123,6 +123,14 @@ constexpr auto kBufScalar = "Scalar"; // ================================================================================================= +inline void log_debug(const std::string &log_string) { + #ifdef VERBOSE + printf("[DEBUG] %s\n", log_string.c_str()); + #endif +} + +// ================================================================================================= + // Converts a regular or complex type to it's base type (e.g. float2 to float) template struct BaseType { using Type = T; }; template <> struct BaseType { using Type = float; }; -- cgit v1.2.3