DLPrimitives
axpby.hpp
1 #pragma once
2 #include <dlprim/operator.hpp>
3 
4 namespace dlprim {
5  class AXPBY {
6  public:
7  AXPBY(Context &ctx,DataType dt=float_data);
8  ~AXPBY();
9  void apply(float a,Tensor &x,float b,Tensor &y,Tensor &z,ExecutionContext const &e);
10  private:
11  Context ctx_;
12  cl::Kernel kernel_;
13  };
14 } // namespace
Definition: axpby.hpp:5
This is main object that represent the pair of OpenCL platform and device all other objects use it...
Definition: context.hpp:302
DataType
type definition
Definition: definitions.hpp:70
Mane namespace.
Definition: context.hpp:9
Central Data Contrainer - Tensor.
Definition: tensor.hpp:99
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121