LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: MikOfClassX on March 30, 2011, 07:44:03

Title: OpenCL DemoFractal on NVIDIA compile error
Post by: MikOfClassX on March 30, 2011, 07:44:03
Win7-64, NVidia 267.59

OpenCL COMPILER OPTIONS: -D USE_TEXTURE -D DOUBLE_FP
BUILD LOG: <program source>:74:53: error: can't convert between vector values of different size ('float4' and 'double')
            write_imagef(output, (int2)(ix, iy), oc / _255);

But works perfectly with doublePrecision=false (runs at 173 fps)

So, looks like the isDoubleFPAvailable() gives TRUE but it's not really supported by hardware.. I'm confused.

Cheers,

Mik
Title: Re: OpenCL DemoFractal on NVIDIA compile error
Post by: spasi on April 02, 2011, 11:47:04
Could you grab Mandelbrot.cl from SVN and see if it's fixed now?
Title: Re: OpenCL DemoFractal on NVIDIA compile error
Post by: MikOfClassX on April 05, 2011, 07:23:43
Yes, it is! 58FPS in double precision.. Well done!

I'm a bit confused about the speed of OpenCL. I was expecting different numbers..

Cheers!