From e388f055f74684b3fef2a3bf50bc8ad89d9361d4 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 25 Oct 2017 20:35:21 +0200 Subject: Fixed small bug in (unused) invert tester --- test/routines/levelx/xinvert.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/routines/levelx/xinvert.hpp b/test/routines/levelx/xinvert.hpp index 3df1e2b0..b8503029 100644 --- a/test/routines/levelx/xinvert.hpp +++ b/test/routines/levelx/xinvert.hpp @@ -17,6 +17,7 @@ #define CLBLAST_TEST_ROUTINES_XINVERT_H_ #include "test/routines/common.hpp" +#include "src/routines/levelx/xinvert.hpp" namespace clblast { // ================================================================================================= @@ -40,6 +41,13 @@ StatusCode RunReference(const Arguments &args, BuffersHost &buffers_host) return StatusCode::kUnknownError; } + // Start at zero + for (size_t i =0; i < args.m; ++i) { + for (size_t j = 0; j < args.n; ++j) { + buffers_host.b_mat[j * args.m + i] = T{0.0}; + } + } + // Loops over the amount of diagonal blocks of size args.m by args.m each for (auto block_id = size_t{0}; block_id < num_blocks; ++block_id) { const auto a_offset = block_id * (block_size + a_ld * block_size) + args.a_offset; -- cgit v1.2.3