Precision when reading image with CLK_FILTER_LINEAR in OpenCL
问题 The code I used is from this question OpenCL image3d linear sampling , I've tested in 2d and 3d, both with huge diff between CPU and GPU. Here is the result of CPU: coordinate:0.000000, result: 0.000000 coordinate:0.100000, result: 0.000000 coordinate:0.200000, result: 0.000000 coordinate:0.300000, result: 10.156250 coordinate:0.400000, result: 30.078125 coordinate:0.500000, result: 50.000000 coordinate:0.600000, result: 69.921875 coordinate:0.700000, result: 89.843750 coordinate:0.800000,