Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
BIAS::clfRadixSort Class Reference

#include <OpenCLFramework/Algorithm/clfRadixSort.hh>

+ Inheritance diagram for BIAS::clfRadixSort:
+ Collaboration diagram for BIAS::clfRadixSort:

Public Member Functions

void ApplyPermutation (clfBuffer *in, clfBuffer *out, int elemsize, int numElems, bool hightolow=false)
 
void Check (void)
 
 clfRadixSort (clfContext *ctx=NULL, bool sharedGL=false, unsigned int device=0)
 
clfProgramGetCLProgram ()
 
clfContextGetContext ()
 
unsigned int * GetPermutation (unsigned int num=0)
 
void Histogram (unsigned int pass)
 
void Host2GPU (void)
 
void RecupGPU (void)
 
void Reorder (unsigned int pass)
 
void Resize (int nn)
 
void ScanHistogram (void)
 
void SetData (int num, float *data, int scale=1)
 
void SetData (int num, clfBuffer *data)
 
void Sort ()
 
void Transpose (int nbrow, int nbcol)
 
virtual ~clfRadixSort ()
 

Static Public Member Functions

static void getlocsize (const unsigned int val, unsigned int &result)
 
static unsigned int getlocsize (const unsigned int val)
 

Public Attributes

clfBufferd_globsum
 
clfBufferd_Histograms
 
clfBufferd_inKeys
 
clfBufferd_inPermut
 
clfBufferd_outKeys
 
clfBufferd_outPermut
 
clfBufferd_temp
 
unsigned int h_checkKeys [(1<< 23)]
 
unsigned int h_globsum [512]
 
unsigned int h_Histograms [5 *16 *16]
 
unsigned int h_initialPermut [(1<< 23)]
 
unsigned int h_Keys [(1<< 23)]
 
unsigned int h_Permut [(1<< 23)]
 
float histo_time
 
unsigned int nkeys
 
unsigned int nkeys_rounded
 
float reorder_time
 
float scan_time
 
float sort_time
 
float transpose_time
 

Protected Member Functions

void InitInternal_ (clfContext *ctx, bool sharedGL, unsigned int device)
 

Protected Attributes

clfContextcontext_
 
int device_
 
bool isSharedGL_
 
int maxComputeUnits_
 
bool ownContext_
 
clfProgramprogramCL_
 

Detailed Description

Definition at line 24 of file clfRadixSort.hh.

Constructor & Destructor Documentation

clfRadixSort::clfRadixSort ( clfContext ctx = NULL,
bool  sharedGL = false,
unsigned int  device = 0 
)
clfRadixSort::~clfRadixSort ( )
virtual

Definition at line 261 of file clfRadixSort.cpp.

References d_globsum, d_Histograms, d_inKeys, d_inPermut, d_outKeys, and d_outPermut.

Member Function Documentation

void clfRadixSort::ApplyPermutation ( clfBuffer in,
clfBuffer out,
int  elemsize,
int  numElems,
bool  hightolow = false 
)
void clfRadixSort::Check ( void  )

Definition at line 241 of file clfRadixSort.cpp.

References h_Keys, nkeys, and RecupGPU().

clfProgram* BIAS::clfAlgorithm::GetCLProgram ( )
inlineinherited

Definition at line 25 of file clfAlgorithm.hh.

clfContext* BIAS::clfAlgorithm::GetContext ( )
inlineinherited

Definition at line 23 of file clfAlgorithm.hh.

void BIAS::clfAlgorithm::getlocsize ( const unsigned int  val,
unsigned int &  result 
)
staticinherited

Definition at line 53 of file clfAlgorithm.cpp.

unsigned int BIAS::clfAlgorithm::getlocsize ( const unsigned int  val)
staticinherited

Definition at line 57 of file clfAlgorithm.cpp.

unsigned int * clfRadixSort::GetPermutation ( unsigned int  num = 0)
void clfRadixSort::Histogram ( unsigned int  pass)
void clfRadixSort::Host2GPU ( void  )
void BIAS::clfAlgorithm::InitInternal_ ( clfContext ctx,
bool  sharedGL,
unsigned int  device 
)
protectedinherited
void clfRadixSort::RecupGPU ( void  )
void clfRadixSort::Reorder ( unsigned int  pass)
void clfRadixSort::Resize ( int  nn)

Definition at line 127 of file clfRadixSort.cpp.

References d_inKeys, nkeys, nkeys_rounded, and BIAS::clfBuffer::WriteToBuffer().

Referenced by SetData().

