summaryrefslogtreecommitdiff
path: root/src/routines/level1/xcopy.cc
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-05-22 14:26:19 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-05-22 14:26:19 +0200
commitf70ded34f3000dee742fe23631f3066c8f486dfd (patch)
tree8ffd2a98d07d88f13fe1321979c1ae90656b5282 /src/routines/level1/xcopy.cc
parent489c5d76cfe95a97542dfeaa6d8b19cd9100919a (diff)
Added half-precision support for all level 1 routines
Diffstat (limited to 'src/routines/level1/xcopy.cc')
-rw-r--r--src/routines/level1/xcopy.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routines/level1/xcopy.cc b/src/routines/level1/xcopy.cc
index d34482ce..ff8f5999 100644
--- a/src/routines/level1/xcopy.cc
+++ b/src/routines/level1/xcopy.cc
@@ -20,6 +20,7 @@ namespace clblast {
// =================================================================================================
// Specific implementations to get the memory-type based on a template argument
+template <> const Precision Xcopy<half>::precision_ = Precision::kHalf;
template <> const Precision Xcopy<float>::precision_ = Precision::kSingle;
template <> const Precision Xcopy<double>::precision_ = Precision::kDouble;
template <> const Precision Xcopy<float2>::precision_ = Precision::kComplexSingle;
@@ -105,6 +106,7 @@ StatusCode Xcopy<T>::DoCopy(const size_t n,
// =================================================================================================
// Compiles the templated class
+template class Xcopy<half>;
template class Xcopy<float>;
template class Xcopy<double>;
template class Xcopy<float2>;