summaryrefslogtreecommitdiff
path: root/src/utilities/utilities.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-11-13 21:10:44 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-11-13 21:10:44 +0100
commit4bac1287f2d49bece72822bf6032e4da56a2dd2d (patch)
tree77fd5e9fad27179feabc80f97f9f8abf9bbc99d1 /src/utilities/utilities.hpp
parent677afd3b96b2cbd3d2aae77e90cab87d2cc1eaa2 (diff)
Moved square-difference utility function for use in the tuners
Diffstat (limited to 'src/utilities/utilities.hpp')
-rw-r--r--src/utilities/utilities.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp
index f56226be..3f90906d 100644
--- a/src/utilities/utilities.hpp
+++ b/src/utilities/utilities.hpp
@@ -323,6 +323,12 @@ bool PrecisionSupported(const Device &device);
// =================================================================================================
+// Retrieves the squared difference, used for example for computing the L2 error
+template <typename T>
+double SquaredDifference(const T val1, const T val2);
+
+// =================================================================================================
+
// Device information in a specific CLBlast form
std::string GetDeviceType(const Device& device);
std::string GetDeviceVendor(const Device& device);