summaryrefslogtreecommitdiff
path: root/src/routines/levelx/xaxpybatched.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-03-08 20:10:20 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-03-08 20:10:20 +0100
commitfa0a9c689fc21a2a24aeadf82ae0acdf6d8bf831 (patch)
tree404e85900a4c9038d407addb38798d06bb48868c /src/routines/levelx/xaxpybatched.hpp
parent6aba0bbae71702c4eebd88d0fe17739b509185c1 (diff)
Make batched routines based on offsets instead of a vector of cl_mem objects - undoing many earlier changes
Diffstat (limited to 'src/routines/levelx/xaxpybatched.hpp')
-rw-r--r--src/routines/levelx/xaxpybatched.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/routines/levelx/xaxpybatched.hpp b/src/routines/levelx/xaxpybatched.hpp
index 7fd14a74..513792ea 100644
--- a/src/routines/levelx/xaxpybatched.hpp
+++ b/src/routines/levelx/xaxpybatched.hpp
@@ -16,26 +16,23 @@
#include <vector>
-#include "routines/level1/xaxpy.hpp"
+#include "routine.hpp"
namespace clblast {
// =================================================================================================
// See comment at top of file for a description of the class
template <typename T>
-class XaxpyBatched: public Xaxpy<T> {
+class XaxpyBatched: public Routine {
public:
- // Uses the regular Xaxpy routine
- using Xaxpy<T>::DoAxpy;
-
// Constructor
XaxpyBatched(Queue &queue, EventPointer event, const std::string &name = "AXPYBATCHED");
// Templated-precision implementation of the routine
void DoAxpyBatched(const size_t n, const std::vector<T> &alphas,
- const std::vector<Buffer<T>> &x_buffers, const size_t x_inc,
- const std::vector<Buffer<T>> &y_buffers, const size_t y_inc,
+ const Buffer<T> &x_buffer, const std::vector<size_t> &x_offsets, const size_t x_inc,
+ const Buffer<T> &y_buffer, const std::vector<size_t> &y_offsets, const size_t y_inc,
const size_t batch_count);
};