summaryrefslogtreecommitdiff
path: root/src/routines
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-02-28 15:49:59 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2016-02-28 15:49:59 +0100
commit4a56822dcc7f723db0dc9a86fbb71abdd18cee31 (patch)
treedde22d90f7bbf4fbec755f4681f8237e8c05cbf2 /src/routines
parente3545215a54c096e1c889124a9076cfb2f42df17 (diff)
Fixed a couple of correctness bugs in the Xher kernels
Diffstat (limited to 'src/routines')
-rw-r--r--src/routines/level2/xher.cc3
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();