void clfRadixSort::ScanHistogram ( void  )
void clfRadixSort::SetData ( int  num,
float *  data,
int  scale = 1 
)

Definition at line 107 of file clfRadixSort.cpp.

References h_Keys, h_Permut, Host2GPU(), and Resize().

Referenced by BIAS::clfTrimmedICP::ComputeNearestPoints_().

void clfRadixSort::SetData ( int  num,
clfBuffer data 
)
void clfRadixSort::Sort ( )
void clfRadixSort::Transpose ( int  nbrow,
int  nbcol 
)

Member Data Documentation

clfContext* BIAS::clfAlgorithm::context_
protectedinherited
clfBuffer* BIAS::clfRadixSort::d_globsum

Definition at line 74 of file clfRadixSort.hh.

Referenced by clfRadixSort(), RecupGPU(), ScanHistogram(), and ~clfRadixSort().

clfBuffer* BIAS::clfRadixSort::d_Histograms

Definition at line 69 of file clfRadixSort.hh.

Referenced by clfRadixSort(), RecupGPU(), ScanHistogram(), and ~clfRadixSort().

clfBuffer* BIAS::clfRadixSort::d_inKeys
clfBuffer* BIAS::clfRadixSort::d_inPermut
clfBuffer* BIAS::clfRadixSort::d_outKeys

Definition at line 83 of file clfRadixSort.hh.

Referenced by clfRadixSort(), Reorder(), Transpose(), and ~clfRadixSort().

clfBuffer* BIAS::clfRadixSort::d_outPermut

Definition at line 89 of file clfRadixSort.hh.

Referenced by clfRadixSort(), Reorder(), Transpose(), and ~clfRadixSort().

clfBuffer* BIAS::clfRadixSort::d_temp

Definition at line 75 of file clfRadixSort.hh.

Referenced by clfRadixSort(), Reorder(), ScanHistogram(), and Transpose().

int BIAS::clfAlgorithm::device_
protectedinherited
unsigned int BIAS::clfRadixSort::h_checkKeys[(1<< 23)]

Definition at line 80 of file clfRadixSort.hh.

unsigned int BIAS::clfRadixSort::h_globsum[512]

Definition at line 73 of file clfRadixSort.hh.

Referenced by RecupGPU().

unsigned int BIAS::clfRadixSort::h_Histograms[5 *16 *16]

Definition at line 68 of file clfRadixSort.hh.

Referenced by RecupGPU().

unsigned int BIAS::clfRadixSort::h_initialPermut[(1<< 23)]

Definition at line 87 of file clfRadixSort.hh.

Referenced by clfRadixSort(), and SetData().

unsigned int BIAS::clfRadixSort::h_Keys[(1<< 23)]

Definition at line 81 of file clfRadixSort.hh.

Referenced by Check(), Host2GPU(), RecupGPU(), and SetData().

unsigned int BIAS::clfRadixSort::h_Permut[(1<< 23)]

Definition at line 86 of file clfRadixSort.hh.

Referenced by GetPermutation(), Host2GPU(), RecupGPU(), and SetData().

float BIAS::clfRadixSort::histo_time

Definition at line 92 of file clfRadixSort.hh.

Referenced by clfRadixSort(), and Sort().

bool BIAS::clfAlgorithm::isSharedGL_
protectedinherited
int BIAS::clfAlgorithm::maxComputeUnits_
protectedinherited
unsigned int BIAS::clfRadixSort::nkeys

Definition at line 78 of file clfRadixSort.hh.

Referenced by Check(), clfRadixSort(), Resize(), and Sort().

unsigned int BIAS::clfRadixSort::nkeys_rounded

Definition at line 79 of file clfRadixSort.hh.

Referenced by clfRadixSort(), Histogram(), Reorder(), Resize(), and Sort().

bool BIAS::clfAlgorithm::ownContext_
protectedinherited
clfProgram* BIAS::clfAlgorithm::programCL_
protectedinherited
float BIAS::clfRadixSort::reorder_time

Definition at line 92 of file clfRadixSort.hh.

Referenced by clfRadixSort(), and Sort().

float BIAS::clfRadixSort::scan_time

Definition at line 92 of file clfRadixSort.hh.

Referenced by clfRadixSort(), and Sort().

float BIAS::clfRadixSort::sort_time

Definition at line 92 of file clfRadixSort.hh.

Referenced by Sort().

float BIAS::clfRadixSort::transpose_time

Definition at line 92 of file clfRadixSort.hh.

Referenced by clfRadixSort(), and Sort().


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