Hi all,
I’m trying to use the normalize function and have no idea why but my kernel doesn’t compile…
As soon as I remove the normalize line then everything’s fine…
float4 Dir = (float4)(pos_org[i].x, pos_org[i].y, pos_org[i].z, 0);
//float4 ND = normalize(Dir); <= uncomment that and allocate NDir to v instead and BOOM..
v = Dir;
note that v is also a float4…
I seriously have no idea what’s going on here… is there any compiler option I have to precise ?
Or would that not be available in my driver ?
Note that I use OpenCL 1.1
My GPU is a AMD Radeon HD 6770M
Also… I can’t get the exact compiler error…
I use the c++ bindings and haven’t found a way to get the errors list…
err = o_Program.build(devices, "-cl-fast-relaxed-math");
o_Program is a cl::Program
Thanks in advance !
Stephane