summaryrefslogtreecommitdiff
path: root/src/routines/level2/xher2.cc
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-17 11:29:07 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-17 11:29:07 +0200
commitafe8852eaae20fbdd3f38e9cac63a9162251d90b (patch)
treed34fe7dd2fe095a34bb4544cade644d52baa1f30 /src/routines/level2/xher2.cc
parent52ccaf5b25e14c9ce032315e5e96b1f27886d481 (diff)
Moved the test-for-valid-buffers function from the Routine class to separate functions in a separate file
Diffstat (limited to 'src/routines/level2/xher2.cc')
-rw-r--r--src/routines/level2/xher2.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routines/level2/xher2.cc b/src/routines/level2/xher2.cc
index a73dde52..a7362410 100644
--- a/src/routines/level2/xher2.cc
+++ b/src/routines/level2/xher2.cc
@@ -59,12 +59,12 @@ StatusCode Xher2<T>::DoHer2(const Layout layout, const Triangle triangle,
// Tests the matrix and the vectors for validity
auto status = StatusCode::kSuccess;
- if (packed) { status = TestMatrixAP(n, a_buffer, a_offset, sizeof(T)); }
- else { status = TestMatrixA(n, n, a_buffer, a_offset, a_ld, sizeof(T)); }
+ if (packed) { status = TestMatrixAP(n, a_buffer, a_offset); }
+ else { status = TestMatrixA(n, n, a_buffer, a_offset, a_ld); }
if (ErrorIn(status)) { return status; }
- status = TestVectorX(n, x_buffer, x_offset, x_inc, sizeof(T));
+ status = TestVectorX(n, x_buffer, x_offset, x_inc);
if (ErrorIn(status)) { return status; }
- status = TestVectorY(n, y_buffer, y_offset, y_inc, sizeof(T));
+ status = TestVectorY(n, y_buffer, y_offset, y_inc);
if (ErrorIn(status)) { return status; }
// Upload the scalar argument as a constant buffer to the device (needed for half-precision)