Re: Hardcoded float not working?
Posted by
Miha on
Dec 23, 2013; 11:55pm
URL: https://forum.jogamp.org/Hardcoded-float-not-working-tp4030974p4031046.html
Same result using hardcoded kernel:
...
String testKernel = "kernel void fill(global float* a, const int size, const int value) { int index = get_global_id(0); if (index >= size) { return; } a[index] = 0.5f;}";
CLProgram program = context.createProgram(testKernel);
....
Mentioned bug report (
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694660) is describing same problem but I am experiencing it only from Java/JOCL+openCL, not directly (C++).
My sistem is configured as Slovenian (we use commas in numbers), but that shouldn't present any problems..