From e47d95887c6671d6cee248ab4aa7b4a6bda715cd Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 25 Feb 2017 12:23:04 +0100 Subject: Added PrepareData function for TRSM to create proper test input --- test/routines/level2/xtrsv.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/routines/level2/xtrsv.hpp') diff --git a/test/routines/level2/xtrsv.hpp b/test/routines/level2/xtrsv.hpp index 811feac5..72ebdf9e 100644 --- a/test/routines/level2/xtrsv.hpp +++ b/test/routines/level2/xtrsv.hpp @@ -46,10 +46,10 @@ void PrepareData(const Arguments &args, Buffers &buffers, Queue &queue) { auto diagonal = a_mat_cpu[i*args.a_ld + i + args.a_offset]; diagonal = AbsoluteValue(diagonal) + static_cast(args.n / size_t{4}); for (auto j = size_t{0}; j < args.n; ++j) { - a_mat_cpu[j*args.a_ld + i + args.a_offset] /= T{2.0}; + a_mat_cpu[j*args.a_ld + i + args.a_offset] /= ConstantTwo(); } a_mat_cpu[i*args.a_ld + i + args.a_offset] = diagonal; - x_vec_cpu[i * args.x_inc + args.x_offset] /= T{2.0}; + x_vec_cpu[i * args.x_inc + args.x_offset] /= ConstantTwo(); } // Copies input buffers back to the OpenCL device -- cgit v1.2.3