diff options
Diffstat (limited to 'src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl')
-rw-r--r-- | src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl b/src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl index 640c775..2fc959c 100644 --- a/src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl +++ b/src/com/jogamp/opencl/demos/fractal/Mandelbrot.cl @@ -1,5 +1,9 @@ #ifdef DOUBLE_FP - #pragma OPENCL EXTENSION cl_khr_fp64 : enable + #ifdef AMD_FP + #pragma OPENCL EXTENSION cl_amd_fp64 : enable + #else + #pragma OPENCL EXTENSION cl_khr_fp64 : enable + #endif typedef double varfloat; #else typedef float varfloat; |