summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-10-25 20:35:21 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-10-25 20:35:39 +0200
commite388f055f74684b3fef2a3bf50bc8ad89d9361d4 (patch)
tree2f1de7e23b61c731164ab26f87a79bd22d27b15d
parent8cdb5cb4a71723288a7923f6e31050de7f3db9e8 (diff)
Fixed small bug in (unused) invert tester
-rw-r--r--test/routines/levelx/xinvert.hpp8
1 files changed, 8 insertions, 0 deletions
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<T> &args, BuffersHost<T> &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;