what is compared in gpu demo
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 25 Août 2026 à 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.
Réponses (2)
Walter Roberson
le 21 Août 2026 à 0:18
0 votes
No, that benchmark does not compare to host processing speed at all.
Sean Sullivan
le 25 Août 2026 à 9:20
Modifié(e) : Walter Roberson
le 25 Août 2026 à 19:28
0 votes
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.
Catégories
En savoir plus sur GPU Computing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!