From 4bac1287f2d49bece72822bf6032e4da56a2dd2d Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Mon, 13 Nov 2017 21:10:44 +0100 Subject: Moved square-difference utility function for use in the tuners --- src/utilities/utilities.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utilities/utilities.hpp') 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 +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); -- cgit v1.2.3