Hi everyone, stuck with this very simple problem. I have a vector of points declared as: cl::vector<cl_float3> points. I also have a buffer declared as
Now I am trying to read in data from a file containing data point coordinates as x, y, z. So, to accomplish this, I use:
fscanf(FID,"%lf %lf %lf",&buff.s,&buff.s,&buff.s);
where FID is the file I have been reading from. The problem is while reading, points takes in data for 10 iterations and then doesnt furthur. The loop goes on operating, but I see nothing in the vector. What am I doing wrong? I used a struct of 3 floats which works perfectly, so I am at a loss figuring out where the problem lies.