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?
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?

#1
Posted 02/20/2008 04:35 PM   
Okay, I have found the cause of this error. I have defined distCorr as a double global in another file.

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



Sorry about this.

#2
Posted 02/22/2008 10:11 PM   
Scroll To Top