check transfer  0.1
Check data transfer for SDAccell OpenCL application
Public Member Functions | Public Attributes | List of all members
TF_CheckTransferIn_task_data Struct Reference

< Internal data for TF_CheckTransferIn More...

Public Member Functions

 TF_CheckTransferIn_task_data ()
 
 ~TF_CheckTransferIn_task_data ()
 

Public Attributes

cl_ulong8 arrayExpect
 expect values for data block More...
 
cl_uint BlockError
 Count of incorrect blocks. More...
 
cl_uint BlockOk
 Count of correct blocks. More...
 
cl_uint BlockRd
 Count of read blocks. More...
 
cl_uint BlockWr
 Count of written blocks. More...
 
cl_ulong dataExpect
 expect data from input More...
 
cl_ulong dataOut
 current data for output More...
 
std::string deviceName
 OpenCL device name. More...
 
cl::Buffer * dpStatus
 pointer to status buffer in the device memory More...
 
cl_ulong flagGetStatus
 1 - request for get status information More...
 
char * kernelName
 kernel name More...
 
cl::Kernel krnl_calculate
 OpenCL kernel for calculate. More...
 
cl_uint lastBlock
 Number BlockWr for lastTick. More...
 
clock_t lastTick
 Number of last clock() More...
 
time_t lastTime
 time of last interval More...
 
cl_uint mbSize
 bytes count in 1MB More...
 
cl_uint metricMode
 0 - binary: 1MB=2^10 bytes, 1 - decimal: 1MB=10^6 bytes More...
 
cl::Buffer * pBuffer [2]
 pointers to buffers in the device memory More...
 
cl_uint * pBufOut [2]
 pointers to buffers in the host memory More...
 
TF_DevicepDevice
 OpenCL device and program. More...
 
cl_uint * pStatus
 pointer to status buffer in the host memory More...
 
cl::CommandQueue * q0
 Pointer to OpenCL command queue. More...
 
cl::CommandQueue * q1
 Pointer to OpenCL command queue. More...
 
cl_uint RowNumber
 Number of first row in the table. More...
 
cl_uint Sig
 Signature for status buffer. More...
 
cl_uint sizeBlock
 Size of block [bytes]. More...
 
cl_int sizeOfuint16
 Size of block in 512-bit words. More...
 
clock_t startTick
 Number of start clock();. More...
 
time_t startTime
 time of start main test cycle More...
 
float testTime
 Time from test start. More...
 
float VelocityAverage
 average speed (from test start) More...
 
float VelocityCurMax
 maximum of VelocityCurrent More...
 
float VelocityCurMin
 minimum of VelocityCurrent More...
 
float VelocityCurrent
 current speed (on 4 secund interval) More...
 

Detailed Description

< Internal data for TF_CheckTransferIn

Definition at line 17 of file tf_checktransferin.cpp.

Constructor & Destructor Documentation

◆ TF_CheckTransferIn_task_data()

TF_CheckTransferIn_task_data::TF_CheckTransferIn_task_data ( )
inline

Definition at line 72 of file tf_checktransferin.cpp.

73  {
74  BlockWr=0;
75  BlockRd=0;
76  BlockOk=0;
77  BlockError=0;
78  RowNumber=0;
79 
80  lastBlock = 0;
81  testTime = 0;
82 
83  dataOut=dataExpect=0xA0000000;
84 
85 
86  kernelName = "gen_cnt";
87 
88 
89  pBufOut[0]=NULL;
90  pBufOut[1]=NULL;
91 
92  pBuffer[0]=NULL;
93  pBuffer[1]=NULL;
94 
95  pStatus = NULL;
96  dpStatus = NULL;
97 
98  q0=NULL;
99  q1=NULL;
100 
101  flagGetStatus=0;
102  VelocityCurMax=0;
103  VelocityCurMin=0;
104  VelocityAverage=0;
105  VelocityCurrent=0;
106 
107  sizeOfuint16=0;
108  };
cl::CommandQueue * q1
Pointer to OpenCL command queue.
cl_ulong flagGetStatus
1 - request for get status information
cl_uint BlockRd
Count of read blocks.
cl_ulong dataExpect
expect data from input
cl::Buffer * pBuffer[2]
pointers to buffers in the device memory
cl_uint BlockOk
Count of correct blocks.
cl::CommandQueue * q0
Pointer to OpenCL command queue.
float VelocityCurMax
maximum of VelocityCurrent
cl::Buffer * dpStatus
pointer to status buffer in the device memory
cl_int sizeOfuint16
Size of block in 512-bit words.
cl_uint RowNumber
Number of first row in the table.
cl_uint BlockWr
Count of written blocks.
cl_uint * pBufOut[2]
pointers to buffers in the host memory
cl_ulong dataOut
current data for output
cl_uint * pStatus
pointer to status buffer in the host memory
float VelocityCurrent
current speed (on 4 secund interval)
cl_uint lastBlock
Number BlockWr for lastTick.
float VelocityCurMin
minimum of VelocityCurrent
cl_uint BlockError
Count of incorrect blocks.
float VelocityAverage
average speed (from test start)
float testTime
Time from test start.

◆ ~TF_CheckTransferIn_task_data()

TF_CheckTransferIn_task_data::~TF_CheckTransferIn_task_data ( )
inline

Definition at line 110 of file tf_checktransferin.cpp.

111  {
112  }

Member Data Documentation

◆ arrayExpect

cl_ulong8 TF_CheckTransferIn_task_data::arrayExpect

expect values for data block

Definition at line 70 of file tf_checktransferin.cpp.

◆ BlockError

cl_uint TF_CheckTransferIn_task_data::BlockError

◆ BlockOk

cl_uint TF_CheckTransferIn_task_data::BlockOk

◆ BlockRd

cl_uint TF_CheckTransferIn_task_data::BlockRd

◆ BlockWr

cl_uint TF_CheckTransferIn_task_data::BlockWr

◆ dataExpect

cl_ulong TF_CheckTransferIn_task_data::dataExpect

expect data from input

Definition at line 46 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::CheckBuffer().

◆ dataOut

cl_ulong TF_CheckTransferIn_task_data::dataOut

current data for output

Definition at line 45 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), and TF_CheckTransferIn::SetBuffer().

◆ deviceName

std::string TF_CheckTransferIn_task_data::deviceName

OpenCL device name.

Definition at line 58 of file tf_checktransferin.cpp.

◆ dpStatus

cl::Buffer* TF_CheckTransferIn_task_data::dpStatus

◆ flagGetStatus

cl_ulong TF_CheckTransferIn_task_data::flagGetStatus

1 - request for get status information

Definition at line 68 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run(), and TF_CheckTransferIn::StepTable().

◆ kernelName

char* TF_CheckTransferIn_task_data::kernelName

kernel name

Definition at line 49 of file tf_checktransferin.cpp.

◆ krnl_calculate

cl::Kernel TF_CheckTransferIn_task_data::krnl_calculate

OpenCL kernel for calculate.

Definition at line 53 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), and TF_CheckTransferIn::StartCalculateBuf().

◆ lastBlock

cl_uint TF_CheckTransferIn_task_data::lastBlock

Number BlockWr for lastTick.

Definition at line 38 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run().

◆ lastTick

clock_t TF_CheckTransferIn_task_data::lastTick

Number of last clock()

Definition at line 37 of file tf_checktransferin.cpp.

◆ lastTime

time_t TF_CheckTransferIn_task_data::lastTime

time of last interval

Definition at line 43 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run().

◆ mbSize

cl_uint TF_CheckTransferIn_task_data::mbSize

bytes count in 1MB

Definition at line 34 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run(), and TF_CheckTransferIn::TF_CheckTransferIn().

◆ metricMode

cl_uint TF_CheckTransferIn_task_data::metricMode

0 - binary: 1MB=2^10 bytes, 1 - decimal: 1MB=10^6 bytes

Definition at line 33 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetResultInThread(), and TF_CheckTransferIn::TF_CheckTransferIn().

◆ pBuffer

cl::Buffer* TF_CheckTransferIn_task_data::pBuffer[2]

pointers to buffers in the device memory

Definition at line 62 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), TF_CheckTransferIn::Run(), and TF_CheckTransferIn::~TF_CheckTransferIn().

◆ pBufOut

cl_uint* TF_CheckTransferIn_task_data::pBufOut[2]

pointers to buffers in the host memory

Definition at line 60 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), TF_CheckTransferIn::Run(), and TF_CheckTransferIn::~TF_CheckTransferIn().

◆ pDevice

TF_Device* TF_CheckTransferIn_task_data::pDevice

OpenCL device and program.

Definition at line 51 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), and TF_CheckTransferIn::TF_CheckTransferIn().

◆ pStatus

cl_uint* TF_CheckTransferIn_task_data::pStatus

pointer to status buffer in the host memory

Definition at line 66 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetStatus(), TF_CheckTransferIn::PrepareInThread(), and TF_CheckTransferIn::~TF_CheckTransferIn().

◆ q0

cl::CommandQueue* TF_CheckTransferIn_task_data::q0

◆ q1

cl::CommandQueue* TF_CheckTransferIn_task_data::q1

◆ RowNumber

cl_uint TF_CheckTransferIn_task_data::RowNumber

Number of first row in the table.

Definition at line 19 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run(), and TF_CheckTransferIn::StepTable().

◆ Sig

cl_uint TF_CheckTransferIn_task_data::Sig

Signature for status buffer.

Definition at line 26 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetResultInThread(), and TF_CheckTransferIn::GetStatus().

◆ sizeBlock

cl_uint TF_CheckTransferIn_task_data::sizeBlock

◆ sizeOfuint16

cl_int TF_CheckTransferIn_task_data::sizeOfuint16

Size of block in 512-bit words.

Definition at line 25 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::PrepareInThread(), and TF_CheckTransferIn::StartCalculateBuf().

◆ startTick

clock_t TF_CheckTransferIn_task_data::startTick

Number of start clock();.

Definition at line 36 of file tf_checktransferin.cpp.

◆ startTime

time_t TF_CheckTransferIn_task_data::startTime

time of start main test cycle

Definition at line 42 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run().

◆ testTime

float TF_CheckTransferIn_task_data::testTime

◆ VelocityAverage

float TF_CheckTransferIn_task_data::VelocityAverage

average speed (from test start)

Definition at line 28 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetResultInThread(), TF_CheckTransferIn::Run(), and TF_CheckTransferIn::StepTable().

◆ VelocityCurMax

float TF_CheckTransferIn_task_data::VelocityCurMax

maximum of VelocityCurrent

Definition at line 30 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetResultInThread(), and TF_CheckTransferIn::Run().

◆ VelocityCurMin

float TF_CheckTransferIn_task_data::VelocityCurMin

minimum of VelocityCurrent

Definition at line 31 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::GetResultInThread(), and TF_CheckTransferIn::Run().

◆ VelocityCurrent

float TF_CheckTransferIn_task_data::VelocityCurrent

current speed (on 4 secund interval)

Definition at line 27 of file tf_checktransferin.cpp.

Referenced by TF_CheckTransferIn::Run(), and TF_CheckTransferIn::StepTable().


The documentation for this struct was generated from the following file: