I am trying to use a double type in openCL, but it doesn’t work anyway, I want to use double for more precision, if any other type does this, please tell me.
If you don’t have time to read my code, resume: I want to use double (or another type) in openCL for more accurate pi calculation.
My code is:
#pragma OPENCL EXTENSION cl_amd_fp64 : enable
when i paste into kernelSource:
output = 4.0;
the only way i get 512.0001230239868164062500000000000000000000000000000
in the results.
or 1.0 = 0.00781250184809323400259017944335937500000000000
source share