check transfer  0.1
Check data transfer for SDAccell OpenCL application
tf_device.h
Go to the documentation of this file.
1 /*
2  * tf_device.h
3  *
4  * Created on: Sep 4, 2017
5  * Author: user52
6  */
7 
8 #ifndef SRC_HOST_TF_DEVICE_H_
9 #define SRC_HOST_TF_DEVICE_H_
10 
11 #include "xcl2.hpp"
12 
13 /**
14 * \brief common data for OpenCL device
15 *
16 */
17 class TF_Device {
18 public:
19  TF_Device( int argc, char** argv );
20  virtual ~TF_Device();
21 
22  std::string deviceName; //!< OpenCL device name
23 
24  std::string xclbinFileName; //!< file name for container
25 
26  cl::Device device; //!< OpenCL device
27  cl::Context context; //!< OpenCL context
28  cl::Program program; //!< OpenCL program
29 
30 };
31 
32 #endif /* SRC_HOST_TF_DEVICE_H_ */
cl::Program program
OpenCL program.
Definition: tf_device.h:28
TF_Device(int argc, char **argv)
Definition: tf_device.cpp:21
cl::Context context
OpenCL context.
Definition: tf_device.h:27
std::string xclbinFileName
file name for container
Definition: tf_device.h:24
virtual ~TF_Device()
Definition: tf_device.cpp:49
common data for OpenCL device
Definition: tf_device.h:17
cl::Device device
OpenCL device.
Definition: tf_device.h:26
std::string deviceName
OpenCL device name.
Definition: tf_device.h:22