summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-08-19 19:34:29 +0200
committerCNugteren <web@cedricnugteren.nl>2015-08-19 19:34:29 +0200
commitb46de2243390d3f773b8a66da41d3d0bf61dbcee (patch)
tree4ca831abf06718d87754b6d3a72bcdbac4cb1310 /test
parent8a02db0746896011d6ea42cf6b9c4910d9ddda13 (diff)
Moved precision tester to utilities
Diffstat (limited to 'test')
-rw-r--r--test/correctness/tester.cc14
-rw-r--r--test/correctness/tester.h4
2 files changed, 0 insertions, 18 deletions
diff --git a/test/correctness/tester.cc b/test/correctness/tester.cc
index 002cb1a6..a52142c4 100644
--- a/test/correctness/tester.cc
+++ b/test/correctness/tester.cc
@@ -335,20 +335,6 @@ template <> const std::vector<double2> GetExampleScalars(const bool full_test) {
// =================================================================================================
-// Returns false is this precision is not supported by the device
-template <> bool PrecisionSupported<float>(const Device &) { return true; }
-template <> bool PrecisionSupported<float2>(const Device &) { return true; }
-template <> bool PrecisionSupported<double>(const Device &device) {
- auto extensions = device.Capabilities();
- return (extensions.find(kKhronosDoublePrecision) == std::string::npos) ? false : true;
-}
-template <> bool PrecisionSupported<double2>(const Device &device) {
- auto extensions = device.Capabilities();
- return (extensions.find(kKhronosDoublePrecision) == std::string::npos) ? false : true;
-}
-
-// =================================================================================================
-
// Compiles the templated class
template class Tester<float, float>;
template class Tester<double, double>;
diff --git a/test/correctness/tester.h b/test/correctness/tester.h
index 06f4afbe..db714f3d 100644
--- a/test/correctness/tester.h
+++ b/test/correctness/tester.h
@@ -140,10 +140,6 @@ bool TestSimilarity(const T val1, const T val2);
template <typename T>
const std::vector<T> GetExampleScalars(const bool full_test);
-// Returns false is this precision is not supported by the device
-template <typename T>
-bool PrecisionSupported(const Device &device);
-
// =================================================================================================
} // namespace clblast