summaryrefslogtreecommitdiff
path: root/test/correctness
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-06-16 07:44:32 +0200
committerCNugteren <web@cedricnugteren.nl>2015-06-16 07:44:32 +0200
commit6ebca73d724913949d9cf34efbee3f91653336ab (patch)
tree04d48354b632daffc6bad77cd0e6bac4f03543d0 /test/correctness
parent8f01c644b5c62958c1dcd4fd72b411f3805b81a6 (diff)
Created data-type dependent transpose values to test
Diffstat (limited to 'test/correctness')
-rw-r--r--test/correctness/testabc.cc10
-rw-r--r--test/correctness/testabc.h4
2 files changed, 14 insertions, 0 deletions
diff --git a/test/correctness/testabc.cc b/test/correctness/testabc.cc
index f2880f50..9bc7bc79 100644
--- a/test/correctness/testabc.cc
+++ b/test/correctness/testabc.cc
@@ -18,6 +18,16 @@
namespace clblast {
// =================================================================================================
+// The layouts and transpose-options to test with
+template <typename T>
+const std::vector<Layout> TestABC<T>::kLayouts = {Layout::kRowMajor, Layout::kColMajor};
+template <> const std::vector<Transpose> TestABC<float>::kTransposes = {Transpose::kNo, Transpose::kYes};
+template <> const std::vector<Transpose> TestABC<double>::kTransposes = {Transpose::kNo, Transpose::kYes};
+template <> const std::vector<Transpose> TestABC<float2>::kTransposes = {Transpose::kNo, Transpose::kYes, Transpose::kConjugate};
+template <> const std::vector<Transpose> TestABC<double2>::kTransposes = {Transpose::kNo, Transpose::kYes, Transpose::kConjugate};
+
+// =================================================================================================
+
// Constructor, initializes the base class tester and input data
template <typename T>
TestABC<T>::TestABC(const size_t platform_id, const size_t device_id,
diff --git a/test/correctness/testabc.h b/test/correctness/testabc.h
index c80f8d58..bee40357 100644
--- a/test/correctness/testabc.h
+++ b/test/correctness/testabc.h
@@ -50,6 +50,10 @@ class TestABC: public Tester<T> {
// Test settings for the invalid test
const size_t kBufferSize = 64;
+ // The layouts and transpose-options to test with
+ static const std::vector<Layout> kLayouts;
+ static const std::vector<Transpose> kTransposes;
+
// Shorthand for a BLAS routine
using Routine = std::function<StatusCode(const Arguments<T>&,
const Buffer&, const Buffer&, const Buffer&,