summaryrefslogtreecommitdiff
path: root/src/routines/level1
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-05-01 14:03:37 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-05-01 14:03:37 +0200
commitbee2f943ec51a3482e89cf635a2d12b6b6d96b04 (patch)
treefc93c1bef6fa19846959e55685129f439e6cfce9 /src/routines/level1
parent9602c150aa3b7f0a392207bef8cbb6048b1da891 (diff)
Changed the index buffer of IxAMAX routines to unsigned int for proper buffersize checking
Diffstat (limited to 'src/routines/level1')
-rw-r--r--src/routines/level1/xamax.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/level1/xamax.cc b/src/routines/level1/xamax.cc
index 33bd72a6..682e2b63 100644
--- a/src/routines/level1/xamax.cc
+++ b/src/routines/level1/xamax.cc
@@ -41,7 +41,7 @@ Xamax<T>::Xamax(Queue &queue, EventPointer event, const std::string &name):
// The main routine
template <typename T>
StatusCode Xamax<T>::DoAmax(const size_t n,
- const Buffer<T> &imax_buffer, const size_t imax_offset,
+ const Buffer<unsigned int> &imax_buffer, const size_t imax_offset,
const Buffer<T> &x_buffer, const size_t x_offset, const size_t x_inc) {
// Makes sure all dimensions are larger than zero
@@ -50,7 +50,7 @@ StatusCode Xamax<T>::DoAmax(const size_t n,
// Tests the vectors for validity
auto status = TestVectorX(n, x_buffer, x_offset, x_inc, sizeof(T));
if (ErrorIn(status)) { return status; }
- status = TestVectorDot(1, imax_buffer, imax_offset, sizeof(T));
+ status = TestVectorIndex(1, imax_buffer, imax_offset, sizeof(unsigned int));
if (ErrorIn(status)) { return status; }
// Retrieves the Xamax kernels from the compiled binary