From afe8852eaae20fbdd3f38e9cac63a9162251d90b Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Fri, 17 Jun 2016 11:29:07 +0200 Subject: Moved the test-for-valid-buffers function from the Routine class to separate functions in a separate file --- include/internal/routine.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'include/internal/routine.h') 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 global, const std::vector &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 &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 &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 &buffer, - const size_t offset, const size_t ld, const size_t data_size); - StatusCode TestMatrixAP(const size_t n, const Buffer &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 &buffer, const size_t offset, - const size_t inc, const size_t data_size); - StatusCode TestVectorY(const size_t n, const Buffer &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 &buffer, const size_t offset, - const size_t data_size); - StatusCode TestVectorIndex(const size_t n, const Buffer &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& waitForEvents, -- cgit v1.2.3