summaryrefslogtreecommitdiff
path: root/src/routines/levelx/xaxpybatched.cpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-10-17 19:56:47 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-10-17 19:56:47 +0200
commitb1270f04b89c3271aca11594501f7e997848e394 (patch)
treead5de2b87b6885e6b4e43bd84f6ccfb4bc0d3786 /src/routines/levelx/xaxpybatched.cpp
parentf349731d5498f484995514112551c1b60ca4f6d3 (diff)
Made buffers of batched routines read/write (was: read-only)
Diffstat (limited to 'src/routines/levelx/xaxpybatched.cpp')
-rw-r--r--src/routines/levelx/xaxpybatched.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routines/levelx/xaxpybatched.cpp b/src/routines/levelx/xaxpybatched.cpp
index 0b755ccf..52c27b78 100644
--- a/src/routines/levelx/xaxpybatched.cpp
+++ b/src/routines/levelx/xaxpybatched.cpp
@@ -59,9 +59,9 @@ void XaxpyBatched<T>::DoAxpyBatched(const size_t n, const std::vector<T> &alphas
x_offsets_int[batch] = static_cast<int>(x_offsets[batch]);
y_offsets_int[batch] = static_cast<int>(y_offsets[batch]);
}
- auto x_offsets_device = Buffer<int>(context_, BufferAccess::kReadOnly, batch_count);
- auto y_offsets_device = Buffer<int>(context_, BufferAccess::kReadOnly, batch_count);
- auto alphas_device = Buffer<T>(context_, BufferAccess::kReadOnly, batch_count);
+ auto x_offsets_device = Buffer<int>(context_, BufferAccess::kReadWrite, batch_count);
+ auto y_offsets_device = Buffer<int>(context_, BufferAccess::kReadWrite, batch_count);
+ auto alphas_device = Buffer<T>(context_, BufferAccess::kReadWrite, batch_count);
x_offsets_device.Write(queue_, batch_count, x_offsets_int);
y_offsets_device.Write(queue_, batch_count, y_offsets_int);
alphas_device.Write(queue_, batch_count, alphas);