I defined the cuda kernel function in .h file and implemented it in .cu file as below
In .h file
typedef struct _tagSFeature
{
...
}SFeature;
__global__ void Kernel(SFeature* pProbFeatures, SFeature* pGalleryFeatures, int nProbNum, int nGalleryNum, float* prDistMat);
In .cu file
__global__ void Kernel(SFeature* pProbFeatures, SFeature* pGalleryFeatures, int nProbNum, int nGalleryNum, float* prDistMat)
{
...
}
then, when compile this .cu file, error occured - error C2440: ‘type cast’ : cannot convert from ‘overloaded-function’ to xxx
What is the problem?