changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
CudaFunctions.h
1 #ifndef _CUDAFUNCTIONS_H_
2 #define _CUDAFUNCTIONS_H_
3 
4 #ifdef CUDA
5 #include "hapi.h"
6 #include "HostCUDA.h"
7 void TreePieceCellListDataTransferBasic(CudaRequest *data, hapiWorkRequest *wr);
8 void TreePiecePartListDataTransferBasic(CudaRequest *data, hapiWorkRequest *wr);
9 
10 #ifdef GPU_LOCAL_TREE_WALK
11 __global__ void gpuLocalTreeWalk(
12  CompactPartData *particleCores,
13  VariablePartData *particleVars,
14  CudaMultipoleMoments* moments,
15  int firstParticle,
16  int lastParticle,
17  int rootIdx,
20  int nReplicas,
21  cudatype fperiod,
22  cudatype fperiodY,
23  cudatype fperiodZ);
24 #endif //GPU_LOCAL_TREE_WALK
25 
26 __global__ void nodeGravityComputation(
27  CompactPartData *particleCores,
28  VariablePartData *particleVars,
29  CudaMultipoleMoments *moments,
30  ILCell *ils,
31  int *ilmarks,
32  int *bucketStarts,
33  int *bucketSizes,
34  cudatype fperiod
35  );
36 
37 #ifdef CUDA_2D_TB_KERNEL
38 __global__ void particleGravityComputation(
39  CompactPartData *targetCores,
40  VariablePartData *targetVars,
41  CompactPartData *sourceCores,
42  ILCell *ils,
43  int *ilmarks,
44  int *bucketStarts,
45  int *bucketSizes,
46  cudatype fperiod);
47 #else
48 __global__ void particleGravityComputation(
49  CompactPartData *targetCores,
50  VariablePartData *targetVars,
51  CompactPartData *sourceCores,
52  ILPart *ils,
53  int *ilmarks,
54  int *bucketStarts,
55  int *bucketSizes,
56  cudatype fperiod);
57 #endif
58 
59 #endif
60 
61 #endif
Version of MultipoleMoments using cudatype.
Definition: cuda_typedef.h:95
Particle data that gets calculated by the GPU.
Definition: cuda_typedef.h:259
cosmoType theta
BH-like opening criterion.
Definition: ParallelGravity.cpp:142
Bucket of particles on the interaction list for the GPU.
Definition: cuda_typedef.h:199
float cudatype
floating point type on the GPU
Definition: cuda_typedef.h:12
Particle data needed on the GPU to calculate gravity.
Definition: cuda_typedef.h:231
Data and parameters for requesting gravity calculations on the GPU.
Definition: HostCUDA.h:107
Cell on the interaction list for the GPU.
Definition: cuda_typedef.h:216
cosmoType thetaMono
Definition: ParallelGravity.cpp:143