diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-13 21:10:44 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-13 21:10:44 +0100 |
commit | 4bac1287f2d49bece72822bf6032e4da56a2dd2d (patch) | |
tree | 77fd5e9fad27179feabc80f97f9f8abf9bbc99d1 /src/utilities/utilities.hpp | |
parent | 677afd3b96b2cbd3d2aae77e90cab87d2cc1eaa2 (diff) |
Moved square-difference utility function for use in the tuners
Diffstat (limited to 'src/utilities/utilities.hpp')
-rw-r--r-- | src/utilities/utilities.hpp | 6 |
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); |