summaryrefslogtreecommitdiff
path: root/test/routines/levelx/xinvert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/routines/levelx/xinvert.hpp')
-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;