MATLAB: Gpu computing vs complex operation

complexgpuMATLAB

Hi , I have a question, is there any difference between gpu and cpu while they are handling operation that involve with complex ?

Best Answer

Yes, there is.
  1. NVIDIA GPUs do not adhere strictly to IEEE 754 standards, especially with respect to signalling NaN and gradual underflow and rounding modes and details of permitted error in the last few bits
  2. The order of operations is not guaranteed to be the same between CPU and GPU. GPU kernel generation optimizes operations for efficiency, not for strict adherence to MATLAB or C or C++ order of operation rules
  3. The high performance math libraries used on CPU are not the same as the libraries used on GPU
In short, you should expect that the results calculated on GPU for any floating point operations may differ from the results on CPUs.