does 'paralleldemo_gpu_benchmark.m' compare a gpu to a single host core?
then the processing benchmark is biased since host processing with a lot of host cores should outperform gpu double precision by far

1 件のコメント

Walter Roberson
Walter Roberson 2026 年 8 月 25 日 19:59
It depends on what hardware you have.
AMD Instinct MI300X Delivers 163.4 TFLOPS for FP64... and goes for about $US39000
NVIDIA H100 (SXM): 67 TFLOPS using its dedicated double-precision Tensor Cores... and goes for about $US31000
The double precision floating point performance of the newer GeForce GPUs is not especially high, as they are intended for gaming and AI, neither of which use much FP64.

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

回答 (2 件)

Walter Roberson
Walter Roberson 2026 年 8 月 21 日 0:18

0 投票

No, that benchmark does not compare to host processing speed at all.
Sean Sullivan
Sean Sullivan 2026 年 8 月 25 日 9:20
編集済み: Walter Roberson 2026 年 8 月 25 日 19:28

0 投票

The example ( https://www.mathworks.com/help/parallel-computing/measuring-gpu-performance.html ) is intended to allow you to measure some performance characteristics of your GPU and make some comparisons to your CPU, so I don't see how it could be biased. It makes some very general conclusions:
  • Transfers from host memory to GPU memory and back are relatively slow.
  • The GPU can read and write its memory much faster than the host CPU can read and write its memory.
  • Given large enough data, a GPU can perform calculations faster than the host CPU.
  • GPUs perform calculations faster in single precision than double precision, and often much faster.
If your CPU outperforms your GPU for your particular calculations, then use your CPU.

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

質問済み:

2026 年 8 月 20 日 22:13

コメント済み:

2026 年 8 月 25 日 19:59

Community Treasure Hunt

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

Start Hunting!

Translated by