Hello Im using Geforece9800GT on Windows platform. I was trying to use float1 type so that I can align my code. However, Im stuck with this part.
So the following code gives me an error saying.
"error: no suitable conversion function from “float1” to “float” exists.
code:
global void kernel( float1 *b, int1 *c, float1 *sum_spectrum, float1 resamp, float k_resampledspacing, uchar4 ptr ){
int x = blockIdx.xXDIM/2 + threadIdx.x;
int1 i, offset;
float1 data[2YDIM];
float1 phase, temp, datatemp;
…
phase.x = D1*(y-YDIM/2)(y-YDIM/2);
data[2y].x = datatemp.x * __cosf(phase); // this line
data[2*y+1].x = datatemp.x * __sinf(phase); // this line
…
}
Im not sure why the code (this line) should give me that error. Can somebody find the reason? Thank you for helping me.