summaryrefslogtreecommitdiff
path: root/include/internal/routines/level1/xamax.h
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 /include/internal/routines/level1/xamax.h
parent9602c150aa3b7f0a392207bef8cbb6048b1da891 (diff)
Changed the index buffer of IxAMAX routines to unsigned int for proper buffersize checking
Diffstat (limited to 'include/internal/routines/level1/xamax.h')
-rw-r--r--include/internal/routines/level1/xamax.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/routines/level1/xamax.h b/include/internal/routines/level1/xamax.h
index b815e8d2..c318115e 100644
--- a/include/internal/routines/level1/xamax.h
+++ b/include/internal/routines/level1/xamax.h
@@ -32,7 +32,7 @@ class Xamax: public Routine<T> {
using Routine<T>::context_;
using Routine<T>::GetProgramFromCache;
using Routine<T>::TestVectorX;
- using Routine<T>::TestVectorDot;
+ using Routine<T>::TestVectorIndex;
using Routine<T>::RunKernel;
using Routine<T>::ErrorIn;
@@ -41,7 +41,7 @@ class Xamax: public Routine<T> {
// Templated-precision implementation of the routine
StatusCode 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);
private: