RISA
risa::OfflineLoaderPerfTest Class Reference

This stage fills the software pipeline with input data stored in ram. More...

#include <OfflineLoader_perfTest.h>

Collaboration diagram for risa::OfflineLoaderPerfTest:

Public Types

using manager_type = glados::cuda::HostMemoryManager< unsigned short, glados::cuda::async_copy_policy >
 

Public Member Functions

 OfflineLoaderPerfTest (const std::string &address, const std::string &configFile)
 
auto loadImage () -> glados::Image< manager_type >
 loadImage is called, when the software pipeline is able to process a new image More...
 

Protected Member Functions

 ~OfflineLoaderPerfTest ()
 

Private Member Functions

auto readInput () -> void
 
auto readConfig (const std::string &configFile) -> bool
 

Private Attributes

unsigned int memoryPoolIndex_
 stores the indeces received when registering in MemoryPool More...
 
std::queue< glados::Image< manager_type > > buffer_
 the buffer which stores the test data set More...
 
double worstCaseTime_
 
double bestCaseTime_
 
Timer tmr_
 
std::string path_
 the input path of raw data More...
 
std::string fileName_
 the input filename More...
 
std::string fileEnding_
 the fileending of the input data More...
 
int numberOfDetectors_
 the number of detectors in the fan beam sinogram More...
 
int numberOfProjections_
 the number of projections in the fan beam sinogram More...
 
int numberOfDetectorModules_
 the number of detector modules More...
 
int numberOfPlanes_
 the number of planes More...
 
unsigned int numberOfFrames_
 the number of frames in the input data for one plane More...
 
std::size_t stopFrame_
 
std::size_t index_
 

Detailed Description

This stage fills the software pipeline with input data stored in ram.

To perform a longer performance test, input data is sent out continously up to a specified number of frames.

Definition at line 51 of file OfflineLoader_perfTest.h.

Member Typedef Documentation

Constructor & Destructor Documentation

risa::OfflineLoaderPerfTest::OfflineLoaderPerfTest ( const std::string &  address,
const std::string &  configFile 
)

Definition at line 36 of file OfflineLoader_perfTest.cu.

risa::OfflineLoaderPerfTest::~OfflineLoaderPerfTest ( )
protected

Definition at line 54 of file OfflineLoader_perfTest.cu.

Member Function Documentation

auto risa::OfflineLoaderPerfTest::loadImage ( ) -> glados::Image<manager_type>

loadImage is called, when the software pipeline is able to process a new image

Returns
the image that is pushed through the software pipeline

Definition at line 59 of file OfflineLoader_perfTest.cu.

auto risa::OfflineLoaderPerfTest::readConfig ( const std::string &  configFile) -> bool
private

All values needed for setting up the class are read from the config file in this function.

Parameters
[in]configFilepath to config file
Returns
returns true, if configuration file could be read successfully, else false

Definition at line 142 of file OfflineLoader_perfTest.cu.

auto risa::OfflineLoaderPerfTest::readInput ( ) -> void
private

Definition at line 84 of file OfflineLoader_perfTest.cu.

Member Data Documentation

double risa::OfflineLoaderPerfTest::bestCaseTime_
private

Definition at line 74 of file OfflineLoader_perfTest.h.

std::queue<glados::Image<manager_type> > risa::OfflineLoaderPerfTest::buffer_
private

the buffer which stores the test data set

Definition at line 71 of file OfflineLoader_perfTest.h.

std::string risa::OfflineLoaderPerfTest::fileEnding_
private

the fileending of the input data

Definition at line 80 of file OfflineLoader_perfTest.h.

std::string risa::OfflineLoaderPerfTest::fileName_
private

the input filename

Definition at line 79 of file OfflineLoader_perfTest.h.

std::size_t risa::OfflineLoaderPerfTest::index_
private

Definition at line 88 of file OfflineLoader_perfTest.h.

unsigned int risa::OfflineLoaderPerfTest::memoryPoolIndex_
private

stores the indeces received when registering in MemoryPool

Definition at line 70 of file OfflineLoader_perfTest.h.

int risa::OfflineLoaderPerfTest::numberOfDetectorModules_
private

the number of detector modules

Definition at line 83 of file OfflineLoader_perfTest.h.

int risa::OfflineLoaderPerfTest::numberOfDetectors_
private

the number of detectors in the fan beam sinogram

Definition at line 81 of file OfflineLoader_perfTest.h.

unsigned int risa::OfflineLoaderPerfTest::numberOfFrames_
private

the number of frames in the input data for one plane

Definition at line 85 of file OfflineLoader_perfTest.h.

int risa::OfflineLoaderPerfTest::numberOfPlanes_
private

the number of planes

Definition at line 84 of file OfflineLoader_perfTest.h.

int risa::OfflineLoaderPerfTest::numberOfProjections_
private

the number of projections in the fan beam sinogram

Definition at line 82 of file OfflineLoader_perfTest.h.

std::string risa::OfflineLoaderPerfTest::path_
private

the input path of raw data

Definition at line 78 of file OfflineLoader_perfTest.h.

std::size_t risa::OfflineLoaderPerfTest::stopFrame_
private

Definition at line 87 of file OfflineLoader_perfTest.h.

Timer risa::OfflineLoaderPerfTest::tmr_
private

Definition at line 75 of file OfflineLoader_perfTest.h.

double risa::OfflineLoaderPerfTest::worstCaseTime_
private

Definition at line 73 of file OfflineLoader_perfTest.h.


The documentation for this class was generated from the following files: