diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-02-28 15:49:59 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-02-28 15:49:59 +0100 |
commit | 4a56822dcc7f723db0dc9a86fbb71abdd18cee31 (patch) | |
tree | dde22d90f7bbf4fbec755f4681f8237e8c05cbf2 /src/routines/level2 | |
parent | e3545215a54c096e1c889124a9076cfb2f42df17 (diff) |
Fixed a couple of correctness bugs in the Xher kernels
Diffstat (limited to 'src/routines/level2')
-rw-r--r-- | src/routines/level2/xher.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routines/level2/xher.cc b/src/routines/level2/xher.cc index 4227252e..5eca44b0 100644 --- a/src/routines/level2/xher.cc +++ b/src/routines/level2/xher.cc @@ -74,6 +74,9 @@ StatusCode Xher<T,U>::DoHer(const Layout layout, const Triangle triangle, status = TestVectorX(n, x_buffer, x_offset, x_inc, sizeof(T)); if (ErrorIn(status)) { return status; } + // If alpha is zero an update is not required + if (alpha == U{0}) { return StatusCode::kSuccess; } + // Retrieves the Xgemv kernel from the compiled binary try { auto& program = GetProgramFromCache(); |