gpu computing vs complex operation

1 回表示 (過去 30 日間)
Kevin Lin
Kevin Lin 2019 年 12 月 2 日
コメント済み: Edric Ellis 2019 年 12 月 4 日
Hi , I have a question, is there any difference between gpu and cpu while they are handling operation that involve with complex ?

採用された回答

Walter Roberson
Walter Roberson 2019 年 12 月 2 日
編集済み: Walter Roberson 2019 年 12 月 2 日
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.
  5 件のコメント
Walter Roberson
Walter Roberson 2019 年 12 月 3 日
Yes.
Also, the exact result you get out can depend upon the release of nvcc that you have installed.
Edric Ellis
Edric Ellis 2019 年 12 月 4 日
@Walter JFTR, the version of nvcc installed by a user can influence only results computed by CUDAKernel or GPU MEX files compiled with their nvcc. The precise version of the CUDA driver can affect results of previously compiled code (e.g. MATLAB, PCT, and the CUDA libraries it ships).

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by