summaryrefslogtreecommitdiff
path: root/src/routines/level1
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-07-19 13:44:37 +0200
committerCNugteren <web@cedricnugteren.nl>2015-07-19 13:44:37 +0200
commit4e499a67c1eb9f7cc4a79e75046aa0315b5df87d (patch)
tree7d24d5069cf6145ce73a621d254bf17da7752ace /src/routines/level1
parent250f8ab2953fd6730ce97c2e5ab464d22efb639c (diff)
The kernel source string is now a routine's member variable
Diffstat (limited to 'src/routines/level1')
-rw-r--r--src/routines/level1/xaxpy.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routines/level1/xaxpy.cc b/src/routines/level1/xaxpy.cc
index fba36851..ed680856 100644
--- a/src/routines/level1/xaxpy.cc
+++ b/src/routines/level1/xaxpy.cc
@@ -30,7 +30,10 @@ template <> const Precision Xaxpy<double2>::precision_ = Precision::kComplexDoub
// Constructor: forwards to base class constructor
template <typename T>
Xaxpy<T>::Xaxpy(CommandQueue &queue, Event &event):
- Routine(queue, event, {"Xaxpy"}, precision_) {
+ Routine(queue, event, "Xaxpy", {"Xaxpy"}, precision_) {
+ source_string_ =
+ #include "../../kernels/xaxpy.opencl"
+ ;
}
// =================================================================================================