From 75b4d92ac3afb25af415ef2a7ab94e284aafeeb1 Mon Sep 17 00:00:00 2001 From: CNugteren Date: Tue, 4 Aug 2015 08:15:39 +0200 Subject: Added distinguished names for GEMV inherited HEMV/SYMV --- src/kernels/xgemv.opencl | 10 ---------- src/routines/level2/xgemv.cc | 4 ++-- src/routines/level2/xhemv.cc | 4 ++-- src/routines/level2/xsymv.cc | 4 ++-- 4 files changed, 6 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/kernels/xgemv.opencl b/src/kernels/xgemv.opencl index 5bbf69b9..1e12dd78 100644 --- a/src/kernels/xgemv.opencl +++ b/src/kernels/xgemv.opencl @@ -78,17 +78,8 @@ R"( typedef real16 realVFR; #endif -// ================================================================================================= -// Defines how to load the input matrix in case of a symmetric matrix -#if defined(ROUTINE_SYMV) - -// ================================================================================================= -// Defines how to load the input matrix in case of a hermetian matrix -#elif defined(ROUTINE_HEMV) - // ================================================================================================= // Defines how to load the input matrix in the regular case -#else // Loads a scalar input value inline real LoadMatrixA(const __global real* restrict agm, const int x, const int y, @@ -106,7 +97,6 @@ inline realVFR LoadMatrixAVFR(const __global realVFR* restrict agm, const int x, return agm[x + a_ld*y]; } -#endif // ================================================================================================= // Full version of the kernel diff --git a/src/routines/level2/xgemv.cc b/src/routines/level2/xgemv.cc index 99b282b0..f95a9957 100644 --- a/src/routines/level2/xgemv.cc +++ b/src/routines/level2/xgemv.cc @@ -29,8 +29,8 @@ template <> const Precision Xgemv::precision_ = Precision::kComplexDoub // Constructor: forwards to base class constructor template -Xgemv::Xgemv(Queue &queue, Event &event): - Routine(queue, event, "GEMV", {"Pad", "Xgemv"}, precision_) { +Xgemv::Xgemv(Queue &queue, Event &event, const std::string &name): + Routine(queue, event, name, {"Pad", "Xgemv"}, precision_) { source_string_ = #include "../../kernels/pad.opencl" // For {Herm,Symm}{Upper,Lower}ToSquared (for HEMV/SYMV) #include "../../kernels/xgemv.opencl" diff --git a/src/routines/level2/xhemv.cc b/src/routines/level2/xhemv.cc index 7883b7b9..2d92e45f 100644 --- a/src/routines/level2/xhemv.cc +++ b/src/routines/level2/xhemv.cc @@ -21,8 +21,8 @@ namespace clblast { // Constructor: forwards to base class constructor template -Xhemv::Xhemv(Queue &queue, Event &event): - Xgemv(queue, event) { +Xhemv::Xhemv(Queue &queue, Event &event, const std::string &name): + Xgemv(queue, event, name) { } // ================================================================================================= diff --git a/src/routines/level2/xsymv.cc b/src/routines/level2/xsymv.cc index 1b0ab6d7..2ccb51f6 100644 --- a/src/routines/level2/xsymv.cc +++ b/src/routines/level2/xsymv.cc @@ -21,8 +21,8 @@ namespace clblast { // Constructor: forwards to base class constructor template -Xsymv::Xsymv(Queue &queue, Event &event): - Xgemv(queue, event) { +Xsymv::Xsymv(Queue &queue, Event &event, const std::string &name): + Xgemv(queue, event, name) { } // ================================================================================================= -- cgit v1.2.3