From f9947b4d7ffedcf98cdb128de835422f647e7f15 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Fri, 17 Jun 2016 14:30:37 +0200 Subject: Removed the precision argument from the routines in favor of a single templated function --- src/routines/level2/xher2.cc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/routines/level2/xher2.cc') diff --git a/src/routines/level2/xher2.cc b/src/routines/level2/xher2.cc index 9edc1dd9..d5d4323b 100644 --- a/src/routines/level2/xher2.cc +++ b/src/routines/level2/xher2.cc @@ -18,19 +18,10 @@ namespace clblast { // ================================================================================================= -// Specific implementations to get the memory-type based on a template argument -template <> const Precision Xher2::precision_ = Precision::kHalf; -template <> const Precision Xher2::precision_ = Precision::kSingle; -template <> const Precision Xher2::precision_ = Precision::kDouble; -template <> const Precision Xher2::precision_ = Precision::kComplexSingle; -template <> const Precision Xher2::precision_ = Precision::kComplexDouble; - -// ================================================================================================= - // Constructor: forwards to base class constructor template Xher2::Xher2(Queue &queue, EventPointer event, const std::string &name): - Routine(queue, event, name, {"Xger"}, precision_) { + Routine(queue, event, name, {"Xger"}, PrecisionValue()) { source_string_ = #include "../../kernels/level2/level2.opencl" #include "../../kernels/level2/xher2.opencl" @@ -73,7 +64,7 @@ StatusCode Xher2::DoHer2(const Layout layout, const Triangle triangle, // Retrieves the kernel from the compiled binary try { - const auto program = GetProgramFromCache(context_, precision_, routine_name_); + const auto program = GetProgramFromCache(context_, PrecisionValue(), routine_name_); auto kernel = Kernel(program, "Xher2"); // Sets the kernel arguments -- cgit v1.2.3