summaryrefslogtreecommitdiff
path: root/src/routines/levelx/xomatcopy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/routines/levelx/xomatcopy.cc')
-rw-r--r--src/routines/levelx/xomatcopy.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/routines/levelx/xomatcopy.cc b/src/routines/levelx/xomatcopy.cc
index 80683b7a..c724b56b 100644
--- a/src/routines/levelx/xomatcopy.cc
+++ b/src/routines/levelx/xomatcopy.cc
@@ -19,19 +19,10 @@
namespace clblast {
// =================================================================================================
-// Specific implementations to get the memory-type based on a template argument
-template <> const Precision Xomatcopy<half>::precision_ = Precision::kHalf;
-template <> const Precision Xomatcopy<float>::precision_ = Precision::kSingle;
-template <> const Precision Xomatcopy<double>::precision_ = Precision::kDouble;
-template <> const Precision Xomatcopy<float2>::precision_ = Precision::kComplexSingle;
-template <> const Precision Xomatcopy<double2>::precision_ = Precision::kComplexDouble;
-
-// =================================================================================================
-
// Constructor: forwards to base class constructor
template <typename T>
Xomatcopy<T>::Xomatcopy(Queue &queue, EventPointer event, const std::string &name):
- Routine<T>(queue, event, name, {"Copy","Pad","Transpose","Padtranspose"}, precision_) {
+ Routine<T>(queue, event, name, {"Copy","Pad","Transpose","Padtranspose"}, PrecisionValue<T>()) {
source_string_ =
#include "../../kernels/level3/level3.opencl"
#include "../../kernels/level3/copy_fast.opencl"
@@ -78,7 +69,7 @@ StatusCode Xomatcopy<T>::DoOmatcopy(const Layout layout, const Transpose a_trans
if (ErrorIn(status)) { return status; }
// Loads the program from the database
- const auto program = GetProgramFromCache(context_, precision_, routine_name_);
+ const auto program = GetProgramFromCache(context_, PrecisionValue<T>(), routine_name_);
auto emptyEventList = std::vector<Event>();
status = PadCopyTransposeMatrix(queue_, device_, context_, db_, event_, emptyEventList,