Machine Precision of GPU
About seven day, I have been think what must I do for my final task explanation chapter. My aims that to show GPU simulation have as same as CPU simulation. But based on the result I have problem like I said in GPU Rounding Problem article. In this section, I am just to present to you about my observe how the precision of GPU, that is part of my final task observation.
Machine precision is maximum number on computer that if added to 1, for example, not changed that number 1. This statement can be ilustrated like Figure 1 below:
Figure 1. Machine precision.
where e=machine precision
Table 1 is show to us the GPU precision as same as the GPU's underflow numbers. Absolutly this is for single-precision overview. This result equally same what happen in CPU. Both of have same machine precision. Otherwise, because I am just use one thread, one block and one kind of GPU, could be somebody else of you have different result with me, please give me an information then. So I will get a conclusion about it.
Download
CUDA code (main.cu)
data_GPU.txt
Read up on IEEE754 floating point numbers.
BalasHapusDenormals are flushed to zero on the GPU, but not so on the CPU. This is one of the differences in implementation between CPU and GPU.