DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
cl_utils.h
Go to the documentation of this file.
1 #include <CL/cl2.hpp>
2 #include "xcl2/xcl2.hpp"
3 
4 namespace CLUtils
5 {
6  class KernelOperator {
7 
8  };
9 
10  class KernelWrapper {
11  // Need functions to
12  // 1. Create OpenCL Host Buffers and copy datas from the host memory to the buffer
13  // 2. Migrate the data from the cl buffer to device
14  // 3. Write the kernel bitstream to the first available device
15  // 4. Launch the kernel
16  // 5. Retrive the result.
17  public:
18  cl_int err;
19  cl::Context context;
20  std::map<string, cl::Kernel> kernels;
21  std::map<string, cl::CommandQueue> queues;
22 
23  // KernelWrapper();
24  // ~KernelWrapper();
25  };
26 }
cl_int err
Definition: cl_utils.h:18
std::map< string, cl::Kernel > kernels
Definition: cl_utils.h:20
std::map< string, cl::CommandQueue > queues
Definition: cl_utils.h:21
cl::Context context
Definition: cl_utils.h:19
Definition: cl_utils.h:10
Definition: cl_utils.h:6