summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-05-11 22:19:15 -0700
committerCedric Nugteren <web@cedricnugteren.nl>2017-05-11 22:19:15 -0700
commit93c8db7fe75d0a4924cd822b19d9714147774f98 (patch)
treee8cb30ff9a7662272b9721d6b6332643ea0cca35
parent1df28a15fc4cbde516b7f91cce171b8624c43095 (diff)
Bug-fix in the half-precision test of the amax routine
-rw-r--r--test/routines/level1/xamax.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/routines/level1/xamax.hpp b/test/routines/level1/xamax.hpp
index 04bdaa3d..868a79ed 100644
--- a/test/routines/level1/xamax.hpp
+++ b/test/routines/level1/xamax.hpp
@@ -43,7 +43,7 @@ class TestXamax {
return args.n * args.x_inc + args.x_offset;
}
static size_t GetSizeImax(const Arguments<T> &args) {
- return 1 + args.imax_offset;
+ return (1 + args.imax_offset) * 2; // always a 4-byte integer, this is a hack for FP16
}
// Describes how to set the sizes of all the buffers