diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-02-25 12:23:04 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-02-25 12:23:04 +0100 |
commit | e47d95887c6671d6cee248ab4aa7b4a6bda715cd (patch) | |
tree | 831c4576314cbd62404749505f87e45c23078f98 /test/routines/levelx/xinvert.hpp | |
parent | 2f2a510c38c811b53474dd8cc1a3dfff88053cf0 (diff) |
Added PrepareData function for TRSM to create proper test input
Diffstat (limited to 'test/routines/levelx/xinvert.hpp')
-rw-r--r-- | test/routines/levelx/xinvert.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/routines/levelx/xinvert.hpp b/test/routines/levelx/xinvert.hpp index 4408e8d5..c6ce4b07 100644 --- a/test/routines/levelx/xinvert.hpp +++ b/test/routines/levelx/xinvert.hpp @@ -41,9 +41,14 @@ StatusCode RunReference(const Arguments<T> &args, Buffers<T> &buffers, Queue &qu const auto num_blocks = CeilDiv(args.n, block_size); const auto a_ld = args.a_ld; const auto b_ld = block_size; - if ((block_size == 0) || (args.n == 0) || (block_size > args.n)) { + + // Checks for valid arguments + if ((block_size == 0) || (args.n == 0)) { return StatusCode::kInvalidDimension; } + if ((block_size % 16 != 0) || (block_size > 128)) { + return StatusCode::kUnknownError; + } // 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) { |