diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-14 21:27:33 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-14 21:27:33 +0200 |
commit | 0d13d814c21f1fdb3b0781b84bf12914aec5225a (patch) | |
tree | f4ed5bfe6b13a5e865b1973ca571df87f1af4bc2 /src/utilities/utilities.hpp | |
parent | 14a61d24258498811ac0dfd11cad6087a231fa2a (diff) |
Added architecture layer in the tuning database for better performance on unseen devices
Diffstat (limited to 'src/utilities/utilities.hpp')
-rw-r--r-- | src/utilities/utilities.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 <typename T> struct BaseType { using Type = T; }; template <> struct BaseType<float2> { using Type = float; }; |