DLPrimitives
scal.hpp
1 #pragma once
2 #include <dlprim/gpu/program_cache.hpp>
3 #include <dlprim/tensor.hpp>
4 
5 namespace dlprim {
6  class Scal {
7  public:
8  Scal(Context &ctx,DataType dt);
9  ~Scal();
10  void scale(float s,Tensor &t,ExecutionContext const &ec);
11  private:
12  Context ctx_;
13  cl::Kernel k_;
14  };
15 }
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
Definition: scal.hpp:6
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121