MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit c177983a authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

Add an empty opencl kernel that does nothing and use a dim of zero

parent 453a95b1
// @SCALFMM_PRIVATE
#ifndef FEMPTYOPENCLCODE_HPP
#define FEMPTYOPENCLCODE_HPP
// Return the same thing as FEmptyKernel.cl
class FEmptyOpenCLCode{
public:
FEmptyOpenCLCode(){
}
const char* getKernelCode(const int /*inDevId*/){
const char* kernelcode =
"typedef long long int MortonIndex; \
\
typedef struct OutOfBlockInteraction{ \
MortonIndex outIndex; \
MortonIndex insideIndex; \
int outPosition; \
} __attribute__ ((aligned (1))); \
struct Uptr9{ \
__global unsigned char* ptrs[9]; \
} __attribute__ ((aligned (1))); \
struct size_t9{ \
size_t v[9]; \
}__attribute__ ((aligned (1))); \
__kernel void FOpenCL__bottomPassPerform(__global unsigned char* leafCellsPtr, size_t leafCellsSize, \
__global unsigned char* containersPtr, size_t containersSize, \
__global void* userkernel ){ \
} \
__kernel void FOpenCL__upwardPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, \
struct Uptr9 subCellGroupsPtr, struct size_t9 subCellGroupsSize, \
int nbSubCellGroups, int idxLevel, __global void* userkernel){ \
} \
__kernel void FOpenCL__transferInoutPassPerformMpi(__global unsigned char* currentCellsPtr, size_t currentCellsSize, \
__global unsigned char* externalCellsPtr, size_t externalCellsSize, \
int idxLevel, const __global struct OutOfBlockInteraction* outsideInteractions, \
size_t nbOutsideInteractions, __global void* userkernel){ \
} \
__kernel void FOpenCL__transferInPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, \
int idxLevel, __global void* userkernel){ \
} \
__kernel void FOpenCL__transferInoutPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, \
__global unsigned char* externalCellsPtr, size_t externalCellsSize, \
int idxLevel, const __global struct OutOfBlockInteraction* outsideInteractions, \
size_t nbOutsideInteractions, __global void* userkernel){ \
} \
__kernel void FOpenCL__downardPassPerform(__global unsigned char* currentCellsPtr, size_t currentCellsSize, \
struct Uptr9 subCellGroupsPtr, struct size_t9 subCellGroupsSize, \
int nbSubCellGroups, int idxLevel, __global void* userkernel){ \
} \
__kernel void FOpenCL__directInoutPassPerformMpi(__global unsigned char* containersPtr, size_t containersSize, \
__global unsigned char* externalContainersPtr, size_t externalContainersSize, \
const __global struct OutOfBlockInteraction* outsideInteractions, \
size_t nbOutsideInteractions, const int treeHeight, __global void* userkernel){ \
} \
__kernel void FOpenCL__directInPassPerform(__global unsigned char* containersPtr, size_t containersSize, \
const int treeHeight, __global void* userkernel){ \
} \
__kernel void FOpenCL__directInoutPassPerform(__global unsigned char* containersPtr, size_t containersSize, \
__global unsigned char* externalContainersPtr, size_t externalContainersSize, \
const __global struct OutOfBlockInteraction* outsideInteractions, \
size_t nbOutsideInteractions, const int treeHeight, __global void* userkernel){ \
} \
__kernel void FOpenCL__mergePassPerform(__global unsigned char* leafCellsPtr, size_t leafCellsSize, \
__global unsigned char* containersPtr, size_t containersSize, \
__global void* userkernel){ \
}";
return kernelcode;
}
void releaseKernelCode(){
}
size_t getNbDims() const {
return 0;
}
const size_t* getDimSizes() const {
return nullptr;
}
};
#endif // FEMPTYOPENCLCODE_HPP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment