From 93c8db7fe75d0a4924cd822b19d9714147774f98 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 11 May 2017 22:19:15 -0700 Subject: Bug-fix in the half-precision test of the amax routine --- test/routines/level1/xamax.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &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 -- cgit v1.2.3