summaryrefslogtreecommitdiff
path: root/test/correctness/testxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/correctness/testxy.h')
-rw-r--r--test/correctness/testxy.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/test/correctness/testxy.h b/test/correctness/testxy.h
deleted file mode 100644
index ec2cbcc7..00000000
--- a/test/correctness/testxy.h
+++ /dev/null
@@ -1,84 +0,0 @@
-
-// =================================================================================================
-// This file is part of the CLBlast project. The project is licensed under the MIT license. This
-// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
-// width of 100 characters per line.
-//
-// Author(s):
-// Cedric Nugteren <www.cedricnugteren.nl>
-//
-// This file tests any vector-vector (X,Y) routine. It contains two types of tests: one testing
-// all sorts of input combinations, and one deliberatly testing with invalid values.
-//
-// =================================================================================================
-
-#ifndef CLBLAST_TEST_CORRECTNESS_TESTXY_H_
-#define CLBLAST_TEST_CORRECTNESS_TESTXY_H_
-
-#include <vector>
-#include <string>
-
-#include "correctness/tester.h"
-
-namespace clblast {
-// =================================================================================================
-
-// See comment at top of file for a description of the class
-template <typename T>
-class TestXY: public Tester<T> {
- public:
-
- // Uses several variables from the Tester class
- using Tester<T>::context_;
- using Tester<T>::queue_;
-
- // Uses several helper functions from the Tester class
- using Tester<T>::TestStart;
- using Tester<T>::TestEnd;
- using Tester<T>::TestSimilarity;
- using Tester<T>::TestErrorCount;
- using Tester<T>::TestErrorCodes;
- using Tester<T>::GetExampleScalars;
- using Tester<T>::GetOffsets;
- using Tester<T>::PrecisionSupported;
-
- // Test settings for the regular test. Append to this list in case more tests are required.
- const std::vector<size_t> kVectorDims = { 7, 93, 4096 };
- const std::vector<size_t> kOffsets = GetOffsets();
- const std::vector<size_t> kIncrements = { 1, 2, 7 };
- const std::vector<T> kAlphaValues = GetExampleScalars();
-
- // Test settings for the invalid test
- const std::vector<size_t> kInvalidIncrements = { 0, 1 };
- const size_t kBufferSize = 512;
-
- // Shorthand for a BLAS routine
- using Routine = std::function<StatusCode(const Arguments<T>&,
- const Buffer&, const Buffer&,
- CommandQueue&)>;
-
- // Constructor, initializes the base class tester and input data
- TestXY(int argc, char *argv[], const bool silent,
- const std::string &name, const std::vector<std::string> &options,
- const Routine clblast_lambda, const Routine clblas_lambda);
-
- // The test functions, taking no inputs
- void TestRegular(Arguments<T> &args, const std::string &name);
- void TestInvalidBufferSizes(Arguments<T> &args, const std::string &name);
-
- private:
-
- // Source data to test with
- std::vector<T> x_source_;
- std::vector<T> y_source_;
-
- // The routines to test
- Routine clblast_lambda_;
- Routine clblas_lambda_;
-};
-
-// =================================================================================================
-} // namespace clblast
-
-// CLBLAST_TEST_CORRECTNESS_TESTXY_H_
-#endif