diff options
Diffstat (limited to 'include/internal/routine.h')
-rw-r--r-- | include/internal/routine.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/include/internal/routine.h b/include/internal/routine.h index 35837575..0b53b82e 100644 --- a/include/internal/routine.h +++ b/include/internal/routine.h @@ -22,6 +22,7 @@ #include "internal/cache.h" #include "internal/utilities.h" #include "internal/database.h" +#include "internal/buffer_test.h" namespace clblast { // ================================================================================================= @@ -52,28 +53,6 @@ class Routine { StatusCode RunKernel(Kernel &kernel, std::vector<size_t> global, const std::vector<size_t> &local, EventPointer event); - // Tests for valid inputs of matrices A, B, and C - StatusCode TestMatrixA(const size_t one, const size_t two, const Buffer<T> &buffer, - const size_t offset, const size_t ld, const size_t data_size); - StatusCode TestMatrixB(const size_t one, const size_t two, const Buffer<T> &buffer, - const size_t offset, const size_t ld, const size_t data_size); - StatusCode TestMatrixC(const size_t one, const size_t two, const Buffer<T> &buffer, - const size_t offset, const size_t ld, const size_t data_size); - StatusCode TestMatrixAP(const size_t n, const Buffer<T> &buffer, - const size_t offset, const size_t data_size); - - // Tests for valid inputs of vector X and Y - StatusCode TestVectorX(const size_t n, const Buffer<T> &buffer, const size_t offset, - const size_t inc, const size_t data_size); - StatusCode TestVectorY(const size_t n, const Buffer<T> &buffer, const size_t offset, - const size_t inc, const size_t data_size); - - // Tests for valid inputs of other vectors - StatusCode TestVectorDot(const size_t n, const Buffer<T> &buffer, const size_t offset, - const size_t data_size); - StatusCode TestVectorIndex(const size_t n, const Buffer<unsigned int> &buffer, - const size_t offset, const size_t data_size); - // Copies/transposes a matrix and padds/unpads it with zeroes. This method is also able to write // to symmetric and triangular matrices through optional arguments. StatusCode PadCopyTransposeMatrix(EventPointer event, std::vector<Event>& waitForEvents, |