FEmptyKernel.cl 4.75 KB
Newer Older
1
/** This file contains the prototype for a kernel in opencl */
2
// @SCALFMM_PRIVATE
3 4 5

typedef long long int MortonIndex;

BRAMAS Berenger's avatar
BRAMAS Berenger committed
6 7
#define DefaultStructAlign ___DefaultStructAlign___

8
struct OutOfBlockInteraction{
9 10
    MortonIndex outIndex;
    MortonIndex insideIndex;
BRAMAS Berenger's avatar
BRAMAS Berenger committed
11
    int relativeOutPosition;
BRAMAS Berenger's avatar
BRAMAS Berenger committed
12
} __attribute__ ((aligned (DefaultStructAlign)));
BRAMAS Berenger's avatar
BRAMAS Berenger committed
13 14
struct Uptr9{
    __global unsigned char* ptrs[9];
BRAMAS Berenger's avatar
BRAMAS Berenger committed
15
} __attribute__ ((aligned (DefaultStructAlign)));
BRAMAS Berenger's avatar
BRAMAS Berenger committed
16 17
struct size_t9{
    size_t v[9];
BRAMAS Berenger's avatar
BRAMAS Berenger committed
18
}__attribute__ ((aligned (DefaultStructAlign)));
19
__kernel void FOpenCL__bottomPassPerform(__global unsigned char* leafCellsPtr, size_t leafCellsSize,__global unsigned char* leafCellsUpPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
20 21
                                         __global unsigned char* containersPtr, size_t containersSize,
                                         __global void* userkernel ){
22
}
23 24
__kernel void FOpenCL__upwardPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, __global unsigned char* currentCellsUpPtr,
                                  struct Uptr9 subCellGroupsPtr, struct size_t9 subCellGroupsSize, struct Uptr9 subCellGroupsUpPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
25
                                  int nbSubCellGroups, int idxLevel, __global void* userkernel){
26
}
27 28
__kernel  void FOpenCL__transferInoutPassPerformMpi(__global unsigned char* currentCellsPtr, size_t currentCellsSize, __global unsigned char* currentCellsDownPtr,
                                             __global unsigned char* externalCellsPtr, size_t externalCellsSize, __global unsigned char* externalCellsUpPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
29
                                             int idxLevel, const __global struct OutOfBlockInteraction* outsideInteractions,
BRAMAS Berenger's avatar
wip  
BRAMAS Berenger committed
30
                                             size_t nbOutsideInteractions, __global void* userkernel){
31
}
BRAMAS Berenger's avatar
BRAMAS Berenger committed
32
__kernel  void FOpenCL__transferInPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize,
33
                                        __global unsigned char* currentCellsUpPtr, __global unsigned char* currentCellsDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
34
                                       int idxLevel, __global void* userkernel){
35
}
BRAMAS Berenger's avatar
BRAMAS Berenger committed
36
__kernel void FOpenCL__transferInoutPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize,
37
                                         __global unsigned char*  currentCellsUpPtr, __global unsigned char*  currentCellsDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
38
                                         __global unsigned char* externalCellsPtr, size_t externalCellsSize,
39
                                         __global unsigned char* externalCellsUpPtr, __global unsigned char* externalCellsDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
40
                                         int idxLevel, const __global struct OutOfBlockInteraction* outsideInteractions,
BRAMAS Berenger's avatar
wip  
BRAMAS Berenger committed
41
                                         size_t nbOutsideInteractions, __global void* userkernel){
42
}
43 44
__kernel void FOpenCL__downardPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, __global unsigned char* currentCellsDownPtr,
                                   struct Uptr9 subCellGroupsPtr, struct size_t9 subCellGroupsSize, struct Uptr9 subCellGroupsDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
45
                                   int nbSubCellGroups, int idxLevel, __global void* userkernel){
46
}
47 48
__kernel void FOpenCL__directInoutPassPerformMpi(__global unsigned char* containersPtr, size_t containersSize, __global unsigned char* containersDownPtr,
                                          __global unsigned char* externalContainersPtr, size_t externalContainersSize, __global unsigned char* outsideInteractionsCl,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
49
                                          const __global struct OutOfBlockInteraction* outsideInteractions,
BRAMAS Berenger's avatar
wip  
BRAMAS Berenger committed
50
                                          size_t nbOutsideInteractions, const int treeHeight, __global void* userkernel){
51
}
52
__kernel void FOpenCL__directInPassPerform(__global unsigned char* containersPtr, size_t containersSize, __global unsigned char* containersDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
53
                                    const int treeHeight, __global void* userkernel){
54
}
55 56
__kernel void FOpenCL__directInoutPassPerform(__global unsigned char* containersPtr, size_t containersSize, __global unsigned char* containersDownPtr,
                                       __global unsigned char* externalContainersPtr, size_t externalContainersSize, __global unsigned char* externalContainersDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
57
                                       const __global struct OutOfBlockInteraction* outsideInteractions,
BRAMAS Berenger's avatar
wip  
BRAMAS Berenger committed
58
                                       size_t nbOutsideInteractions, const int treeHeight, __global void* userkernel){
59
}
60 61
__kernel void FOpenCL__mergePassPerform(__global unsigned char* leafCellsPtr, size_t leafCellsSize, __global unsigned char* leafCellsDownPtr,
                                 __global unsigned char* containersPtr, size_t containersSize, __global unsigned char* containersDownPtr,
BRAMAS Berenger's avatar
BRAMAS Berenger committed
62
                                 __global void* userkernel){
63
}
BRAMAS Berenger's avatar
BRAMAS Berenger committed
64