Error: A value of type float * cannot be ...

Hello all,

I get the error: A value of type float * cannot be assigned to an entity of type double*.

Up in the top of the code I declare:

device float* distCorr;

Then in my function I say:

global slice_kernal(float *distCorr_ … ){

distCorr = distCorr_;

}

Why does this not work? I thought CUDA didn’t support doubles at all, why is distCorr being compiled as double?

Okay, I have found the cause of this error. I have defined distCorr as a double global in another file.

Sorry about this.