VM2D  1.12
Vortex methods for 2D flows simulation
BHcu::CudaSorter Struct Reference
Collaboration diagram for BHcu::CudaSorter:

Public Member Functions

 CudaSorter (int npoints, const realVortex *pointsl)
 
float calc ()
 
 ~CudaSorter ()
 

Public Attributes

int * pointsMortonCodesKeyl
 
int * pointsMortonCodesKeyUnsortl
 
int * pointsMortonCodesIdxl
 
int * pointsMortonCodesIdxUnsortl
 
int npoints_
 
CudaCalcGab gab
 
const realVortex * pointsl_
 

Detailed Description

Definition at line 130 of file wrapper.cpp.

Constructor & Destructor Documentation

BHcu::CudaSorter::CudaSorter ( int  npoints,
const realVortex *  pointsl 
)
inline

Definition at line 142 of file wrapper.cpp.

143  : npoints_(npoints), pointsl_(pointsl)
144  {
145  pointsMortonCodesKeyl = (int*)cudaNew(npoints, sizeof(int));
146  pointsMortonCodesKeyUnsortl = (int*)cudaNew(npoints, sizeof(int));
147 
148  pointsMortonCodesIdxl = (int*)cudaNew(npoints, sizeof(int));
149  pointsMortonCodesIdxUnsortl = (int*)cudaNew(npoints, sizeof(int));
150  };
int * pointsMortonCodesIdxUnsortl
Definition: wrapper.cpp:136
int * pointsMortonCodesIdxl
Definition: wrapper.cpp:135
int * pointsMortonCodesKeyUnsortl
Definition: wrapper.cpp:133
const realVortex * pointsl_
Definition: wrapper.cpp:140
int * pointsMortonCodesKeyl
Definition: wrapper.cpp:132
BHcu::CudaSorter::~CudaSorter ( )
inline

Definition at line 164 of file wrapper.cpp.

165  {
166  cudaDelete(pointsMortonCodesKeyl);
167  cudaDelete(pointsMortonCodesKeyUnsortl);
168  cudaDelete(pointsMortonCodesIdxl);
169  cudaDelete(pointsMortonCodesIdxUnsortl);
170  }
int * pointsMortonCodesIdxUnsortl
Definition: wrapper.cpp:136
int * pointsMortonCodesIdxl
Definition: wrapper.cpp:135
int * pointsMortonCodesKeyUnsortl
Definition: wrapper.cpp:133
int * pointsMortonCodesKeyl
Definition: wrapper.cpp:132

Member Function Documentation

float BHcu::CudaSorter::calc ( )
inline

Definition at line 152 of file wrapper.cpp.

153  {
154  float timeGab, timeCodes;
155  timeGab = gab.calc(npoints_, pointsl_);
156 
157  timeCodes = McuMortonCodesKernelFree(gab.maxpt, gab.minpt,
160  npoints_, pointsl_);
161  return timeGab + timeCodes;
162  }
int * pointsMortonCodesIdxUnsortl
Definition: wrapper.cpp:136
int * pointsMortonCodesIdxl
Definition: wrapper.cpp:135
realPoint * maxpt
Definition: wrapper.cpp:102
int * pointsMortonCodesKeyUnsortl
Definition: wrapper.cpp:133
CudaCalcGab gab
Definition: wrapper.cpp:139
float calc(int npoints, const realVortex *pointsl)
Definition: wrapper.cpp:116
realPoint * minpt
Definition: wrapper.cpp:103
const realVortex * pointsl_
Definition: wrapper.cpp:140
int * pointsMortonCodesKeyl
Definition: wrapper.cpp:132

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CudaCalcGab BHcu::CudaSorter::gab

Definition at line 139 of file wrapper.cpp.

int BHcu::CudaSorter::npoints_

Definition at line 138 of file wrapper.cpp.

const realVortex* BHcu::CudaSorter::pointsl_

Definition at line 140 of file wrapper.cpp.

int* BHcu::CudaSorter::pointsMortonCodesIdxl

Definition at line 135 of file wrapper.cpp.

int* BHcu::CudaSorter::pointsMortonCodesIdxUnsortl

Definition at line 136 of file wrapper.cpp.

int* BHcu::CudaSorter::pointsMortonCodesKeyl

Definition at line 132 of file wrapper.cpp.

int* BHcu::CudaSorter::pointsMortonCodesKeyUnsortl

Definition at line 133 of file wrapper.cpp.


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