diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-01 14:03:37 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-01 14:03:37 +0200 |
commit | bee2f943ec51a3482e89cf635a2d12b6b6d96b04 (patch) | |
tree | fc93c1bef6fa19846959e55685129f439e6cfce9 /src/clblast.cc | |
parent | 9602c150aa3b7f0a392207bef8cbb6048b1da891 (diff) |
Changed the index buffer of IxAMAX routines to unsigned int for proper buffersize checking
Diffstat (limited to 'src/clblast.cc')
-rw-r--r-- | src/clblast.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clblast.cc b/src/clblast.cc index 4d7c9986..8a9465c3 100644 --- a/src/clblast.cc +++ b/src/clblast.cc @@ -475,7 +475,7 @@ StatusCode Amax(const size_t n, auto status = routine.SetUp(); if (status != StatusCode::kSuccess) { return status; } return routine.DoAmax(n, - Buffer<T>(imax_buffer), imax_offset, + Buffer<unsigned int>(imax_buffer), imax_offset, Buffer<T>(x_buffer), x_offset, x_inc); } template StatusCode PUBLIC_API Amax<float>(const size_t, @@ -506,7 +506,7 @@ StatusCode Max(const size_t n, auto status = routine.SetUp(); if (status != StatusCode::kSuccess) { return status; } return routine.DoMax(n, - Buffer<T>(imax_buffer), imax_offset, + Buffer<unsigned int>(imax_buffer), imax_offset, Buffer<T>(x_buffer), x_offset, x_inc); } template StatusCode PUBLIC_API Max<float>(const size_t, @@ -537,7 +537,7 @@ StatusCode Min(const size_t n, auto status = routine.SetUp(); if (status != StatusCode::kSuccess) { return status; } return routine.DoMin(n, - Buffer<T>(imin_buffer), imin_offset, + Buffer<unsigned int>(imin_buffer), imin_offset, Buffer<T>(x_buffer), x_offset, x_inc); } template StatusCode PUBLIC_API Min<float>(const size_t, |