Why is half-precision slower than double-precision?
Ältere Kommentare anzeigen
While executing same calculations in MATLAB, speed of double-precision variables is faster than half-precision.
Is this normal? Is there any way to speed up?
Akzeptierte Antwort
Weitere Antworten (1)
Krishna Bindumadhavan
am 9 Apr. 2020
Bearbeitet: MathWorks Support Team
am 22 Sep. 2021
0 Stimmen
To accelerate half precision floating point math, from 20a onwards, you can now generate CUDA code from your MATLAB Algorithm for NVIDIA GPU's with Compute Capability > 5.3 which have native half precision floating point support: https://www.mathworks.com/help/gpucoder/ug/sobel-edge-detection-in-half-precision.html.
Kategorien
Mehr zu GPU Computing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!