I embedded in my project some ~.cu files.
In some of them i need to declare and implement my global functions with an inline to call them somewhere else.
I do this like here:
inline __global__
void devUpdateOutpDelta(
float *pNeuronsX,
float *pErrorX,
float *pOutput)
{
int x = blockIdx.x * blockDim.x + threadIdx.x;
pErrorX[x] = pOutput[x] - pNeuronsX[x];
}
If I dont use inline i will get an:
multiple definition of ... error
Same problems as known from C/C++ source code. But there I dont get these nasty compiler-warnings?!
Is this a nvcc bug?