-
Notifications
You must be signed in to change notification settings - Fork 28
/
CUDAMoments.h
62 lines (46 loc) · 2.05 KB
/
CUDAMoments.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef CUDAMoments_h
#define CUDAMoments_h 1
#include "cuda_typedef.h"
/** CUDA version of momEvalFmomrcm. */
#ifdef CUDA_UNIT_TEST
__global__ void
#else
__device__ inline void __attribute__(( always_inline ))
#endif
CUDA_momEvalFmomrcm(const CudaMultipoleMoments* _m,
const CudaVector3D* _r,
cudatype dir,
CudaVector3D* out,
cudatype* pot);
#ifdef GPU_LOCAL_TREE_WALK
__device__ inline void __attribute__(( always_inline ))
addCudaVector3D(CudaVector3D &a, CudaVector3D &b, CudaVector3D &c);
__device__ inline void __attribute__(( always_inline ))
minusCudaVector3D(CudaVector3D &a, CudaVector3D &b, CudaVector3D &c);
__device__ inline void __attribute__(( always_inline ))
assignCudaVector3D(CudaVector3D &a, CudaVector3D &b);
__device__ inline bool __attribute__(( always_inline ))
CUDA_intersect(CUDABucketNode &b, CudaSphere &s);
__device__ inline bool __attribute__(( always_inline ))
CUDA_intersect(CudaSphere &s1, CudaSphere &s2);
__device__ inline bool __attribute__(( always_inline ))
CUDA_contains(const CudaSphere &s, const CudaVector3D &v);
__device__ inline bool __attribute__(( always_inline ))
CUDA_contained(const CUDATreeNode &b, const CudaSphere &s);
__device__ inline int __attribute__(( always_inline ))
CUDA_openSoftening(CUDATreeNode &node, CUDABucketNode &myNode);
__device__ inline CudaVector3D __attribute__(( always_inline ))
CUDA_openCriterionNode(CUDATreeNode &node,
CUDABucketNode &myNode,
int localIndex,
cudatype theta,
cudatype thetaMono);
__device__ inline void __attribute__(( always_inline ))
CUDA_SPLINEQ(cudatype invr, cudatype r2, cudatype twoh, cudatype& a,
cudatype& b,cudatype& c,cudatype& d);
__device__ inline void __attribute__(( always_inline ))
CUDA_SPLINE(cudatype r2, cudatype twoh, cudatype &a, cudatype &b);
__device__ inline int __attribute__(( always_inline ))
CUDA_OptAction(int fakeOpen, int nodetype);
#endif //GPU_LOCAL_TREE_WALK
#endif /* CUDAMoments_h */